{
  "tools": [
    {
      "feature": "integrations",
      "name": "add_heyreach_leads",
      "description": "Push up to 100 leads into a HeyReach campaign (optionally pinned to a sender) or a HeyReach list, and report how many were added, updated, or failed.\n\nUse to enroll the leads a person chose into LinkedIn outreach. The server derives the replay key from the chosen leads and returns the first result on retry.\n\nEnrolling leads starts real LinkedIn actions and is refused on a frozen subscription. A reused key with DIFFERENT leads is a conflict, and a key whose first attempt never got an answer from HeyReach stays a conflict — check the campaign's leads before choosing a new key, because a blind retry could enroll everyone twice.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaign"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "campaignLeads": {
                "$ref": "#/$defs/AddHeyReachCampaignLeadsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignId",
              "campaignLeads"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|campaignId|campaignLeads)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "campaignId",
                "campaignLeads"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "list"
                ]
              },
              "listId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "listLeads": {
                "$ref": "#/$defs/AddHeyReachListLeadsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "listId",
              "listLeads"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|listId|listLeads)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "listId",
                "listLeads"
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "LinkedInProfileUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "HeyReachLeadInput": {
            "type": "object",
            "properties": {
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              },
              "firstName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "lastName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "emailAddress": {
                "$ref": "#/$defs/EmailAddress"
              },
              "companyName": {
                "type": "string",
                "minLength": 0,
                "maxLength": 500
              },
              "position": {
                "type": "string",
                "minLength": 0,
                "maxLength": 500
              },
              "location": {
                "type": "string",
                "minLength": 0,
                "maxLength": 500
              },
              "summary": {
                "type": "string",
                "minLength": 0,
                "maxLength": 10000
              },
              "about": {
                "type": "string",
                "minLength": 0,
                "maxLength": 10000
              },
              "customUserFields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_]+$",
                      "maxLength": 100
                    },
                    "value": {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 10000
                    }
                  },
                  "required": [
                    "name",
                    "value"
                  ],
                  "patternProperties": {
                    "^(?!(?:name|value)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "name",
                      "value"
                    ]
                  }
                },
                "maxItems": 100
              }
            },
            "required": [
              "profileUrl",
              "firstName",
              "lastName"
            ],
            "patternProperties": {
              "^(?!(?:profileUrl|firstName|lastName|emailAddress|companyName|position|location|summary|about|customUserFields)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "profileUrl",
                "firstName",
                "lastName",
                "emailAddress",
                "companyName",
                "position",
                "location",
                "summary",
                "about",
                "customUserFields"
              ]
            }
          },
          "AddHeyReachCampaignLeadsInput": {
            "type": "object",
            "properties": {
              "accountLeadPairs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "linkedInAccountId": {
                      "$ref": "#/$defs/HeyReachId"
                    },
                    "lead": {
                      "$ref": "#/$defs/HeyReachLeadInput"
                    }
                  },
                  "required": [
                    "lead"
                  ],
                  "patternProperties": {
                    "^(?!(?:linkedInAccountId|lead)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "linkedInAccountId",
                      "lead"
                    ]
                  }
                },
                "minItems": 1,
                "maxItems": 100
              },
              "resumeFinishedCampaign": {
                "type": "boolean"
              },
              "resumePausedCampaign": {
                "type": "boolean"
              }
            },
            "required": [
              "accountLeadPairs"
            ],
            "patternProperties": {
              "^(?!(?:accountLeadPairs|resumeFinishedCampaign|resumePausedCampaign)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "accountLeadPairs",
                "resumeFinishedCampaign",
                "resumePausedCampaign"
              ]
            }
          },
          "AddHeyReachListLeadsInput": {
            "type": "object",
            "properties": {
              "leads": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachLeadInput"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "leads"
            ],
            "patternProperties": {
              "^(?!(?:leads)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "leads"
                  ]
                }
              ]
            }
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "HeyReachLeadCounts": {
            "type": "object",
            "properties": {
              "addedLeadsCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updatedLeadsCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "failedLeadsCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "addedLeadsCount",
              "updatedLeadsCount",
              "failedLeadsCount"
            ],
            "patternProperties": {
              "^(?!(?:addedLeadsCount|updatedLeadsCount|failedLeadsCount)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "addedLeadsCount",
                "updatedLeadsCount",
                "failedLeadsCount"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/HeyReachLeadCounts"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/HeyReachLeadCounts"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "add_heyreach_leads"
      },
      "scopes": [
        "integration:update",
        "campaign:launch"
      ],
      "bundles": [
        "heyreach"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "heyreachCampaigns.addLeads",
        "heyreachLists.addLeads"
      ],
      "invocations": [
        {
          "operationId": "heyreachCampaigns.addLeads",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/leads",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLists.addLeads",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/lists/:listId/leads",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaign"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "campaignLeads": {
                "$ref": "#/$defs/AddHeyReachCampaignLeadsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignId",
              "campaignLeads"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|campaignId|campaignLeads)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "campaignId",
                    "campaignLeads"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "list"
                ]
              },
              "listId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "listLeads": {
                "$ref": "#/$defs/AddHeyReachListLeadsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "listId",
              "listLeads"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|listId|listLeads)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "listId",
                    "listLeads"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "LinkedInProfileUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "HeyReachLeadInput": {
            "type": "object",
            "properties": {
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              },
              "firstName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "lastName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "emailAddress": {
                "$ref": "#/$defs/EmailAddress"
              },
              "companyName": {
                "type": "string",
                "minLength": 0,
                "maxLength": 500
              },
              "position": {
                "type": "string",
                "minLength": 0,
                "maxLength": 500
              },
              "location": {
                "type": "string",
                "minLength": 0,
                "maxLength": 500
              },
              "summary": {
                "type": "string",
                "minLength": 0,
                "maxLength": 10000
              },
              "about": {
                "type": "string",
                "minLength": 0,
                "maxLength": 10000
              },
              "customUserFields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_]+$",
                      "maxLength": 100
                    },
                    "value": {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 10000
                    }
                  },
                  "required": [
                    "name",
                    "value"
                  ],
                  "patternProperties": {
                    "^(?!(?:name|value)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "name",
                      "value"
                    ]
                  }
                },
                "maxItems": 100
              }
            },
            "required": [
              "profileUrl",
              "firstName",
              "lastName"
            ],
            "patternProperties": {
              "^(?!(?:profileUrl|firstName|lastName|emailAddress|companyName|position|location|summary|about|customUserFields)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "profileUrl",
                "firstName",
                "lastName",
                "emailAddress",
                "companyName",
                "position",
                "location",
                "summary",
                "about",
                "customUserFields"
              ]
            }
          },
          "AddHeyReachCampaignLeadsInput": {
            "type": "object",
            "properties": {
              "accountLeadPairs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "linkedInAccountId": {
                      "$ref": "#/$defs/HeyReachId"
                    },
                    "lead": {
                      "$ref": "#/$defs/HeyReachLeadInput"
                    }
                  },
                  "required": [
                    "lead"
                  ],
                  "patternProperties": {
                    "^(?!(?:linkedInAccountId|lead)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "linkedInAccountId",
                      "lead"
                    ]
                  }
                },
                "minItems": 1,
                "maxItems": 100
              },
              "resumeFinishedCampaign": {
                "type": "boolean"
              },
              "resumePausedCampaign": {
                "type": "boolean"
              }
            },
            "required": [
              "accountLeadPairs"
            ],
            "patternProperties": {
              "^(?!(?:accountLeadPairs|resumeFinishedCampaign|resumePausedCampaign)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "accountLeadPairs",
                "resumeFinishedCampaign",
                "resumePausedCampaign"
              ]
            }
          },
          "AddHeyReachListLeadsInput": {
            "type": "object",
            "properties": {
              "leads": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachLeadInput"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "leads"
            ],
            "patternProperties": {
              "^(?!(?:leads)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "leads"
                  ]
                }
              ]
            }
          }
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "adopt_gmail_warmup_label",
      "description": "Adopts an existing Gmail S0 label as the inbox's warmup label.\n\nWhen asked to reuse an already-created Gmail warmup label.\n\nFor non-Google inboxes.",
      "inputSchema": {
        "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"
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "inboxId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "connectionId": {
            "$ref": "#/$defs/OpaqueId"
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "provider": {
            "type": "string",
            "enum": [
              "google_workspace",
              "microsoft_365",
              "imap_smtp"
            ]
          },
          "emailAddress": {
            "$ref": "#/$defs/EmailAddress"
          },
          "state": {
            "type": "string",
            "enum": [
              "connected",
              "needs_reauthorization",
              "quarantined",
              "alert",
              "disconnected"
            ]
          },
          "grantedScopes": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ShortText"
            }
          },
          "tokenExpiresAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "watchExpiresAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "credentialRefId": {
            "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"
              }
            ]
          },
          "lastSyncAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "connectionId",
          "inboxId",
          "provider",
          "emailAddress",
          "state",
          "tokenExpiresAt",
          "watchExpiresAt",
          "credentialRefId",
          "lastSyncAt"
        ],
        "patternProperties": {
          "^(?!(?:connectionId|inboxId|provider|emailAddress|state|grantedScopes|tokenExpiresAt|watchExpiresAt|credentialRefId|lastSyncAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "connectionId",
            "inboxId",
            "provider",
            "emailAddress",
            "state",
            "grantedScopes",
            "tokenExpiresAt",
            "watchExpiresAt",
            "credentialRefId",
            "lastSyncAt"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "adopt_gmail_warmup_label"
      },
      "scopes": [
        "inbox:update",
        "inbox:warmup_manage"
      ],
      "bundles": [
        "inbox_connection_management"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxConnections.adoptWarmupS0Label"
      ],
      "invocations": [
        {
          "operationId": "inboxConnections.adoptWarmupS0Label",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/google-warmup-label/adopt",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "inboxId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxId"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "approve_permission_request",
      "description": "Approve a pending permission request, adding all (default) or a chosen subset of the requested permissions to the requester's direct grants in the workspace.\n\nUse only when the reviewer explicitly approved this request and the exact permissions; pass confirmed: true. You can grant only permissions the reviewer holds.\n\nNever approve on your own initiative or your own person's request. To grant access without a request, use manage_organization_members.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "requestId": {
            "$ref": "#/$defs/PermissionRequestId"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "analytics:export",
                "analytics:read",
                "apiKey:create",
                "apiKey:delete",
                "apiKey:read",
                "apiKey:update",
                "blocklist:create",
                "blocklist:delete",
                "blocklist:read",
                "campaign:archive",
                "campaign:create",
                "campaign:delete",
                "campaign:launch",
                "campaign:pause",
                "campaign:read",
                "campaign:update",
                "dialer:assign_numbers",
                "dialer:assign_seats",
                "dialer:create",
                "dialer:delete",
                "dialer:dial",
                "dialer:manage_billing",
                "dialer:manage_number_health",
                "dialer:manage_numbers",
                "dialer:manage_numbers_self",
                "dialer:manage_voicemails",
                "dialer:read",
                "dialer:read_analytics",
                "dialer:read_numbers_all",
                "dialer:release_numbers",
                "dialer:update",
                "domain:manage_dns",
                "domain:purchase",
                "domain:read",
                "domain:transfer",
                "emailVerification:manage_credits",
                "emailVerification:manage_keys",
                "emailVerification:manage_sharing",
                "emailVerification:read",
                "emailVerification:verify",
                "inbox:connect",
                "inbox:create",
                "inbox:delete",
                "inbox:read",
                "inbox:update",
                "inbox:warmup_manage",
                "integration:create",
                "integration:delete",
                "integration:read",
                "integration:update",
                "lead:create",
                "lead:delete",
                "lead:export",
                "lead:import",
                "lead:read",
                "lead:update",
                "leadList:create",
                "leadList:delete",
                "leadList:read",
                "leadList:update",
                "phoneVerification:manage_keys",
                "phoneVerification:read",
                "phoneVerification:verify",
                "replyLabel:create",
                "replyLabel:delete",
                "replyLabel:read",
                "replyLabel:update",
                "sequence:create",
                "sequence:delete",
                "sequence:read",
                "sequence:update",
                "sql:manage_dashboards",
                "sql:query",
                "support:create",
                "support:read",
                "support:update",
                "tag:create",
                "tag:delete",
                "tag:read",
                "tag:update",
                "task:create",
                "task:delete",
                "task:read",
                "task:update",
                "template:create",
                "template:delete",
                "template:read",
                "template:update",
                "unibox:archive",
                "unibox:label",
                "unibox:read",
                "unibox:reply",
                "webhook:create",
                "webhook:delete",
                "webhook:read",
                "webhook:update",
                "whiteLabel:read",
                "whiteLabel:update",
                "workflow:create",
                "workflow:delete",
                "workflow:publish",
                "workflow:read",
                "workflow:run",
                "workflow:update",
                "workspace:read",
                "workspace:update",
                "workspaceMember:invite",
                "workspaceMember:read",
                "workspaceMember:remove",
                "workspaceMember:update"
              ]
            },
            "minItems": 1,
            "maxItems": 100
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmed": {
            "type": "boolean",
            "enum": [
              true
            ]
          }
        },
        "required": [
          "workspaceId",
          "requestId",
          "confirmed"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestId|permissions|note|confirmed)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestId",
            "permissions",
            "note",
            "confirmed"
          ]
        },
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "PermissionRequestStatus": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "denied",
              "canceled",
              "expired"
            ]
          },
          "PermissionRequestPerson": {
            "type": "object",
            "properties": {
              "userId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "userId",
              "name",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "name",
                "email"
              ]
            }
          },
          "PermissionRequestContext": {
            "type": "object",
            "properties": {
              "attemptedOperation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptedTool": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "explanation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:attemptedOperation|attemptedTool|explanation)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attemptedOperation",
                "attemptedTool",
                "explanation"
              ]
            }
          },
          "PermissionRequestSource": {
            "type": "string",
            "enum": [
              "web",
              "api",
              "agent"
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "PermissionRequest": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/PermissionRequestId"
              },
              "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"
              },
              "status": {
                "$ref": "#/$defs/PermissionRequestStatus"
              },
              "requester": {
                "$ref": "#/$defs/PermissionRequestPerson"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "grantedPermissions": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "context": {
                "$ref": "#/$defs/PermissionRequestContext"
              },
              "source": {
                "$ref": "#/$defs/PermissionRequestSource"
              },
              "agentName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "decidedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decidedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestPerson"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decisionNote": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewable": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "requester",
              "permissions",
              "grantedPermissions",
              "reason",
              "context",
              "source",
              "agentName",
              "createdAt",
              "expiresAt",
              "decidedAt",
              "decidedBy",
              "decisionNote",
              "reviewable"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|requester|permissions|grantedPermissions|reason|context|source|agentName|createdAt|expiresAt|decidedAt|decidedBy|decisionNote|reviewable)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "requester",
                "permissions",
                "grantedPermissions",
                "reason",
                "context",
                "source",
                "agentName",
                "createdAt",
                "expiresAt",
                "decidedAt",
                "decidedBy",
                "decisionNote",
                "reviewable"
              ]
            }
          },
          "PermissionRequestDecisionResult": {
            "type": "object",
            "properties": {
              "request": {
                "$ref": "#/$defs/PermissionRequest"
              },
              "changed": {
                "type": "boolean"
              }
            },
            "required": [
              "request",
              "changed"
            ],
            "patternProperties": {
              "^(?!(?:request|changed)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "request",
                "changed"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/PermissionRequestDecisionResult"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestDecisionResult"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "approve_permission_request"
      },
      "scopes": [
        "workspaceMember:update"
      ],
      "bundles": [
        "permission_requests"
      ],
      "risk": "security_admin",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "permissionRequests.approve"
      ],
      "invocations": [
        {
          "operationId": "permissionRequests.approve",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/permission-requests/:requestId/approve",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "requestId": {
            "$ref": "#/$defs/PermissionRequestId"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "analytics:export",
                "analytics:read",
                "apiKey:create",
                "apiKey:delete",
                "apiKey:read",
                "apiKey:update",
                "blocklist:create",
                "blocklist:delete",
                "blocklist:read",
                "campaign:archive",
                "campaign:create",
                "campaign:delete",
                "campaign:launch",
                "campaign:pause",
                "campaign:read",
                "campaign:update",
                "dialer:assign_numbers",
                "dialer:assign_seats",
                "dialer:create",
                "dialer:delete",
                "dialer:dial",
                "dialer:manage_billing",
                "dialer:manage_number_health",
                "dialer:manage_numbers",
                "dialer:manage_numbers_self",
                "dialer:manage_voicemails",
                "dialer:read",
                "dialer:read_analytics",
                "dialer:read_numbers_all",
                "dialer:release_numbers",
                "dialer:update",
                "domain:manage_dns",
                "domain:purchase",
                "domain:read",
                "domain:transfer",
                "emailVerification:manage_credits",
                "emailVerification:manage_keys",
                "emailVerification:manage_sharing",
                "emailVerification:read",
                "emailVerification:verify",
                "inbox:connect",
                "inbox:create",
                "inbox:delete",
                "inbox:read",
                "inbox:update",
                "inbox:warmup_manage",
                "integration:create",
                "integration:delete",
                "integration:read",
                "integration:update",
                "lead:create",
                "lead:delete",
                "lead:export",
                "lead:import",
                "lead:read",
                "lead:update",
                "leadList:create",
                "leadList:delete",
                "leadList:read",
                "leadList:update",
                "phoneVerification:manage_keys",
                "phoneVerification:read",
                "phoneVerification:verify",
                "replyLabel:create",
                "replyLabel:delete",
                "replyLabel:read",
                "replyLabel:update",
                "sequence:create",
                "sequence:delete",
                "sequence:read",
                "sequence:update",
                "sql:manage_dashboards",
                "sql:query",
                "support:create",
                "support:read",
                "support:update",
                "tag:create",
                "tag:delete",
                "tag:read",
                "tag:update",
                "task:create",
                "task:delete",
                "task:read",
                "task:update",
                "template:create",
                "template:delete",
                "template:read",
                "template:update",
                "unibox:archive",
                "unibox:label",
                "unibox:read",
                "unibox:reply",
                "webhook:create",
                "webhook:delete",
                "webhook:read",
                "webhook:update",
                "whiteLabel:read",
                "whiteLabel:update",
                "workflow:create",
                "workflow:delete",
                "workflow:publish",
                "workflow:read",
                "workflow:run",
                "workflow:update",
                "workspace:read",
                "workspace:update",
                "workspaceMember:invite",
                "workspaceMember:read",
                "workspaceMember:remove",
                "workspaceMember:update"
              ]
            },
            "minItems": 1,
            "maxItems": 100
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmed": {
            "type": "boolean",
            "enum": [
              true
            ]
          }
        },
        "required": [
          "workspaceId",
          "requestId",
          "confirmed"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestId|permissions|note|confirmed)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestId",
            "permissions",
            "note",
            "confirmed"
          ]
        },
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "assign_leads",
      "description": "Assign a campaign contact to a workspace member (action=assign) or remove the assignment (action=remove).\n\nUse to route a campaign contact; assign requires a current member, remove deliberately does not.\n\nRemoval is idempotent and never fails for stale assignments — do not pre-check membership.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": [
              "assign",
              "remove"
            ]
          },
          "campaignContactId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "assigneeUserId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "action",
          "campaignContactId",
          "assigneeUserId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|campaignContactId|assigneeUserId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "campaignContactId",
            "assigneeUserId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "anyOf": [
              {
                "type": "boolean",
                "enum": [
                  true
                ]
              }
            ]
          }
        },
        "required": [
          "success"
        ],
        "patternProperties": {
          "^(?!(?:success)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "success"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "assign_leads"
      },
      "scopes": [
        "lead:update"
      ],
      "bundles": [
        "lead_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignContactAssignments.create",
        "campaignContactAssignments.remove"
      ],
      "invocations": [
        {
          "operationId": "campaignContactAssignments.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/leads/:campaignContactId/assignees",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignContactAssignments.remove",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/leads/:campaignContactId/assignees/:assigneeUserId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": [
              "assign",
              "remove"
            ]
          },
          "campaignContactId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "assigneeUserId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "action",
          "campaignContactId",
          "assigneeUserId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|campaignContactId|assigneeUserId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "campaignContactId",
            "assigneeUserId"
          ]
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "assign_task",
      "description": "Replace a task's assignee set.\n\nUse to route work to current workspace members.\n\nA pending human request can never be left without a possible responder; the call fails instead.",
      "inputSchema": {
        "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"
          },
          "taskId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 20
          }
        },
        "required": [
          "workspaceId",
          "taskId",
          "userIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|taskId|userIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "taskId",
            "userIds"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "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"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "dueDate": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedBy": {
            "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"
              }
            ]
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "no_luck",
                  "responded",
                  "bad_info"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "leadId": {
            "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"
              }
            ]
          },
          "campaignContactId": {
            "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"
              }
            ]
          },
          "campaignStepId": {
            "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"
              }
            ]
          },
          "workflowRunId": {
            "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"
              }
            ]
          },
          "workflow": {
            "anyOf": [
              {
                "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": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:id|name)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "humanRequest": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "approval",
                          "text"
                        ]
                      },
                      "question": {
                        "$ref": "#/$defs/Description"
                      }
                    },
                    "required": [
                      "type",
                      "question"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|question)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "question"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "choice"
                            ]
                          }
                        ]
                      },
                      "question": {
                        "$ref": "#/$defs/Description"
                      },
                      "options": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "type",
                      "question",
                      "options"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|question|options)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "question",
                        "options"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "humanResponse": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "approval"
                            ]
                          }
                        ]
                      },
                      "approved": {
                        "type": "boolean"
                      },
                      "comment": {
                        "$ref": "#/$defs/ShortText"
                      }
                    },
                    "required": [
                      "type",
                      "approved"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|approved|comment)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "approved",
                        "comment"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "text"
                            ]
                          }
                        ]
                      },
                      "text": {
                        "$ref": "#/$defs/Description"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|text)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "text"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "choice"
                            ]
                          }
                        ]
                      },
                      "choice": {
                        "$ref": "#/$defs/NonEmptyString"
                      }
                    },
                    "required": [
                      "type",
                      "choice"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|choice)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "choice"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "requestState": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "pending",
                  "answered",
                  "expired",
                  "cancelled"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "responseExpiresAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "requestedByAgentRegistrationId": {
            "anyOf": [
              {
                "$ref": "#/$defs/OpaqueId"
              },
              {
                "type": "null"
              }
            ]
          },
          "operationId": {
            "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"
              }
            ]
          },
          "assignees": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                  "$ref": "#/$defs/ShortText"
                },
                "email": {
                  "$ref": "#/$defs/EmailAddress"
                },
                "image": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "inOrg": {
                  "type": "boolean"
                }
              },
              "required": [
                "userId",
                "name",
                "email",
                "image",
                "inOrg"
              ],
              "patternProperties": {
                "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ]
              }
            }
          },
          "createdBy": {
            "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"
              }
            ]
          },
          "createdByUser": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inOrg": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "inOrg"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "completedByUser": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inOrg": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "inOrg"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "lead": {
            "anyOf": [
              {
                "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"
                  },
                  "firstName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "lastName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "companyName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "emailAddress": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phoneNumber": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "firstName",
                  "lastName",
                  "companyName",
                  "emailAddress",
                  "phoneNumber"
                ],
                "patternProperties": {
                  "^(?!(?:id|firstName|lastName|companyName|emailAddress|phoneNumber)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "firstName",
                    "lastName",
                    "companyName",
                    "emailAddress",
                    "phoneNumber"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "outcomeDetail": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "phoneOutcomes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "leadPhoneId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_luck",
                            "responded",
                            "bad_info"
                          ]
                        }
                      },
                      "required": [
                        "leadPhoneId",
                        "outcome"
                      ],
                      "patternProperties": {
                        "^(?!(?:leadPhoneId|outcome)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "leadPhoneId",
                          "outcome"
                        ]
                      }
                    },
                    "maxItems": 50
                  }
                },
                "required": [
                  "phoneOutcomes"
                ],
                "patternProperties": {
                  "^(?!(?:phoneOutcomes)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "phoneOutcomes"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "updatedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "title",
          "description",
          "dueDate",
          "completedAt",
          "completedBy",
          "outcome",
          "leadId",
          "campaignContactId",
          "campaignStepId",
          "workflowRunId",
          "workflow",
          "humanRequest",
          "humanResponse",
          "requestState",
          "responseExpiresAt",
          "requestedByAgentRegistrationId",
          "operationId",
          "assignees",
          "createdBy",
          "createdAt",
          "updatedAt"
        ],
        "patternProperties": {
          "^(?!(?:id|workspaceId|title|description|dueDate|completedAt|completedBy|outcome|leadId|campaignContactId|campaignStepId|workflowRunId|workflow|humanRequest|humanResponse|requestState|responseExpiresAt|requestedByAgentRegistrationId|operationId|assignees|createdBy|createdByUser|completedByUser|lead|outcomeDetail|createdAt|updatedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "workspaceId",
            "title",
            "description",
            "dueDate",
            "completedAt",
            "completedBy",
            "outcome",
            "leadId",
            "campaignContactId",
            "campaignStepId",
            "workflowRunId",
            "workflow",
            "humanRequest",
            "humanResponse",
            "requestState",
            "responseExpiresAt",
            "requestedByAgentRegistrationId",
            "operationId",
            "assignees",
            "createdBy",
            "createdByUser",
            "completedByUser",
            "lead",
            "outcomeDetail",
            "createdAt",
            "updatedAt"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "assign_task"
      },
      "scopes": [
        "task:update"
      ],
      "bundles": [
        "tasks"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "tasks.setAssignees"
      ],
      "invocations": [
        {
          "operationId": "tasks.setAssignees",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/tasks/:taskId/assignees",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "taskId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 20
          }
        },
        "required": [
          "workspaceId",
          "taskId",
          "userIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|taskId|userIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "taskId",
            "userIds"
          ]
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "block_organization_api_key",
      "description": "Block a member's personal API key from one Organization (preview, then commit with the confirmation token), or lift that block. The key keeps working in the member's other Organizations.\n\nUse when an Organization owner wants a member's key out of this Organization without revoking the member's credential everywhere.\n\nRequires orgApiKey:manage. To stop a member's access entirely, remove the member; their keys lose access with them.\n\nUse the native preview first and pass its confirmation token unchanged to commit. A token does not bypass current permissions or Workspace checks.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "block",
              "unblock"
            ]
          },
          "confirmationToken": {
            "$ref": "#/$defs/OpaqueId"
          }
        },
        "required": [
          "organizationId",
          "apiKeyId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|apiKeyId|action|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "apiKeyId",
            "action",
            "confirmationToken"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Money": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BOV",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHE",
                  "CHF",
                  "CHW",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "COU",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MXV",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLE",
                  "SOS",
                  "SRD",
                  "SSP",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "USN",
                  "UYI",
                  "UYU",
                  "UYW",
                  "UZS",
                  "VED",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAD",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XBA",
                  "XBB",
                  "XBC",
                  "XBD",
                  "XCD",
                  "XCG",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "XSU",
                  "XTS",
                  "XUA",
                  "XXX",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWG"
                ]
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "patternProperties": {
              "^(?!(?:amountMinor|currency)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "amountMinor",
                "currency"
              ]
            }
          },
          "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$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "preview": {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "$ref": "#/$defs/Description"
                          },
                          "affected": {
                            "type": "object",
                            "properties": {
                              "resourceCounts": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    "count": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "count"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|count)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "count"
                                    ]
                                  }
                                },
                                "maxItems": 64
                              },
                              "resourceIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "resourceCounts",
                              "resourceIds"
                            ],
                            "patternProperties": {
                              "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "resourceCounts",
                                "resourceIds"
                              ]
                            }
                          },
                          "costEstimate": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "$ref": "#/$defs/Money"
                              },
                              "max": {
                                "$ref": "#/$defs/Money"
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "patternProperties": {
                              "^(?!(?:min|max)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "min",
                                "max"
                              ]
                            }
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "irreversibleFacts": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "inputHash": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "previewVersion": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "summary",
                          "affected",
                          "warnings",
                          "irreversibleFacts",
                          "inputHash",
                          "previewVersion",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "affected",
                            "costEstimate",
                            "warnings",
                            "irreversibleFacts",
                            "inputHash",
                            "previewVersion",
                            "expiresAt"
                          ]
                        }
                      },
                      "confirmationToken": {
                        "$ref": "#/$defs/OpaqueId"
                      }
                    },
                    "required": [
                      "preview",
                      "confirmationToken"
                    ],
                    "patternProperties": {
                      "^(?!(?:preview|confirmationToken)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "preview",
                        "confirmationToken"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "blocked": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "blocked"
                    ],
                    "patternProperties": {
                      "^(?!(?:blocked)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "blocked"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "preview": {
                            "type": "object",
                            "properties": {
                              "summary": {
                                "$ref": "#/$defs/Description"
                              },
                              "affected": {
                                "type": "object",
                                "properties": {
                                  "resourceCounts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "$ref": "#/$defs/NonEmptyString"
                                        },
                                        "count": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "count"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:type|count)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "type",
                                          "count"
                                        ]
                                      }
                                    },
                                    "maxItems": 64
                                  },
                                  "resourceIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "maxItems": 256
                                  }
                                },
                                "required": [
                                  "resourceCounts",
                                  "resourceIds"
                                ],
                                "patternProperties": {
                                  "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "resourceCounts",
                                    "resourceIds"
                                  ]
                                }
                              },
                              "costEstimate": {
                                "type": "object",
                                "properties": {
                                  "min": {
                                    "$ref": "#/$defs/Money"
                                  },
                                  "max": {
                                    "$ref": "#/$defs/Money"
                                  }
                                },
                                "required": [
                                  "min",
                                  "max"
                                ],
                                "patternProperties": {
                                  "^(?!(?:min|max)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "min",
                                    "max"
                                  ]
                                }
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "irreversibleFacts": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "inputHash": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "previewVersion": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "expiresAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "summary",
                              "affected",
                              "warnings",
                              "irreversibleFacts",
                              "inputHash",
                              "previewVersion",
                              "expiresAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "summary",
                                "affected",
                                "costEstimate",
                                "warnings",
                                "irreversibleFacts",
                                "inputHash",
                                "previewVersion",
                                "expiresAt"
                              ]
                            }
                          },
                          "confirmationToken": {
                            "$ref": "#/$defs/OpaqueId"
                          }
                        },
                        "required": [
                          "preview",
                          "confirmationToken"
                        ],
                        "patternProperties": {
                          "^(?!(?:preview|confirmationToken)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "preview",
                            "confirmationToken"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "blocked": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "blocked"
                        ],
                        "patternProperties": {
                          "^(?!(?:blocked)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "blocked"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "block_organization_api_key"
      },
      "scopes": [
        "orgApiKey:manage"
      ],
      "bundles": [
        "security_administration"
      ],
      "risk": "security_admin",
      "idempotency": "required",
      "confirmation": "preview_token",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationApiKeys.previewBlock",
        "organizationApiKeys.block",
        "organizationApiKeys.unblock"
      ],
      "invocations": [
        {
          "operationId": "organizationApiKeys.previewBlock",
          "method": "POST",
          "path": "/v1/organizations/:organizationId/api-keys/:apiKeyId/block-preview",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationApiKeys.block",
          "method": "POST",
          "path": "/v1/organizations/:organizationId/api-keys/:apiKeyId/block",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationApiKeys.unblock",
          "method": "DELETE",
          "path": "/v1/organizations/:organizationId/api-keys/:apiKeyId/block",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "block",
              "unblock"
            ]
          },
          "confirmationToken": {
            "$ref": "#/$defs/OpaqueId"
          }
        },
        "required": [
          "organizationId",
          "apiKeyId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|apiKeyId|action|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "apiKeyId",
            "action",
            "confirmationToken"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "commerce",
      "name": "browse_partnerships",
      "description": "List the published partner offers (discounts and perks) every Scheduler Zero customer can redeem.\n\nUse when a person asks which partner discounts exist or how to redeem one.\n\nAccount-only offers are not listed here; a signed-in person sees those in the web app.",
      "inputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/$defs/PartnershipOfferId"
                },
                "companyName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "description": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2000
                },
                "category": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "logoUrl": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "pageSlug": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "details": {
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 6000
                },
                "offerUrl": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "discountCode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "terms": {
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 2000
                },
                "requiresAccount": {
                  "type": "boolean"
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "id",
                "companyName",
                "description",
                "category",
                "logoUrl",
                "pageSlug",
                "details",
                "offerUrl",
                "discountCode",
                "terms",
                "requiresAccount",
                "updatedAt"
              ],
              "patternProperties": {
                "^(?!(?:id|companyName|description|category|logoUrl|pageSlug|details|offerUrl|discountCode|terms|requiresAccount|updatedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "companyName",
                  "description",
                  "category",
                  "logoUrl",
                  "pageSlug",
                  "details",
                  "offerUrl",
                  "discountCode",
                  "terms",
                  "requiresAccount",
                  "updatedAt"
                ]
              }
            },
            "maxItems": 500
          }
        },
        "required": [
          "items"
        ],
        "patternProperties": {
          "^(?!(?:items)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "items"
              ]
            }
          ]
        },
        "$defs": {
          "PartnershipOfferId": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "browse_partnerships"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "partner_catalog"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "partnerships.list"
      ],
      "invocations": [
        {
          "operationId": "partnerships.list",
          "method": "GET",
          "path": "/partnerships",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      }
    },
    {
      "feature": "integrations",
      "name": "browse_plusvibe_targets",
      "description": "List the PlusVibe workspaces, campaigns, or lead labels the connected key can reach.\n\nUse to pick the workspace, campaign ids, or label events a PlusVibe workflow block should target. Campaigns page with an opaque cursor.\n\nEach call reads PlusVibe live; do not poll it. Use get_plusvibe_status for connection health.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "workspaces"
                ]
              },
              "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"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "resource",
              "workspaceId",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:resource|workspaceId|connectionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "resource",
                "workspaceId",
                "connectionId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "campaigns"
                ]
              },
              "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"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "providerWorkspaceId": {
                "$ref": "#/$defs/PlusVibeRemoteId"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "resource",
              "workspaceId",
              "connectionId",
              "providerWorkspaceId"
            ],
            "patternProperties": {
              "^(?!(?:resource|workspaceId|connectionId|providerWorkspaceId|cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "resource",
                "workspaceId",
                "connectionId",
                "providerWorkspaceId",
                "cursor",
                "limit"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "labels"
                ]
              },
              "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"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "providerWorkspaceId": {
                "$ref": "#/$defs/PlusVibeRemoteId"
              }
            },
            "required": [
              "resource",
              "workspaceId",
              "connectionId",
              "providerWorkspaceId"
            ],
            "patternProperties": {
              "^(?!(?:resource|workspaceId|connectionId|providerWorkspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "resource",
                "workspaceId",
                "connectionId",
                "providerWorkspaceId"
              ]
            }
          }
        ],
        "$defs": {
          "PlusVibeRemoteId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "PlusVibeRemoteId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/PlusVibeRemoteId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name"
                            ]
                          }
                        }
                      },
                      "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/PlusVibeRemoteId"
                            },
                            "workspaceId": {
                              "$ref": "#/$defs/PlusVibeRemoteId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "paused",
                                "draft",
                                "completed",
                                "archived",
                                "deleted",
                                "unknown"
                              ]
                            },
                            "providerStatus": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "type": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "workspaceId",
                            "name",
                            "status",
                            "providerStatus",
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|workspaceId|name|status|providerStatus|type)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "workspaceId",
                              "name",
                              "status",
                              "providerStatus",
                              "type"
                            ]
                          }
                        }
                      },
                      "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/ProviderId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name"
                            ]
                          }
                        }
                      },
                      "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"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/PlusVibeRemoteId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name"
                                ]
                              }
                            }
                          },
                          "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/PlusVibeRemoteId"
                                },
                                "workspaceId": {
                                  "$ref": "#/$defs/PlusVibeRemoteId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "paused",
                                    "draft",
                                    "completed",
                                    "archived",
                                    "deleted",
                                    "unknown"
                                  ]
                                },
                                "providerStatus": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "type": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "workspaceId",
                                "name",
                                "status",
                                "providerStatus",
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|workspaceId|name|status|providerStatus|type)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "workspaceId",
                                  "name",
                                  "status",
                                  "providerStatus",
                                  "type"
                                ]
                              }
                            }
                          },
                          "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/ProviderId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name"
                                ]
                              }
                            }
                          },
                          "nextCursor": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Cursor"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "items",
                          "nextCursor"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "nextCursor"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "browse_plusvibe_targets"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "plusvibe"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "plusvibe.workspaces",
        "plusvibe.campaigns",
        "plusvibe.labels"
      ],
      "invocations": [
        {
          "operationId": "plusvibe.workspaces",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/plusvibe/:connectionId/workspaces",
          "workspaceScoped": false
        },
        {
          "operationId": "plusvibe.campaigns",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/plusvibe/:connectionId/workspaces/:providerWorkspaceId/campaigns",
          "workspaceScoped": false
        },
        {
          "operationId": "plusvibe.labels",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/plusvibe/:connectionId/workspaces/:providerWorkspaceId/labels",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "resource": {
                "type": "string",
                "enum": [
                  "workspaces"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "resource",
              "workspaceId",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:resource|workspaceId|connectionId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "resource",
                    "workspaceId",
                    "connectionId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "resource": {
                "type": "string",
                "enum": [
                  "campaigns"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "providerWorkspaceId": {
                "$ref": "#/$defs/PlusVibeRemoteId"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "resource",
              "workspaceId",
              "connectionId",
              "providerWorkspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:resource|workspaceId|connectionId|providerWorkspaceId|cursor|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "resource",
                    "workspaceId",
                    "connectionId",
                    "providerWorkspaceId",
                    "cursor",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "resource": {
                "type": "string",
                "enum": [
                  "labels"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "providerWorkspaceId": {
                "$ref": "#/$defs/PlusVibeRemoteId"
              }
            },
            "required": [
              "resource",
              "workspaceId",
              "connectionId",
              "providerWorkspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:resource|workspaceId|connectionId|providerWorkspaceId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "resource",
                    "workspaceId",
                    "connectionId",
                    "providerWorkspaceId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "PlusVibeRemoteId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      }
    },
    {
      "feature": "unibox",
      "name": "browse_unibox_threads",
      "description": "Read a filtered thread list, one thread, its message metadata, one message, its contacts, or a contact photo by choosing an explicit action.\n\nChoose list, thread, messages, message, contacts, or contact_photo. For list, filters are the native thread-list query fields. For contacts and photos, use the local thread ID from list_unibox_threads.\n\nThis is a replacement for the old sz://unibox resource template; it does not make that legacy URI resolvable. It returns no message bodies or attachment bytes, which remain separate reads. Warmup traffic remains limited to the warmup folder.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "filters": {
                "type": "object",
                "properties": {
                  "cursor": {
                    "$ref": "#/$defs/Cursor"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "search": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "sortBy": {
                    "type": "string",
                    "enum": [
                      "lastMessageAt",
                      "createdAt"
                    ]
                  },
                  "sortOrder": {
                    "type": "string",
                    "enum": [
                      "asc",
                      "desc"
                    ]
                  },
                  "readStatus": {
                    "type": "string",
                    "enum": [
                      "all",
                      "read",
                      "unread"
                    ]
                  },
                  "folder": {
                    "type": "string",
                    "enum": [
                      "inbox",
                      "sent",
                      "archived",
                      "starred",
                      "warmup",
                      "trash"
                    ]
                  },
                  "showAllEmails": {
                    "type": "boolean"
                  },
                  "inboxIds": {
                    "type": "string"
                  },
                  "campaignIds": {
                    "type": "string"
                  },
                  "campaignFilter": {
                    "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": "string"
                  },
                  "assigneeUserIds": {
                    "type": "string"
                  },
                  "organizationIds": {
                    "type": "string"
                  }
                },
                "patternProperties": {
                  "^(?!(?:cursor|limit|search|sortBy|sortOrder|readStatus|folder|showAllEmails|inboxIds|campaignIds|campaignFilter|labelIds|assigneeUserIds|organizationIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "cursor",
                    "limit",
                    "search",
                    "sortBy",
                    "sortOrder",
                    "readStatus",
                    "folder",
                    "showAllEmails",
                    "inboxIds",
                    "campaignIds",
                    "campaignFilter",
                    "labelIds",
                    "assigneeUserIds",
                    "organizationIds"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|filters)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "filters"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "thread"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadId"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "messages"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadId|cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadId",
                "cursor",
                "limit"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "message"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "contacts"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadId"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "contact_photo"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "email": {
                "$ref": "#/$defs/EmailAddress"
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadId|email|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadId",
                "email",
                "inboxId"
              ]
            }
          }
        ],
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ThreadLabelId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "AttachmentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ProfilePhotoSource": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1048576,
            "pattern": "^(?:https:\\/\\/|data:image\\/)"
          }
        },
        "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"
                            },
                            "inboxId": {
                              "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"
                                }
                              ]
                            },
                            "organizationId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "snippet": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "contact": {
                              "type": "object",
                              "properties": {
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "leadId": {
                                  "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"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "emailAddress",
                                "name",
                                "leadId"
                              ],
                              "patternProperties": {
                                "^(?!(?:emailAddress|name|leadId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "emailAddress",
                                  "name",
                                  "leadId"
                                ]
                              }
                            },
                            "providerThreadId": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365",
                                "other"
                              ]
                            },
                            "lastMessageAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "messageCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "labels": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/ThreadLabelId"
                                  },
                                  "name": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "hexColor": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "sentiment": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "positive",
                                          "negative",
                                          "neutral"
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "custom",
                                      "default"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "hexColor",
                                  "sentiment",
                                  "type"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "name",
                                    "hexColor",
                                    "sentiment",
                                    "type"
                                  ]
                                }
                              }
                            },
                            "assignees": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "userId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "email": {
                                    "$ref": "#/$defs/EmailAddress"
                                  },
                                  "image": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/HttpUrl"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "isFormerMember": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "userId",
                                  "name",
                                  "email",
                                  "image",
                                  "isFormerMember"
                                ],
                                "patternProperties": {
                                  "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "userId",
                                    "name",
                                    "email",
                                    "image",
                                    "isFormerMember"
                                  ]
                                }
                              }
                            },
                            "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"
                                }
                              ]
                            },
                            "campaignContactId": {
                              "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"
                                }
                              ]
                            },
                            "isRead": {
                              "type": "boolean"
                            },
                            "starredAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "archivedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "deletedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "folders": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "inbox",
                                  "sent",
                                  "archived",
                                  "starred",
                                  "warmup",
                                  "trash"
                                ]
                              }
                            },
                            "recentMessages": {
                              "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"
                                  },
                                  "providerInternalMessageId": {
                                    "$ref": "#/$defs/OpaqueId"
                                  },
                                  "from": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  },
                                  "to": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    }
                                  },
                                  "cc": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    }
                                  },
                                  "subject": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "snippet": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "receivedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "isRead": {
                                    "type": "boolean"
                                  },
                                  "isFromInboxSender": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "id",
                                  "providerInternalMessageId",
                                  "from",
                                  "to",
                                  "cc",
                                  "subject",
                                  "snippet",
                                  "receivedAt",
                                  "isRead",
                                  "isFromInboxSender"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|providerInternalMessageId|from|to|cc|subject|snippet|receivedAt|isRead|isFromInboxSender)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "providerInternalMessageId",
                                    "from",
                                    "to",
                                    "cc",
                                    "subject",
                                    "snippet",
                                    "receivedAt",
                                    "isRead",
                                    "isFromInboxSender"
                                  ]
                                }
                              },
                              "maxItems": 20
                            }
                          },
                          "required": [
                            "id",
                            "inboxId",
                            "organizationId",
                            "subject",
                            "snippet",
                            "contact",
                            "providerThreadId",
                            "provider",
                            "lastMessageAt",
                            "messageCount",
                            "labels",
                            "assignees",
                            "campaignId",
                            "campaignContactId",
                            "isRead",
                            "starredAt",
                            "archivedAt",
                            "deletedAt",
                            "folders"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|inboxId|organizationId|subject|snippet|contact|providerThreadId|provider|lastMessageAt|messageCount|labels|assignees|campaignId|campaignContactId|isRead|starredAt|archivedAt|deletedAt|folders|recentMessages)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "inboxId",
                              "organizationId",
                              "subject",
                              "snippet",
                              "contact",
                              "providerThreadId",
                              "provider",
                              "lastMessageAt",
                              "messageCount",
                              "labels",
                              "assignees",
                              "campaignId",
                              "campaignContactId",
                              "isRead",
                              "starredAt",
                              "archivedAt",
                              "deletedAt",
                              "folders",
                              "recentMessages"
                            ]
                          }
                        }
                      },
                      "nextCursor": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Cursor"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "items",
                      "nextCursor"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|nextCursor|total)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "nextCursor",
                        "total"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "inboxId": {
                        "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"
                          }
                        ]
                      },
                      "organizationId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "subject": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "snippet": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contact": {
                        "type": "object",
                        "properties": {
                          "emailAddress": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "name": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "leadId": {
                            "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"
                              }
                            ]
                          }
                        },
                        "required": [
                          "emailAddress",
                          "name",
                          "leadId"
                        ],
                        "patternProperties": {
                          "^(?!(?:emailAddress|name|leadId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "emailAddress",
                            "name",
                            "leadId"
                          ]
                        }
                      },
                      "providerThreadId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "google_workspace",
                          "microsoft_365",
                          "other"
                        ]
                      },
                      "lastMessageAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "messageCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "labels": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/ThreadLabelId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "hexColor": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "sentiment": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "positive",
                                    "negative",
                                    "neutral"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "custom",
                                "default"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "hexColor",
                            "sentiment",
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "hexColor",
                              "sentiment",
                              "type"
                            ]
                          }
                        }
                      },
                      "assignees": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "userId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "image": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isFormerMember": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "userId",
                            "name",
                            "email",
                            "image",
                            "isFormerMember"
                          ],
                          "patternProperties": {
                            "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "userId",
                              "name",
                              "email",
                              "image",
                              "isFormerMember"
                            ]
                          }
                        }
                      },
                      "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"
                          }
                        ]
                      },
                      "campaignContactId": {
                        "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"
                          }
                        ]
                      },
                      "isRead": {
                        "type": "boolean"
                      },
                      "starredAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "archivedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deletedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "folders": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "inbox",
                            "sent",
                            "archived",
                            "starred",
                            "warmup",
                            "trash"
                          ]
                        }
                      },
                      "recentMessages": {
                        "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"
                            },
                            "providerInternalMessageId": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "from": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "to": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "cc": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "snippet": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "receivedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "isRead": {
                              "type": "boolean"
                            },
                            "isFromInboxSender": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "providerInternalMessageId",
                            "from",
                            "to",
                            "cc",
                            "subject",
                            "snippet",
                            "receivedAt",
                            "isRead",
                            "isFromInboxSender"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|providerInternalMessageId|from|to|cc|subject|snippet|receivedAt|isRead|isFromInboxSender)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "providerInternalMessageId",
                              "from",
                              "to",
                              "cc",
                              "subject",
                              "snippet",
                              "receivedAt",
                              "isRead",
                              "isFromInboxSender"
                            ]
                          }
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "id",
                      "inboxId",
                      "organizationId",
                      "subject",
                      "snippet",
                      "contact",
                      "providerThreadId",
                      "provider",
                      "lastMessageAt",
                      "messageCount",
                      "labels",
                      "assignees",
                      "campaignId",
                      "campaignContactId",
                      "isRead",
                      "starredAt",
                      "archivedAt",
                      "deletedAt",
                      "folders"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|inboxId|organizationId|subject|snippet|contact|providerThreadId|provider|lastMessageAt|messageCount|labels|assignees|campaignId|campaignContactId|isRead|starredAt|archivedAt|deletedAt|folders|recentMessages)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "inboxId",
                        "organizationId",
                        "subject",
                        "snippet",
                        "contact",
                        "providerThreadId",
                        "provider",
                        "lastMessageAt",
                        "messageCount",
                        "labels",
                        "assignees",
                        "campaignId",
                        "campaignContactId",
                        "isRead",
                        "starredAt",
                        "archivedAt",
                        "deletedAt",
                        "folders",
                        "recentMessages"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "threadId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "inboxId": {
                              "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"
                                }
                              ]
                            },
                            "organizationId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "providerInternalMessageId": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "rfc2822MessageId": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365",
                                "other"
                              ]
                            },
                            "from": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "to": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "cc": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "bcc": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "snippet": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "receivedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "direction": {
                              "type": "string",
                              "enum": [
                                "inbound",
                                "outbound"
                              ]
                            },
                            "isFromInboxSender": {
                              "type": "boolean"
                            },
                            "sentFromUnibox": {
                              "type": "boolean"
                            },
                            "attachments": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/AttachmentId"
                                  },
                                  "filename": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "contentType": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "size": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "inline": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "id",
                                  "filename",
                                  "contentType",
                                  "size",
                                  "inline"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "filename",
                                    "contentType",
                                    "size",
                                    "inline"
                                  ]
                                }
                              }
                            },
                            "bodyState": {
                              "type": "string",
                              "enum": [
                                "available",
                                "pending"
                              ]
                            },
                            "isRead": {
                              "type": "boolean"
                            },
                            "flaggedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "deletedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "headers": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string",
                                "maxLength": 16384
                              }
                            },
                            "authoredByWorkflowRunId": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "threadId",
                            "inboxId",
                            "organizationId",
                            "providerInternalMessageId",
                            "rfc2822MessageId",
                            "provider",
                            "from",
                            "to",
                            "cc",
                            "bcc",
                            "subject",
                            "snippet",
                            "receivedAt",
                            "direction",
                            "isFromInboxSender",
                            "sentFromUnibox",
                            "attachments",
                            "bodyState",
                            "isRead",
                            "flaggedAt",
                            "deletedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|threadId|inboxId|organizationId|providerInternalMessageId|rfc2822MessageId|provider|from|to|cc|bcc|subject|snippet|receivedAt|direction|isFromInboxSender|sentFromUnibox|attachments|bodyState|isRead|flaggedAt|deletedAt|headers|authoredByWorkflowRunId)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "threadId",
                              "inboxId",
                              "organizationId",
                              "providerInternalMessageId",
                              "rfc2822MessageId",
                              "provider",
                              "from",
                              "to",
                              "cc",
                              "bcc",
                              "subject",
                              "snippet",
                              "receivedAt",
                              "direction",
                              "isFromInboxSender",
                              "sentFromUnibox",
                              "attachments",
                              "bodyState",
                              "isRead",
                              "flaggedAt",
                              "deletedAt",
                              "headers",
                              "authoredByWorkflowRunId"
                            ]
                          }
                        }
                      },
                      "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"
                      },
                      "threadId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "inboxId": {
                        "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"
                          }
                        ]
                      },
                      "organizationId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "providerInternalMessageId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "rfc2822MessageId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "google_workspace",
                          "microsoft_365",
                          "other"
                        ]
                      },
                      "from": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "to": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "cc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "bcc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "subject": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "snippet": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "receivedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "direction": {
                        "type": "string",
                        "enum": [
                          "inbound",
                          "outbound"
                        ]
                      },
                      "isFromInboxSender": {
                        "type": "boolean"
                      },
                      "sentFromUnibox": {
                        "type": "boolean"
                      },
                      "attachments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/AttachmentId"
                            },
                            "filename": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "contentType": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "size": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inline": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "filename",
                            "contentType",
                            "size",
                            "inline"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "filename",
                              "contentType",
                              "size",
                              "inline"
                            ]
                          }
                        }
                      },
                      "bodyState": {
                        "type": "string",
                        "enum": [
                          "available",
                          "pending"
                        ]
                      },
                      "isRead": {
                        "type": "boolean"
                      },
                      "flaggedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deletedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "headers": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string",
                          "maxLength": 16384
                        }
                      },
                      "authoredByWorkflowRunId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "threadId",
                      "inboxId",
                      "organizationId",
                      "providerInternalMessageId",
                      "rfc2822MessageId",
                      "provider",
                      "from",
                      "to",
                      "cc",
                      "bcc",
                      "subject",
                      "snippet",
                      "receivedAt",
                      "direction",
                      "isFromInboxSender",
                      "sentFromUnibox",
                      "attachments",
                      "bodyState",
                      "isRead",
                      "flaggedAt",
                      "deletedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|threadId|inboxId|organizationId|providerInternalMessageId|rfc2822MessageId|provider|from|to|cc|bcc|subject|snippet|receivedAt|direction|isFromInboxSender|sentFromUnibox|attachments|bodyState|isRead|flaggedAt|deletedAt|headers|authoredByWorkflowRunId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "threadId",
                        "inboxId",
                        "organizationId",
                        "providerInternalMessageId",
                        "rfc2822MessageId",
                        "provider",
                        "from",
                        "to",
                        "cc",
                        "bcc",
                        "subject",
                        "snippet",
                        "receivedAt",
                        "direction",
                        "isFromInboxSender",
                        "sentFromUnibox",
                        "attachments",
                        "bodyState",
                        "isRead",
                        "flaggedAt",
                        "deletedAt",
                        "headers",
                        "authoredByWorkflowRunId"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "threadId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "contacts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "contactId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "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"
                                }
                              ]
                            },
                            "leadId": {
                              "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"
                                }
                              ]
                            },
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "firstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "company": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "jobTitle": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "phone": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "city": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "state": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "country": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyWebsiteUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "personalLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "customFieldValues": {
                              "type": "object",
                              "additionalProperties": {
                                "$ref": "#/$defs/Union_"
                              }
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "not_contacted",
                                "contacted",
                                "completed",
                                "task_pending",
                                "task_failed",
                                "paused",
                                "out_of_office",
                                "bounced",
                                "unsubscribed",
                                "ladder_queued",
                                "moved_to_subsequence"
                              ]
                            },
                            "esp": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365",
                                    "other"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "gateway": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "contactId",
                            "campaignId",
                            "campaignName",
                            "leadId",
                            "email",
                            "firstName",
                            "lastName",
                            "company",
                            "jobTitle",
                            "phone",
                            "city",
                            "state",
                            "country",
                            "timezone",
                            "companyWebsiteUrl",
                            "personalLinkedInUrl",
                            "companyLinkedInUrl",
                            "customFieldValues",
                            "status",
                            "esp",
                            "gateway"
                          ],
                          "patternProperties": {
                            "^(?!(?:contactId|campaignId|campaignName|leadId|email|firstName|lastName|company|jobTitle|phone|city|state|country|timezone|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|customFieldValues|status|esp|gateway)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "contactId",
                              "campaignId",
                              "campaignName",
                              "leadId",
                              "email",
                              "firstName",
                              "lastName",
                              "company",
                              "jobTitle",
                              "phone",
                              "city",
                              "state",
                              "country",
                              "timezone",
                              "companyWebsiteUrl",
                              "personalLinkedInUrl",
                              "companyLinkedInUrl",
                              "customFieldValues",
                              "status",
                              "esp",
                              "gateway"
                            ]
                          }
                        },
                        "maxItems": 200
                      }
                    },
                    "required": [
                      "threadId",
                      "contacts"
                    ],
                    "patternProperties": {
                      "^(?!(?:threadId|contacts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "threadId",
                        "contacts"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "email": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "photoUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ProfilePhotoSource"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "email",
                      "photoUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:email|photoUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "email",
                        "photoUrl"
                      ]
                    }
                  }
                ]
              },
              {
                "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"
                                },
                                "inboxId": {
                                  "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"
                                    }
                                  ]
                                },
                                "organizationId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "snippet": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "contact": {
                                  "type": "object",
                                  "properties": {
                                    "emailAddress": {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    "name": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "leadId": {
                                      "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"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "emailAddress",
                                    "name",
                                    "leadId"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:emailAddress|name|leadId)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "emailAddress",
                                      "name",
                                      "leadId"
                                    ]
                                  }
                                },
                                "providerThreadId": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365",
                                    "other"
                                  ]
                                },
                                "lastMessageAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "messageCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "labels": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/$defs/ThreadLabelId"
                                      },
                                      "name": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "hexColor": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "sentiment": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "positive",
                                              "negative",
                                              "neutral"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "custom",
                                          "default"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "hexColor",
                                      "sentiment",
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "name",
                                        "hexColor",
                                        "sentiment",
                                        "type"
                                      ]
                                    }
                                  }
                                },
                                "assignees": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "userId": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "email": {
                                        "$ref": "#/$defs/EmailAddress"
                                      },
                                      "image": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/HttpUrl"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "isFormerMember": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "userId",
                                      "name",
                                      "email",
                                      "image",
                                      "isFormerMember"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "userId",
                                        "name",
                                        "email",
                                        "image",
                                        "isFormerMember"
                                      ]
                                    }
                                  }
                                },
                                "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"
                                    }
                                  ]
                                },
                                "campaignContactId": {
                                  "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"
                                    }
                                  ]
                                },
                                "isRead": {
                                  "type": "boolean"
                                },
                                "starredAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "archivedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "deletedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "folders": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "inbox",
                                      "sent",
                                      "archived",
                                      "starred",
                                      "warmup",
                                      "trash"
                                    ]
                                  }
                                },
                                "recentMessages": {
                                  "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"
                                      },
                                      "providerInternalMessageId": {
                                        "$ref": "#/$defs/OpaqueId"
                                      },
                                      "from": {
                                        "$ref": "#/$defs/NonEmptyString"
                                      },
                                      "to": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/$defs/NonEmptyString"
                                        }
                                      },
                                      "cc": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/$defs/NonEmptyString"
                                        }
                                      },
                                      "subject": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "snippet": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "receivedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "isRead": {
                                        "type": "boolean"
                                      },
                                      "isFromInboxSender": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "providerInternalMessageId",
                                      "from",
                                      "to",
                                      "cc",
                                      "subject",
                                      "snippet",
                                      "receivedAt",
                                      "isRead",
                                      "isFromInboxSender"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|providerInternalMessageId|from|to|cc|subject|snippet|receivedAt|isRead|isFromInboxSender)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "providerInternalMessageId",
                                        "from",
                                        "to",
                                        "cc",
                                        "subject",
                                        "snippet",
                                        "receivedAt",
                                        "isRead",
                                        "isFromInboxSender"
                                      ]
                                    }
                                  },
                                  "maxItems": 20
                                }
                              },
                              "required": [
                                "id",
                                "inboxId",
                                "organizationId",
                                "subject",
                                "snippet",
                                "contact",
                                "providerThreadId",
                                "provider",
                                "lastMessageAt",
                                "messageCount",
                                "labels",
                                "assignees",
                                "campaignId",
                                "campaignContactId",
                                "isRead",
                                "starredAt",
                                "archivedAt",
                                "deletedAt",
                                "folders"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|inboxId|organizationId|subject|snippet|contact|providerThreadId|provider|lastMessageAt|messageCount|labels|assignees|campaignId|campaignContactId|isRead|starredAt|archivedAt|deletedAt|folders|recentMessages)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "inboxId",
                                  "organizationId",
                                  "subject",
                                  "snippet",
                                  "contact",
                                  "providerThreadId",
                                  "provider",
                                  "lastMessageAt",
                                  "messageCount",
                                  "labels",
                                  "assignees",
                                  "campaignId",
                                  "campaignContactId",
                                  "isRead",
                                  "starredAt",
                                  "archivedAt",
                                  "deletedAt",
                                  "folders",
                                  "recentMessages"
                                ]
                              }
                            }
                          },
                          "nextCursor": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Cursor"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "items",
                          "nextCursor"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|nextCursor|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "nextCursor",
                            "total"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "inboxId": {
                            "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"
                              }
                            ]
                          },
                          "organizationId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "snippet": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contact": {
                            "type": "object",
                            "properties": {
                              "emailAddress": {
                                "$ref": "#/$defs/EmailAddress"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "leadId": {
                                "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"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "emailAddress",
                              "name",
                              "leadId"
                            ],
                            "patternProperties": {
                              "^(?!(?:emailAddress|name|leadId)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "emailAddress",
                                "name",
                                "leadId"
                              ]
                            }
                          },
                          "providerThreadId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "google_workspace",
                              "microsoft_365",
                              "other"
                            ]
                          },
                          "lastMessageAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "messageCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/ThreadLabelId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "hexColor": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "sentiment": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "positive",
                                        "negative",
                                        "neutral"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "custom",
                                    "default"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "hexColor",
                                "sentiment",
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "hexColor",
                                  "sentiment",
                                  "type"
                                ]
                              }
                            }
                          },
                          "assignees": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "userId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "image": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/HttpUrl"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isFormerMember": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "userId",
                                "name",
                                "email",
                                "image",
                                "isFormerMember"
                              ],
                              "patternProperties": {
                                "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "userId",
                                  "name",
                                  "email",
                                  "image",
                                  "isFormerMember"
                                ]
                              }
                            }
                          },
                          "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"
                              }
                            ]
                          },
                          "campaignContactId": {
                            "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"
                              }
                            ]
                          },
                          "isRead": {
                            "type": "boolean"
                          },
                          "starredAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "deletedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "folders": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "inbox",
                                "sent",
                                "archived",
                                "starred",
                                "warmup",
                                "trash"
                              ]
                            }
                          },
                          "recentMessages": {
                            "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"
                                },
                                "providerInternalMessageId": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "from": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "cc": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "snippet": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "receivedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "isRead": {
                                  "type": "boolean"
                                },
                                "isFromInboxSender": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "providerInternalMessageId",
                                "from",
                                "to",
                                "cc",
                                "subject",
                                "snippet",
                                "receivedAt",
                                "isRead",
                                "isFromInboxSender"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|providerInternalMessageId|from|to|cc|subject|snippet|receivedAt|isRead|isFromInboxSender)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "providerInternalMessageId",
                                  "from",
                                  "to",
                                  "cc",
                                  "subject",
                                  "snippet",
                                  "receivedAt",
                                  "isRead",
                                  "isFromInboxSender"
                                ]
                              }
                            },
                            "maxItems": 20
                          }
                        },
                        "required": [
                          "id",
                          "inboxId",
                          "organizationId",
                          "subject",
                          "snippet",
                          "contact",
                          "providerThreadId",
                          "provider",
                          "lastMessageAt",
                          "messageCount",
                          "labels",
                          "assignees",
                          "campaignId",
                          "campaignContactId",
                          "isRead",
                          "starredAt",
                          "archivedAt",
                          "deletedAt",
                          "folders"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|inboxId|organizationId|subject|snippet|contact|providerThreadId|provider|lastMessageAt|messageCount|labels|assignees|campaignId|campaignContactId|isRead|starredAt|archivedAt|deletedAt|folders|recentMessages)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "inboxId",
                            "organizationId",
                            "subject",
                            "snippet",
                            "contact",
                            "providerThreadId",
                            "provider",
                            "lastMessageAt",
                            "messageCount",
                            "labels",
                            "assignees",
                            "campaignId",
                            "campaignContactId",
                            "isRead",
                            "starredAt",
                            "archivedAt",
                            "deletedAt",
                            "folders",
                            "recentMessages"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "threadId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "inboxId": {
                                  "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"
                                    }
                                  ]
                                },
                                "organizationId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "providerInternalMessageId": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "rfc2822MessageId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365",
                                    "other"
                                  ]
                                },
                                "from": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "cc": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "bcc": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "snippet": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "receivedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "direction": {
                                  "type": "string",
                                  "enum": [
                                    "inbound",
                                    "outbound"
                                  ]
                                },
                                "isFromInboxSender": {
                                  "type": "boolean"
                                },
                                "sentFromUnibox": {
                                  "type": "boolean"
                                },
                                "attachments": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/$defs/AttachmentId"
                                      },
                                      "filename": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "contentType": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "size": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "inline": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "filename",
                                      "contentType",
                                      "size",
                                      "inline"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "filename",
                                        "contentType",
                                        "size",
                                        "inline"
                                      ]
                                    }
                                  }
                                },
                                "bodyState": {
                                  "type": "string",
                                  "enum": [
                                    "available",
                                    "pending"
                                  ]
                                },
                                "isRead": {
                                  "type": "boolean"
                                },
                                "flaggedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "deletedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "headers": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string",
                                    "maxLength": 16384
                                  }
                                },
                                "authoredByWorkflowRunId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "threadId",
                                "inboxId",
                                "organizationId",
                                "providerInternalMessageId",
                                "rfc2822MessageId",
                                "provider",
                                "from",
                                "to",
                                "cc",
                                "bcc",
                                "subject",
                                "snippet",
                                "receivedAt",
                                "direction",
                                "isFromInboxSender",
                                "sentFromUnibox",
                                "attachments",
                                "bodyState",
                                "isRead",
                                "flaggedAt",
                                "deletedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|threadId|inboxId|organizationId|providerInternalMessageId|rfc2822MessageId|provider|from|to|cc|bcc|subject|snippet|receivedAt|direction|isFromInboxSender|sentFromUnibox|attachments|bodyState|isRead|flaggedAt|deletedAt|headers|authoredByWorkflowRunId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "threadId",
                                  "inboxId",
                                  "organizationId",
                                  "providerInternalMessageId",
                                  "rfc2822MessageId",
                                  "provider",
                                  "from",
                                  "to",
                                  "cc",
                                  "bcc",
                                  "subject",
                                  "snippet",
                                  "receivedAt",
                                  "direction",
                                  "isFromInboxSender",
                                  "sentFromUnibox",
                                  "attachments",
                                  "bodyState",
                                  "isRead",
                                  "flaggedAt",
                                  "deletedAt",
                                  "headers",
                                  "authoredByWorkflowRunId"
                                ]
                              }
                            }
                          },
                          "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"
                          },
                          "threadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "inboxId": {
                            "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"
                              }
                            ]
                          },
                          "organizationId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "providerInternalMessageId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "rfc2822MessageId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "google_workspace",
                              "microsoft_365",
                              "other"
                            ]
                          },
                          "from": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "to": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "cc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "bcc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "snippet": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "receivedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "inbound",
                              "outbound"
                            ]
                          },
                          "isFromInboxSender": {
                            "type": "boolean"
                          },
                          "sentFromUnibox": {
                            "type": "boolean"
                          },
                          "attachments": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/AttachmentId"
                                },
                                "filename": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "contentType": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inline": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "filename",
                                "contentType",
                                "size",
                                "inline"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "filename",
                                  "contentType",
                                  "size",
                                  "inline"
                                ]
                              }
                            }
                          },
                          "bodyState": {
                            "type": "string",
                            "enum": [
                              "available",
                              "pending"
                            ]
                          },
                          "isRead": {
                            "type": "boolean"
                          },
                          "flaggedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "deletedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "headers": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string",
                              "maxLength": 16384
                            }
                          },
                          "authoredByWorkflowRunId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "threadId",
                          "inboxId",
                          "organizationId",
                          "providerInternalMessageId",
                          "rfc2822MessageId",
                          "provider",
                          "from",
                          "to",
                          "cc",
                          "bcc",
                          "subject",
                          "snippet",
                          "receivedAt",
                          "direction",
                          "isFromInboxSender",
                          "sentFromUnibox",
                          "attachments",
                          "bodyState",
                          "isRead",
                          "flaggedAt",
                          "deletedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|threadId|inboxId|organizationId|providerInternalMessageId|rfc2822MessageId|provider|from|to|cc|bcc|subject|snippet|receivedAt|direction|isFromInboxSender|sentFromUnibox|attachments|bodyState|isRead|flaggedAt|deletedAt|headers|authoredByWorkflowRunId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "threadId",
                            "inboxId",
                            "organizationId",
                            "providerInternalMessageId",
                            "rfc2822MessageId",
                            "provider",
                            "from",
                            "to",
                            "cc",
                            "bcc",
                            "subject",
                            "snippet",
                            "receivedAt",
                            "direction",
                            "isFromInboxSender",
                            "sentFromUnibox",
                            "attachments",
                            "bodyState",
                            "isRead",
                            "flaggedAt",
                            "deletedAt",
                            "headers",
                            "authoredByWorkflowRunId"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "threadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "contacts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "contactId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "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"
                                    }
                                  ]
                                },
                                "leadId": {
                                  "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"
                                    }
                                  ]
                                },
                                "email": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "firstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "company": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "jobTitle": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "phone": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "city": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "state": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "country": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "timezone": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyWebsiteUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/HttpUrl"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personalLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/HttpUrl"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/HttpUrl"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "customFieldValues": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "$ref": "#/$defs/Union_"
                                  }
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "not_contacted",
                                    "contacted",
                                    "completed",
                                    "task_pending",
                                    "task_failed",
                                    "paused",
                                    "out_of_office",
                                    "bounced",
                                    "unsubscribed",
                                    "ladder_queued",
                                    "moved_to_subsequence"
                                  ]
                                },
                                "esp": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "google_workspace",
                                        "microsoft_365",
                                        "other"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "gateway": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "contactId",
                                "campaignId",
                                "campaignName",
                                "leadId",
                                "email",
                                "firstName",
                                "lastName",
                                "company",
                                "jobTitle",
                                "phone",
                                "city",
                                "state",
                                "country",
                                "timezone",
                                "companyWebsiteUrl",
                                "personalLinkedInUrl",
                                "companyLinkedInUrl",
                                "customFieldValues",
                                "status",
                                "esp",
                                "gateway"
                              ],
                              "patternProperties": {
                                "^(?!(?:contactId|campaignId|campaignName|leadId|email|firstName|lastName|company|jobTitle|phone|city|state|country|timezone|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|customFieldValues|status|esp|gateway)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "contactId",
                                  "campaignId",
                                  "campaignName",
                                  "leadId",
                                  "email",
                                  "firstName",
                                  "lastName",
                                  "company",
                                  "jobTitle",
                                  "phone",
                                  "city",
                                  "state",
                                  "country",
                                  "timezone",
                                  "companyWebsiteUrl",
                                  "personalLinkedInUrl",
                                  "companyLinkedInUrl",
                                  "customFieldValues",
                                  "status",
                                  "esp",
                                  "gateway"
                                ]
                              }
                            },
                            "maxItems": 200
                          }
                        },
                        "required": [
                          "threadId",
                          "contacts"
                        ],
                        "patternProperties": {
                          "^(?!(?:threadId|contacts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "threadId",
                            "contacts"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "email": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "photoUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ProfilePhotoSource"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "email",
                          "photoUrl"
                        ],
                        "patternProperties": {
                          "^(?!(?:email|photoUrl)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "email",
                            "photoUrl"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "browse_unibox_threads"
      },
      "scopes": [
        "unibox:read"
      ],
      "bundles": [
        "unibox_lead_capture",
        "unibox_reply_flow",
        "unibox_triage"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "uniboxThreads.list",
        "uniboxThreads.get",
        "uniboxThreads.listMessages",
        "uniboxMessages.get",
        "uniboxContacts.get",
        "uniboxContacts.getPhoto"
      ],
      "invocations": [
        {
          "operationId": "uniboxThreads.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/threads",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.listMessages",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId/messages",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxMessages.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxContacts.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId/contact",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxContacts.getPhoto",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId/contact/photo",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "filters": {
                "type": "object",
                "properties": {
                  "cursor": {
                    "$ref": "#/$defs/Cursor"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "search": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "sortBy": {
                    "type": "string",
                    "enum": [
                      "lastMessageAt",
                      "createdAt"
                    ]
                  },
                  "sortOrder": {
                    "type": "string",
                    "enum": [
                      "asc",
                      "desc"
                    ]
                  },
                  "readStatus": {
                    "type": "string",
                    "enum": [
                      "all",
                      "read",
                      "unread"
                    ]
                  },
                  "folder": {
                    "type": "string",
                    "enum": [
                      "inbox",
                      "sent",
                      "archived",
                      "starred",
                      "warmup",
                      "trash"
                    ]
                  },
                  "showAllEmails": {
                    "type": "boolean"
                  },
                  "inboxIds": {
                    "type": "string"
                  },
                  "campaignIds": {
                    "type": "string"
                  },
                  "campaignFilter": {
                    "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": "string"
                  },
                  "assigneeUserIds": {
                    "type": "string"
                  },
                  "organizationIds": {
                    "type": "string"
                  }
                },
                "patternProperties": {
                  "^(?!(?:cursor|limit|search|sortBy|sortOrder|readStatus|folder|showAllEmails|inboxIds|campaignIds|campaignFilter|labelIds|assigneeUserIds|organizationIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "cursor",
                    "limit",
                    "search",
                    "sortBy",
                    "sortOrder",
                    "readStatus",
                    "folder",
                    "showAllEmails",
                    "inboxIds",
                    "campaignIds",
                    "campaignFilter",
                    "labelIds",
                    "assigneeUserIds",
                    "organizationIds"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|filters)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "filters"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "thread"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|threadId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "threadId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "messages"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|threadId|cursor|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "threadId",
                    "cursor",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "message"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|messageId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "messageId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "contacts"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|threadId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "threadId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "contact_photo"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "email": {
                "$ref": "#/$defs/EmailAddress"
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|threadId|email|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "threadId",
                    "email",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "cancel_dialer_addon",
      "description": "Schedule the dialer add-on to end at the close of the paid period, with the reason the workspace gave.\n\nUse when a workspace has decided to stop dialing. Service continues until the effective date, so nothing is cut off mid-call.\n\nCancelling does not release numbers or revoke seats, and re-subscribing is a new purchase. Confirm with a human before running it.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "cancel": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "enum": [
                  "cost",
                  "missing_features",
                  "bugs_quality",
                  "not_using",
                  "switching",
                  "other"
                ]
              },
              "feedback": {
                "type": "string",
                "maxLength": 2000
              },
              "fairPrice": {
                "type": "string",
                "maxLength": 100
              }
            },
            "required": [
              "reason"
            ],
            "patternProperties": {
              "^(?!(?:reason|feedback|fairPrice)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "reason",
                "feedback",
                "fairPrice"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "cancel"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|cancel)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "cancel"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "canceled": {
                        "type": "boolean"
                      },
                      "effectiveAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "canceled",
                      "effectiveAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:canceled|effectiveAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "canceled",
                        "effectiveAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "active": {
                        "type": "boolean"
                      },
                      "cancelAtPeriodEnd": {
                        "type": "boolean"
                      },
                      "plan": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "dialer_5",
                              "dialer_10"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "purchasedSeats": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "assignedSeats": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "numbersPerSeat": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "active",
                      "cancelAtPeriodEnd",
                      "plan",
                      "purchasedSeats",
                      "assignedSeats",
                      "numbersPerSeat"
                    ],
                    "patternProperties": {
                      "^(?!(?:active|cancelAtPeriodEnd|plan|purchasedSeats|assignedSeats|numbersPerSeat)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "active",
                        "cancelAtPeriodEnd",
                        "plan",
                        "purchasedSeats",
                        "assignedSeats",
                        "numbersPerSeat"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "canceled": {
                            "type": "boolean"
                          },
                          "effectiveAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "canceled",
                          "effectiveAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:canceled|effectiveAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "canceled",
                            "effectiveAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "active": {
                            "type": "boolean"
                          },
                          "cancelAtPeriodEnd": {
                            "type": "boolean"
                          },
                          "plan": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dialer_5",
                                  "dialer_10"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "purchasedSeats": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "assignedSeats": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "numbersPerSeat": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "active",
                          "cancelAtPeriodEnd",
                          "plan",
                          "purchasedSeats",
                          "assignedSeats",
                          "numbersPerSeat"
                        ],
                        "patternProperties": {
                          "^(?!(?:active|cancelAtPeriodEnd|plan|purchasedSeats|assignedSeats|numbersPerSeat)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "active",
                            "cancelAtPeriodEnd",
                            "plan",
                            "purchasedSeats",
                            "assignedSeats",
                            "numbersPerSeat"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "cancel_dialer_addon"
      },
      "scopes": [
        "dialer:manage_billing"
      ],
      "bundles": [
        "dialer_operations"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerBilling.cancel",
        "dialerBilling.status"
      ],
      "invocations": [
        {
          "operationId": "dialerBilling.cancel",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/billing/cancel",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerBilling.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/billing/status",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "cancel": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "enum": [
                  "cost",
                  "missing_features",
                  "bugs_quality",
                  "not_using",
                  "switching",
                  "other"
                ]
              },
              "feedback": {
                "type": "string",
                "maxLength": 2000
              },
              "fairPrice": {
                "type": "string",
                "maxLength": 100
              }
            },
            "required": [
              "reason"
            ],
            "patternProperties": {
              "^(?!(?:reason|feedback|fairPrice)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "reason",
                "feedback",
                "fairPrice"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "cancel"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|cancel)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "cancel"
          ]
        }
      }
    },
    {
      "feature": "agent-platform",
      "name": "cancel_operation",
      "description": "Request cancellation of a durable operation where its kind supports cancellation.\n\nUse to stop queued or running work the agent no longer needs; the result reports whether cancellation took.\n\nCancellation is not a rollback; completed work and already-sent side effects stay done.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "operationId"
        ],
        "patternProperties": {
          "^(?!(?:operationId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "operationId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "cancellation": {
            "type": "string",
            "enum": [
              "supported",
              "requested",
              "terminal"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "waiting_for_user",
              "succeeded",
              "partially_succeeded",
              "failed",
              "canceled",
              "canceling"
            ]
          }
        },
        "required": [
          "id",
          "cancellation",
          "state"
        ],
        "patternProperties": {
          "^(?!(?:id|cancellation|state)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "cancellation",
            "state"
          ]
        }
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "agent.getOperation"
      },
      "scopes": [
        "agent:operations:cancel",
        "agent:operations:read"
      ],
      "bundles": [
        "operations"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "agent.cancelOperation",
        "agent.getOperation"
      ],
      "invocations": [
        {
          "operationId": "agent.cancelOperation",
          "method": "POST",
          "path": "/agent/operations/:operationId/cancel",
          "workspaceScoped": false
        },
        {
          "operationId": "agent.getOperation",
          "method": "GET",
          "path": "/agent/operations/:operationId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "operationId"
        ],
        "patternProperties": {
          "^(?!(?:operationId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "operationId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "cancel_permission_request",
      "description": "Withdraw the person's own pending permission request.\n\nUse when the person no longer needs the access they asked for. Cancelling a request that is no longer pending is a no-op.\n\nIt cannot cancel someone else's request.",
      "inputSchema": {
        "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"
          },
          "requestId": {
            "$ref": "#/$defs/PermissionRequestId"
          }
        },
        "required": [
          "workspaceId",
          "requestId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestId"
          ]
        },
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "PermissionRequestStatus": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "denied",
              "canceled",
              "expired"
            ]
          },
          "PermissionRequestPerson": {
            "type": "object",
            "properties": {
              "userId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "userId",
              "name",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "name",
                "email"
              ]
            }
          },
          "PermissionRequestContext": {
            "type": "object",
            "properties": {
              "attemptedOperation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptedTool": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "explanation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:attemptedOperation|attemptedTool|explanation)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attemptedOperation",
                "attemptedTool",
                "explanation"
              ]
            }
          },
          "PermissionRequestSource": {
            "type": "string",
            "enum": [
              "web",
              "api",
              "agent"
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "PermissionRequest": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/PermissionRequestId"
              },
              "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"
              },
              "status": {
                "$ref": "#/$defs/PermissionRequestStatus"
              },
              "requester": {
                "$ref": "#/$defs/PermissionRequestPerson"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "grantedPermissions": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "context": {
                "$ref": "#/$defs/PermissionRequestContext"
              },
              "source": {
                "$ref": "#/$defs/PermissionRequestSource"
              },
              "agentName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "decidedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decidedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestPerson"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decisionNote": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewable": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "requester",
              "permissions",
              "grantedPermissions",
              "reason",
              "context",
              "source",
              "agentName",
              "createdAt",
              "expiresAt",
              "decidedAt",
              "decidedBy",
              "decisionNote",
              "reviewable"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|requester|permissions|grantedPermissions|reason|context|source|agentName|createdAt|expiresAt|decidedAt|decidedBy|decisionNote|reviewable)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "requester",
                "permissions",
                "grantedPermissions",
                "reason",
                "context",
                "source",
                "agentName",
                "createdAt",
                "expiresAt",
                "decidedAt",
                "decidedBy",
                "decisionNote",
                "reviewable"
              ]
            }
          },
          "PermissionRequestDecisionResult": {
            "type": "object",
            "properties": {
              "request": {
                "$ref": "#/$defs/PermissionRequest"
              },
              "changed": {
                "type": "boolean"
              }
            },
            "required": [
              "request",
              "changed"
            ],
            "patternProperties": {
              "^(?!(?:request|changed)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "request",
                "changed"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/PermissionRequestDecisionResult"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestDecisionResult"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "cancel_permission_request"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "permission_requests"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "permissionRequests.cancel"
      ],
      "invocations": [
        {
          "operationId": "permissionRequests.cancel",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/permission-requests/:requestId/cancel",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "requestId": {
            "$ref": "#/$defs/PermissionRequestId"
          }
        },
        "required": [
          "workspaceId",
          "requestId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestId"
          ]
        },
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "cancel_reminder",
      "description": "Cancel a pending reminder and release its scheduled send.\n\nUse when a follow-up is no longer needed; cancellation works even when the subscription is frozen.\n\nCancellation cannot resurrect a sent reminder; check status first.",
      "inputSchema": {
        "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"
          },
          "reminderId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "reminderId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|reminderId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "reminderId"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "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"
          },
          "threadId": {
            "$ref": "#/$defs/ProviderId"
          },
          "remindAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "isAutomatic": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "sent",
              "cancelled"
            ]
          },
          "sentAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancelledAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "jobRunId": {
            "anyOf": [
              {
                "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": "string",
                    "pattern": "^run_[a-zA-Z0-9]{1,200}$"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "updatedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "threadId",
          "remindAt",
          "isAutomatic",
          "status",
          "sentAt",
          "cancelledAt",
          "jobRunId",
          "createdAt",
          "updatedAt"
        ],
        "patternProperties": {
          "^(?!(?:id|workspaceId|threadId|remindAt|isAutomatic|status|sentAt|cancelledAt|jobRunId|createdAt|updatedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "workspaceId",
            "threadId",
            "remindAt",
            "isAutomatic",
            "status",
            "sentAt",
            "cancelledAt",
            "jobRunId",
            "createdAt",
            "updatedAt"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "cancel_reminder"
      },
      "scopes": [
        "unibox:reply"
      ],
      "bundles": [
        "reminders"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "reminders.cancel"
      ],
      "invocations": [
        {
          "operationId": "reminders.cancel",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/reminders/:reminderId/cancel",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "reminderId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "reminderId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|reminderId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "reminderId"
          ]
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "complete_task",
      "description": "Mark an ordinary task complete or reopen it.\n\nUse for ordinary tasks; campaign-linked tasks also record an outcome.\n\nA pending human request must be answered through its respond flow — completion never bypasses it.",
      "inputSchema": {
        "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"
          },
          "taskId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "completed": {
            "type": "boolean"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "no_luck",
              "responded",
              "bad_info"
            ]
          },
          "phoneOutcomes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "leadPhoneId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "outcome": {
                  "type": "string",
                  "enum": [
                    "no_luck",
                    "responded",
                    "bad_info"
                  ]
                }
              },
              "required": [
                "leadPhoneId",
                "outcome"
              ],
              "patternProperties": {
                "^(?!(?:leadPhoneId|outcome)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "leadPhoneId",
                  "outcome"
                ]
              }
            },
            "maxItems": 50
          }
        },
        "required": [
          "workspaceId",
          "taskId",
          "completed"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|taskId|completed|outcome|phoneOutcomes)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "taskId",
            "completed",
            "outcome",
            "phoneOutcomes"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "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"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "dueDate": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedBy": {
            "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"
              }
            ]
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "no_luck",
                  "responded",
                  "bad_info"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "leadId": {
            "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"
              }
            ]
          },
          "campaignContactId": {
            "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"
              }
            ]
          },
          "campaignStepId": {
            "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"
              }
            ]
          },
          "workflowRunId": {
            "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"
              }
            ]
          },
          "workflow": {
            "anyOf": [
              {
                "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": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:id|name)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "humanRequest": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "approval",
                          "text"
                        ]
                      },
                      "question": {
                        "$ref": "#/$defs/Description"
                      }
                    },
                    "required": [
                      "type",
                      "question"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|question)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "question"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "choice"
                            ]
                          }
                        ]
                      },
                      "question": {
                        "$ref": "#/$defs/Description"
                      },
                      "options": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "type",
                      "question",
                      "options"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|question|options)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "question",
                        "options"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "humanResponse": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "approval"
                            ]
                          }
                        ]
                      },
                      "approved": {
                        "type": "boolean"
                      },
                      "comment": {
                        "$ref": "#/$defs/ShortText"
                      }
                    },
                    "required": [
                      "type",
                      "approved"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|approved|comment)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "approved",
                        "comment"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "text"
                            ]
                          }
                        ]
                      },
                      "text": {
                        "$ref": "#/$defs/Description"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|text)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "text"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "choice"
                            ]
                          }
                        ]
                      },
                      "choice": {
                        "$ref": "#/$defs/NonEmptyString"
                      }
                    },
                    "required": [
                      "type",
                      "choice"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|choice)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "choice"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "requestState": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "pending",
                  "answered",
                  "expired",
                  "cancelled"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "responseExpiresAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "requestedByAgentRegistrationId": {
            "anyOf": [
              {
                "$ref": "#/$defs/OpaqueId"
              },
              {
                "type": "null"
              }
            ]
          },
          "operationId": {
            "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"
              }
            ]
          },
          "assignees": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                  "$ref": "#/$defs/ShortText"
                },
                "email": {
                  "$ref": "#/$defs/EmailAddress"
                },
                "image": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "inOrg": {
                  "type": "boolean"
                }
              },
              "required": [
                "userId",
                "name",
                "email",
                "image",
                "inOrg"
              ],
              "patternProperties": {
                "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ]
              }
            }
          },
          "createdBy": {
            "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"
              }
            ]
          },
          "createdByUser": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inOrg": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "inOrg"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "completedByUser": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inOrg": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "inOrg"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "lead": {
            "anyOf": [
              {
                "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"
                  },
                  "firstName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "lastName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "companyName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "emailAddress": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phoneNumber": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "firstName",
                  "lastName",
                  "companyName",
                  "emailAddress",
                  "phoneNumber"
                ],
                "patternProperties": {
                  "^(?!(?:id|firstName|lastName|companyName|emailAddress|phoneNumber)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "firstName",
                    "lastName",
                    "companyName",
                    "emailAddress",
                    "phoneNumber"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "outcomeDetail": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "phoneOutcomes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "leadPhoneId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_luck",
                            "responded",
                            "bad_info"
                          ]
                        }
                      },
                      "required": [
                        "leadPhoneId",
                        "outcome"
                      ],
                      "patternProperties": {
                        "^(?!(?:leadPhoneId|outcome)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "leadPhoneId",
                          "outcome"
                        ]
                      }
                    },
                    "maxItems": 50
                  }
                },
                "required": [
                  "phoneOutcomes"
                ],
                "patternProperties": {
                  "^(?!(?:phoneOutcomes)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "phoneOutcomes"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "updatedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "title",
          "description",
          "dueDate",
          "completedAt",
          "completedBy",
          "outcome",
          "leadId",
          "campaignContactId",
          "campaignStepId",
          "workflowRunId",
          "workflow",
          "humanRequest",
          "humanResponse",
          "requestState",
          "responseExpiresAt",
          "requestedByAgentRegistrationId",
          "operationId",
          "assignees",
          "createdBy",
          "createdAt",
          "updatedAt"
        ],
        "patternProperties": {
          "^(?!(?:id|workspaceId|title|description|dueDate|completedAt|completedBy|outcome|leadId|campaignContactId|campaignStepId|workflowRunId|workflow|humanRequest|humanResponse|requestState|responseExpiresAt|requestedByAgentRegistrationId|operationId|assignees|createdBy|createdByUser|completedByUser|lead|outcomeDetail|createdAt|updatedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "workspaceId",
            "title",
            "description",
            "dueDate",
            "completedAt",
            "completedBy",
            "outcome",
            "leadId",
            "campaignContactId",
            "campaignStepId",
            "workflowRunId",
            "workflow",
            "humanRequest",
            "humanResponse",
            "requestState",
            "responseExpiresAt",
            "requestedByAgentRegistrationId",
            "operationId",
            "assignees",
            "createdBy",
            "createdByUser",
            "completedByUser",
            "lead",
            "outcomeDetail",
            "createdAt",
            "updatedAt"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "complete_task"
      },
      "scopes": [
        "task:update"
      ],
      "bundles": [
        "tasks"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "tasks.setCompleted"
      ],
      "invocations": [
        {
          "operationId": "tasks.setCompleted",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/tasks/:taskId/completed",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "taskId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "completed": {
            "type": "boolean"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "no_luck",
              "responded",
              "bad_info"
            ]
          },
          "phoneOutcomes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "leadPhoneId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "outcome": {
                  "type": "string",
                  "enum": [
                    "no_luck",
                    "responded",
                    "bad_info"
                  ]
                }
              },
              "required": [
                "leadPhoneId",
                "outcome"
              ],
              "patternProperties": {
                "^(?!(?:leadPhoneId|outcome)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "leadPhoneId",
                  "outcome"
                ]
              }
            },
            "maxItems": 50
          }
        },
        "required": [
          "workspaceId",
          "taskId",
          "completed"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|taskId|completed|outcome|phoneOutcomes)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "taskId",
            "completed",
            "outcome",
            "phoneOutcomes"
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "configure_getleads_rate_limit",
      "description": "Set how many GetLeads requests per minute this workspace may start (1–100).\n\nUse to slow the workspace down when GetLeads answers with rate limits, or to raise the pace for a planned run.\n\nThe gate is shared by every caller using the same key; it cannot exceed GetLeads' own limits.",
      "inputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "requestsPerMinute": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId",
          "connectionId",
          "requestsPerMinute"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId|requestsPerMinute)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId",
            "requestsPerMinute"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "status": {
            "type": "string",
            "enum": [
              "connected",
              "needs_reauthorization",
              "disabled",
              "disconnected"
            ]
          },
          "keyLastFour": {
            "type": "string",
            "pattern": "^.{4}$"
          },
          "requestsPerMinute": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "webhookEnabled": {
            "type": "boolean"
          },
          "lastWebhookAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastValidatedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "connectedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "status",
          "keyLastFour",
          "requestsPerMinute",
          "webhookEnabled",
          "lastWebhookAt",
          "lastValidatedAt",
          "connectedAt"
        ],
        "patternProperties": {
          "^(?!(?:id|status|keyLastFour|requestsPerMinute|webhookEnabled|lastWebhookAt|lastValidatedAt|connectedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "status",
            "keyLastFour",
            "requestsPerMinute",
            "webhookEnabled",
            "lastWebhookAt",
            "lastValidatedAt",
            "connectedAt"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "configure_getleads_rate_limit"
      },
      "scopes": [
        "integration:update"
      ],
      "bundles": [
        "getleads"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "getleads.setRateLimit"
      ],
      "invocations": [
        {
          "operationId": "getleads.setRateLimit",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/integrations/getleads/:connectionId/rate-limit",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "requestsPerMinute": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId",
          "connectionId",
          "requestsPerMinute"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId|requestsPerMinute)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId",
            "requestsPerMinute"
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "connect_attio",
      "description": "Start the Attio OAuth connection for a workspace by returning a signed-state authorization URL.\n\nUse when the workspace needs an Attio connection; hand the URL to a human and poll getStatus.\n\nAgents never transmit the authorization code or tokens; do not attempt the callback directly.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "authorizationUrl": {
            "$ref": "#/$defs/HttpUrl"
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "authorizationUrl",
          "expiresAt"
        ],
        "patternProperties": {
          "^(?!(?:authorizationUrl|expiresAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "authorizationUrl",
            "expiresAt"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "authorizationUrl",
        "statusOperationId": "attio.getStatus"
      },
      "scopes": [
        "integration:create",
        "integration:read"
      ],
      "bundles": [
        "integrations"
      ],
      "risk": "write",
      "idempotency": "none",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "attio.getAuthUrl",
        "attio.getStatus"
      ],
      "invocations": [
        {
          "operationId": "attio.getAuthUrl",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/oauth",
          "workspaceScoped": false
        },
        {
          "operationId": "attio.getStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "booking",
      "name": "connect_calendly",
      "description": "Start the Calendly OAuth connection for a workspace by returning a signed-state authorization URL.\n\nUse when the workspace needs a calendar connection; hand the URL to a human and poll getStatus.\n\nAgents never transmit the authorization code or tokens; do not attempt the callback directly.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "authorizationUrl": {
            "$ref": "#/$defs/HttpUrl"
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "authorizationUrl",
          "expiresAt"
        ],
        "patternProperties": {
          "^(?!(?:authorizationUrl|expiresAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "authorizationUrl",
            "expiresAt"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "authorizationUrl",
        "statusOperationId": "booking.calendly.getStatus"
      },
      "scopes": [
        "integration:create",
        "integration:read"
      ],
      "bundles": [
        "booking"
      ],
      "risk": "write",
      "idempotency": "none",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "booking.calendly.getAuthUrl",
        "booking.calendly.getStatus"
      ],
      "invocations": [
        {
          "operationId": "booking.calendly.getAuthUrl",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/booking/calendly/oauth",
          "workspaceScoped": false
        },
        {
          "operationId": "booking.calendly.getStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/booking/calendly",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "connect_google_inbox",
      "description": "Mints a signed-state Google authorization URL; a human completes consent in the browser and the inbox appears on the next sync.\n\nWhen asked to connect a new Google Workspace/Gmail inbox.\n\nFor Microsoft or IMAP/SMTP inboxes, or for reconnecting an existing inbox.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "authorizationUrl": {
            "$ref": "#/$defs/HttpUrl"
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "googleClientId": {
            "anyOf": [
              {
                "$ref": "#/$defs/NonEmptyString"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "authorizationUrl",
          "expiresAt",
          "googleClientId"
        ],
        "patternProperties": {
          "^(?!(?:authorizationUrl|expiresAt|googleClientId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "authorizationUrl",
            "expiresAt",
            "googleClientId"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "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
          }
        }
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "authorizationUrl",
        "statusOperationId": "inboxes.list"
      },
      "scopes": [
        "inbox:connect",
        "inbox:read"
      ],
      "bundles": [
        "inbox_connection_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxConnections.startGoogleOAuth",
        "inboxes.list"
      ],
      "invocations": [
        {
          "operationId": "inboxConnections.startGoogleOAuth",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-connections/google/oauth",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "connect_mailbox_provider",
      "description": "Starts a human handoff so a workspace member can enter a Cheap Inboxes or Inboxing API key. The agent receives the workspace inboxes URL, which does not expire. Initiating this handoff requires only integration:create.\n\nWhen asked to connect a mailbox vendor. Hand the URL to a member. Poll saved connections with manage_mailbox_provider_import, which requires integration:read. Do not treat the URL as time-limited.\n\nDo not collect, transmit, or guess the vendor API key. identify and connect stay on the human page. Do not request integration:read just to start this handoff.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "cheap_inboxes",
              "inboxing"
            ]
          }
        },
        "required": [
          "workspaceId",
          "provider"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "cheap_inboxes",
              "inboxing"
            ]
          },
          "handoffUrl": {
            "$ref": "#/$defs/HttpUrl"
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "awaiting_human"
                ]
              }
            ]
          }
        },
        "required": [
          "provider",
          "handoffUrl",
          "status"
        ],
        "patternProperties": {
          "^(?!(?:provider|handoffUrl|status)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "provider",
            "handoffUrl",
            "status"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "handoffUrl",
        "statusOperationId": "inboxProviderImports.listConnections"
      },
      "scopes": [
        "integration:create"
      ],
      "bundles": [
        "mailbox_provider_imports"
      ],
      "risk": "write",
      "idempotency": "none",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxProviderImports.prepareConnect"
      ],
      "invocations": [
        {
          "operationId": "inboxProviderImports.prepareConnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/connections/handoff",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "cheap_inboxes",
              "inboxing"
            ]
          }
        },
        "required": [
          "workspaceId",
          "provider"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider"
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "connect_microsoft_inbox",
      "description": "Mints a signed-state Microsoft authorization URL; a human completes consent in the browser.\n\nWhen asked to connect a Microsoft 365 / Outlook inbox.\n\nFor Google or IMAP/SMTP inboxes.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "authorizationUrl": {
            "$ref": "#/$defs/HttpUrl"
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "googleClientId": {
            "anyOf": [
              {
                "$ref": "#/$defs/NonEmptyString"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "authorizationUrl",
          "expiresAt",
          "googleClientId"
        ],
        "patternProperties": {
          "^(?!(?:authorizationUrl|expiresAt|googleClientId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "authorizationUrl",
            "expiresAt",
            "googleClientId"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "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
          }
        }
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "authorizationUrl",
        "statusOperationId": "inboxes.list"
      },
      "scopes": [
        "inbox:connect",
        "inbox:read"
      ],
      "bundles": [
        "inbox_connection_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxConnections.startMicrosoftOAuth",
        "inboxes.list"
      ],
      "invocations": [
        {
          "operationId": "inboxConnections.startMicrosoftOAuth",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-connections/microsoft/oauth",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "workflows",
      "name": "connect_workflow_integration",
      "description": "Start connecting an app — or a customer's own MCP server — that an agent block may later call, and hand back the authorization URL a person opens to finish it.\n\nUse when a graph needs an app this workspace has not authorized yet. The agent proposes the connection and the person authorizes it; poll the MCP server list to see when the authorization lands.\n\nThe agent never sees or carries the authorization itself — the provider issues it to the person who opens the URL. A no-auth toolkit finishes without a URL, which the result states rather than leaving you to infer from a null. Connecting is disabled on preview deployments, which share real customer accounts.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "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"
          },
          "connect": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "app"
                    ]
                  },
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "toolkitSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                },
                "required": [
                  "kind",
                  "name",
                  "toolkitSlug"
                ],
                "patternProperties": {
                  "^(?!(?:kind|name|toolkitSlug)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "name",
                    "toolkitSlug"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "custom"
                    ]
                  },
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "url": {
                    "$ref": "#/$defs/HttpsUrl"
                  },
                  "auth": {
                    "type": "string",
                    "enum": [
                      "no_auth",
                      "api_key",
                      "dcr_oauth"
                    ]
                  },
                  "discoveryUrl": {
                    "$ref": "#/$defs/HttpsUrl"
                  },
                  "headerName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[A-Za-z0-9-]+$"
                  },
                  "headerPrefix": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[^\\r\\n]*$"
                  }
                },
                "required": [
                  "kind",
                  "name",
                  "url",
                  "auth"
                ],
                "patternProperties": {
                  "^(?!(?:kind|name|url|auth|discoveryUrl|headerName|headerPrefix)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "name",
                    "url",
                    "auth",
                    "discoveryUrl",
                    "headerName",
                    "headerPrefix"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "connect"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connect)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connect"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpsUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "WorkflowMcpServerId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "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$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/WorkflowMcpServerId"
                      },
                      "requiresAuthorization": {
                        "type": "boolean"
                      },
                      "redirectUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "requiresAuthorization",
                      "redirectUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|requiresAuthorization|redirectUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "requiresAuthorization",
                        "redirectUrl"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/WorkflowMcpServerId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "url": {
                              "$ref": "#/$defs/HttpUrl"
                            },
                            "composio": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "toolkitSlug": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "custom": {
                                      "type": "boolean"
                                    },
                                    "noAuth": {
                                      "type": "boolean"
                                    },
                                    "authorizationPending": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "toolkitSlug",
                                    "custom",
                                    "noAuth",
                                    "authorizationPending"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:toolkitSlug|custom|noAuth|authorizationPending)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "toolkitSlug",
                                      "custom",
                                      "noAuth",
                                      "authorizationPending"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "allowedToolNames": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "maxItems": 40
                            },
                            "active": {
                              "type": "boolean"
                            },
                            "authorizationConfigured": {
                              "type": "boolean"
                            },
                            "credentialRefId": {
                              "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"
                                }
                              ]
                            },
                            "lastValidatedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "url",
                            "composio",
                            "allowedToolNames",
                            "active",
                            "authorizationConfigured",
                            "credentialRefId",
                            "lastValidatedAt",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|url|composio|allowedToolNames|active|authorizationConfigured|credentialRefId|lastValidatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "url",
                              "composio",
                              "allowedToolNames",
                              "active",
                              "authorizationConfigured",
                              "credentialRefId",
                              "lastValidatedAt",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        },
                        "maxItems": 200
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/WorkflowMcpServerId"
                          },
                          "requiresAuthorization": {
                            "type": "boolean"
                          },
                          "redirectUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "requiresAuthorization",
                          "redirectUrl"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|requiresAuthorization|redirectUrl)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "requiresAuthorization",
                            "redirectUrl"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/WorkflowMcpServerId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "url": {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                "composio": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "toolkitSlug": {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        "custom": {
                                          "type": "boolean"
                                        },
                                        "noAuth": {
                                          "type": "boolean"
                                        },
                                        "authorizationPending": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "toolkitSlug",
                                        "custom",
                                        "noAuth",
                                        "authorizationPending"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:toolkitSlug|custom|noAuth|authorizationPending)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "toolkitSlug",
                                          "custom",
                                          "noAuth",
                                          "authorizationPending"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "allowedToolNames": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "maxItems": 40
                                },
                                "active": {
                                  "type": "boolean"
                                },
                                "authorizationConfigured": {
                                  "type": "boolean"
                                },
                                "credentialRefId": {
                                  "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"
                                    }
                                  ]
                                },
                                "lastValidatedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "url",
                                "composio",
                                "allowedToolNames",
                                "active",
                                "authorizationConfigured",
                                "credentialRefId",
                                "lastValidatedAt",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|url|composio|allowedToolNames|active|authorizationConfigured|credentialRefId|lastValidatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "url",
                                  "composio",
                                  "allowedToolNames",
                                  "active",
                                  "authorizationConfigured",
                                  "credentialRefId",
                                  "lastValidatedAt",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            },
                            "maxItems": 200
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "redirectUrl",
        "statusOperationId": "workflowMcpServers.list"
      },
      "scopes": [
        "integration:create",
        "integration:read"
      ],
      "bundles": [
        "workflow_connectors"
      ],
      "risk": "security_admin",
      "idempotency": "supported",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "workflowIntegrations.connect",
        "workflowMcpServers.list"
      ],
      "invocations": [
        {
          "operationId": "workflowIntegrations.connect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/apps",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowMcpServers.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/mcp-servers",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "connect": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "app"
                    ]
                  },
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "toolkitSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                },
                "required": [
                  "kind",
                  "name",
                  "toolkitSlug"
                ],
                "patternProperties": {
                  "^(?!(?:kind|name|toolkitSlug)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "name",
                    "toolkitSlug"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "custom"
                    ]
                  },
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "url": {
                    "$ref": "#/$defs/HttpsUrl"
                  },
                  "auth": {
                    "type": "string",
                    "enum": [
                      "no_auth",
                      "api_key",
                      "dcr_oauth"
                    ]
                  },
                  "discoveryUrl": {
                    "$ref": "#/$defs/HttpsUrl"
                  },
                  "headerName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[A-Za-z0-9-]+$"
                  },
                  "headerPrefix": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[^\\r\\n]*$"
                  }
                },
                "required": [
                  "kind",
                  "name",
                  "url",
                  "auth"
                ],
                "patternProperties": {
                  "^(?!(?:kind|name|url|auth|discoveryUrl|headerName|headerPrefix)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "name",
                    "url",
                    "auth",
                    "discoveryUrl",
                    "headerName",
                    "headerPrefix"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "connect"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connect)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connect"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpsUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "create_organization",
      "description": "Create a new Organization owned by the caller's person (ADR-075 §5). It starts on the Free plan with no Workspaces; add one with create_workspace.\n\nUse when the person asks to set up a separate Organization (for example a new client or brand with its own billing).\n\nCreation is rate-limited per person for agents and API keys. Deleting or transferring an Organization stays with the person in the web app.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/$defs/ShortText"
          }
        },
        "required": [
          "name"
        ],
        "patternProperties": {
          "^(?!(?:name)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "name"
              ]
            }
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "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": {
            "$ref": "#/$defs/ShortText"
          },
          "logo": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "type": "null"
              }
            ]
          },
          "isOwner": {
            "type": "boolean"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "audit:read",
                "billing:manage",
                "billing:read",
                "org:delete",
                "orgAnalytics:read",
                "orgAnalytics:manage",
                "org:read",
                "org:update",
                "orgApiKey:manage",
                "orgMember:invite",
                "orgMember:read",
                "orgMember:remove",
                "orgMember:update",
                "role:manage",
                "role:read",
                "usage:read",
                "workspace:create",
                "workspace:delete",
                "workspace:transfer"
              ]
            }
          },
          "visibleWorkspaceCount": {
            "type": "integer"
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "slug": {
            "$ref": "#/$defs/ShortText"
          },
          "owner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                  },
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "logo",
          "isOwner",
          "permissions",
          "visibleWorkspaceCount",
          "createdAt",
          "slug",
          "owner"
        ],
        "patternProperties": {
          "^(?!(?:id|name|logo|isOwner|permissions|visibleWorkspaceCount|createdAt|slug|owner)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "name",
            "logo",
            "isOwner",
            "permissions",
            "visibleWorkspaceCount",
            "createdAt",
            "slug",
            "owner"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "create_organization"
      },
      "scopes": [
        "workspace:create"
      ],
      "bundles": [
        "organization_administration"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizations.create"
      ],
      "invocations": [
        {
          "operationId": "organizations.create",
          "method": "POST",
          "path": "/v1/organizations",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/$defs/ShortText"
          }
        },
        "required": [
          "name"
        ],
        "patternProperties": {
          "^(?!(?:name)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "name"
              ]
            }
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "create_reminder",
      "description": "Schedule a reminder on a Unibox thread and durably enqueue its send.\n\nUse when a thread needs a future follow-up nudge; the response carries the job run acknowledgement.\n\nCreating a reminder replaces any pending one on the same thread; do not stack reminders.",
      "inputSchema": {
        "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"
          },
          "threadId": {
            "$ref": "#/$defs/ProviderId"
          },
          "remindAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "workspaceId",
          "threadId",
          "remindAt"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|threadId|remindAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "threadId",
            "remindAt"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "outputSchema": {
        "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"
          },
          "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"
          },
          "threadId": {
            "$ref": "#/$defs/ProviderId"
          },
          "remindAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "isAutomatic": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "sent",
              "cancelled"
            ]
          },
          "sentAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancelledAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "jobRunId": {
            "anyOf": [
              {
                "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": "string",
                    "pattern": "^run_[a-zA-Z0-9]{1,200}$"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "updatedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "threadId",
          "remindAt",
          "isAutomatic",
          "status",
          "sentAt",
          "cancelledAt",
          "jobRunId",
          "createdAt",
          "updatedAt"
        ],
        "patternProperties": {
          "^(?!(?:id|workspaceId|threadId|remindAt|isAutomatic|status|sentAt|cancelledAt|jobRunId|createdAt|updatedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "workspaceId",
            "threadId",
            "remindAt",
            "isAutomatic",
            "status",
            "sentAt",
            "cancelledAt",
            "jobRunId",
            "createdAt",
            "updatedAt"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "create_reminder"
      },
      "scopes": [
        "unibox:reply"
      ],
      "bundles": [
        "reminders"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "reminders.create"
      ],
      "invocations": [
        {
          "operationId": "reminders.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/reminders",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "threadId": {
            "$ref": "#/$defs/ProviderId"
          },
          "remindAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "workspaceId",
          "threadId",
          "remindAt"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|threadId|remindAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "threadId",
            "remindAt"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      }
    },
    {
      "feature": "content-support",
      "name": "create_support_attachment_upload",
      "description": "Issue a signed, expiring upload capability for one support attachment.\n\nUse before submit_support_feedback when the report needs a screenshot or log.\n\nThe upload URL is one-shot and expires quickly; do not reuse or share it.",
      "inputSchema": {
        "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"
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "sizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 52428800
          }
        },
        "required": [
          "workspaceId",
          "fileName",
          "sizeBytes"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|fileName|sizeBytes)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "fileName",
            "sizeBytes"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "uploadToken": {
            "$ref": "#/$defs/SupportCapabilityToken"
          },
          "uploadUrl": {
            "$ref": "#/$defs/HttpUrl"
          },
          "method": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "PUT"
                ]
              }
            ]
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "uploadToken",
          "uploadUrl",
          "method",
          "headers",
          "expiresAt"
        ],
        "patternProperties": {
          "^(?!(?:uploadToken|uploadUrl|method|headers|expiresAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "uploadToken",
            "uploadUrl",
            "method",
            "headers",
            "expiresAt"
          ]
        },
        "$defs": {
          "SupportCapabilityToken": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "create_support_attachment_upload"
      },
      "scopes": [
        "support:create"
      ],
      "bundles": [
        "support"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "support.createAttachmentUpload"
      ],
      "invocations": [
        {
          "operationId": "support.createAttachmentUpload",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/support/attachments/uploads",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "sizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 52428800
          }
        },
        "required": [
          "workspaceId",
          "fileName",
          "sizeBytes"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|fileName|sizeBytes)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "fileName",
            "sizeBytes"
          ]
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "create_task",
      "description": "Create an ordinary workspace task.\n\nUse for ad-hoc work items; workflow requests are created by workflow runs only.\n\nCannot create a human request; those are created by workflow human-input nodes, not a standalone MCP call.",
      "inputSchema": {
        "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"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "dueDate": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "leadId": {
            "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"
              }
            ]
          },
          "assigneeUserIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 20
          }
        },
        "required": [
          "workspaceId",
          "title"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|title|description|dueDate|leadId|assigneeUserIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "title",
            "description",
            "dueDate",
            "leadId",
            "assigneeUserIds"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "outputSchema": {
        "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"
          },
          "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"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "dueDate": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedBy": {
            "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"
              }
            ]
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "no_luck",
                  "responded",
                  "bad_info"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "leadId": {
            "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"
              }
            ]
          },
          "campaignContactId": {
            "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"
              }
            ]
          },
          "campaignStepId": {
            "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"
              }
            ]
          },
          "workflowRunId": {
            "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"
              }
            ]
          },
          "workflow": {
            "anyOf": [
              {
                "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": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:id|name)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "humanRequest": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "approval",
                          "text"
                        ]
                      },
                      "question": {
                        "$ref": "#/$defs/Description"
                      }
                    },
                    "required": [
                      "type",
                      "question"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|question)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "question"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "choice"
                            ]
                          }
                        ]
                      },
                      "question": {
                        "$ref": "#/$defs/Description"
                      },
                      "options": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "type",
                      "question",
                      "options"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|question|options)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "question",
                        "options"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "humanResponse": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "approval"
                            ]
                          }
                        ]
                      },
                      "approved": {
                        "type": "boolean"
                      },
                      "comment": {
                        "$ref": "#/$defs/ShortText"
                      }
                    },
                    "required": [
                      "type",
                      "approved"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|approved|comment)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "approved",
                        "comment"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "text"
                            ]
                          }
                        ]
                      },
                      "text": {
                        "$ref": "#/$defs/Description"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|text)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "text"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "choice"
                            ]
                          }
                        ]
                      },
                      "choice": {
                        "$ref": "#/$defs/NonEmptyString"
                      }
                    },
                    "required": [
                      "type",
                      "choice"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|choice)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "choice"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "requestState": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "pending",
                  "answered",
                  "expired",
                  "cancelled"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "responseExpiresAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "requestedByAgentRegistrationId": {
            "anyOf": [
              {
                "$ref": "#/$defs/OpaqueId"
              },
              {
                "type": "null"
              }
            ]
          },
          "operationId": {
            "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"
              }
            ]
          },
          "assignees": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                  "$ref": "#/$defs/ShortText"
                },
                "email": {
                  "$ref": "#/$defs/EmailAddress"
                },
                "image": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "inOrg": {
                  "type": "boolean"
                }
              },
              "required": [
                "userId",
                "name",
                "email",
                "image",
                "inOrg"
              ],
              "patternProperties": {
                "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ]
              }
            }
          },
          "createdBy": {
            "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"
              }
            ]
          },
          "createdByUser": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inOrg": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "inOrg"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "completedByUser": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inOrg": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "inOrg"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "lead": {
            "anyOf": [
              {
                "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"
                  },
                  "firstName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "lastName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "companyName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "emailAddress": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phoneNumber": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "firstName",
                  "lastName",
                  "companyName",
                  "emailAddress",
                  "phoneNumber"
                ],
                "patternProperties": {
                  "^(?!(?:id|firstName|lastName|companyName|emailAddress|phoneNumber)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "firstName",
                    "lastName",
                    "companyName",
                    "emailAddress",
                    "phoneNumber"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "outcomeDetail": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "phoneOutcomes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "leadPhoneId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_luck",
                            "responded",
                            "bad_info"
                          ]
                        }
                      },
                      "required": [
                        "leadPhoneId",
                        "outcome"
                      ],
                      "patternProperties": {
                        "^(?!(?:leadPhoneId|outcome)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "leadPhoneId",
                          "outcome"
                        ]
                      }
                    },
                    "maxItems": 50
                  }
                },
                "required": [
                  "phoneOutcomes"
                ],
                "patternProperties": {
                  "^(?!(?:phoneOutcomes)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "phoneOutcomes"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "updatedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "title",
          "description",
          "dueDate",
          "completedAt",
          "completedBy",
          "outcome",
          "leadId",
          "campaignContactId",
          "campaignStepId",
          "workflowRunId",
          "workflow",
          "humanRequest",
          "humanResponse",
          "requestState",
          "responseExpiresAt",
          "requestedByAgentRegistrationId",
          "operationId",
          "assignees",
          "createdBy",
          "createdAt",
          "updatedAt"
        ],
        "patternProperties": {
          "^(?!(?:id|workspaceId|title|description|dueDate|completedAt|completedBy|outcome|leadId|campaignContactId|campaignStepId|workflowRunId|workflow|humanRequest|humanResponse|requestState|responseExpiresAt|requestedByAgentRegistrationId|operationId|assignees|createdBy|createdByUser|completedByUser|lead|outcomeDetail|createdAt|updatedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "workspaceId",
            "title",
            "description",
            "dueDate",
            "completedAt",
            "completedBy",
            "outcome",
            "leadId",
            "campaignContactId",
            "campaignStepId",
            "workflowRunId",
            "workflow",
            "humanRequest",
            "humanResponse",
            "requestState",
            "responseExpiresAt",
            "requestedByAgentRegistrationId",
            "operationId",
            "assignees",
            "createdBy",
            "createdByUser",
            "completedByUser",
            "lead",
            "outcomeDetail",
            "createdAt",
            "updatedAt"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "create_task"
      },
      "scopes": [
        "task:create"
      ],
      "bundles": [
        "tasks"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "tasks.create"
      ],
      "invocations": [
        {
          "operationId": "tasks.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/tasks",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "dueDate": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "leadId": {
            "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"
              }
            ]
          },
          "assigneeUserIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 20
          }
        },
        "required": [
          "workspaceId",
          "title"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|title|description|dueDate|leadId|assigneeUserIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "title",
            "description",
            "dueDate",
            "leadId",
            "assigneeUserIds"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "create_workspace",
      "description": "Create a Workspace in a named Organization (ADR-075 §5). The caller's person becomes its Workspace Admin.\n\nUse after create_organization, or when the person asks for a new Workspace in an Organization where they hold workspace:create.\n\nAvailable to personal API keys and signed-in people; interactive MCP grants hand the person to Organization settings instead. Deleting or moving a Workspace stays human-only.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "$ref": "#/$defs/ShortText"
          },
          "slug": {
            "$ref": "#/$defs/ShortText"
          }
        },
        "required": [
          "organizationId",
          "name"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|name|slug)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "name",
            "slug"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "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": {
            "$ref": "#/$defs/ShortText"
          },
          "slug": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "logo": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "logo",
          "createdAt"
        ],
        "patternProperties": {
          "^(?!(?:id|name|slug|logo|createdAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "name",
            "slug",
            "logo",
            "createdAt"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "create_workspace"
      },
      "scopes": [
        "workspace:create"
      ],
      "bundles": [
        "organization_administration"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationWorkspaces.create"
      ],
      "invocations": [
        {
          "operationId": "organizationWorkspaces.create",
          "method": "POST",
          "path": "/v1/organizations/:organizationId/workspaces",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "$ref": "#/$defs/ShortText"
          },
          "slug": {
            "$ref": "#/$defs/ShortText"
          }
        },
        "required": [
          "organizationId",
          "name"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|name|slug)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "name",
            "slug"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "platform-operations",
      "name": "delete_dashboard",
      "description": "Delete a saved dashboard or query at its expected revision.\n\nRead the latest revision first. Deletion leaves a tombstone; reusing its ID cannot restore it. Repeat the same deletion safely.\n\nRequires the Workspace SQL feature and the stated permission. This does not grant access to another Workspace or execute stored SQL automatically.",
      "inputSchema": {
        "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"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "workspaceId",
          "dashboardId",
          "expectedRevision"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|dashboardId|expectedRevision)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "dashboardId",
            "expectedRevision"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "deleted": {
            "type": "boolean"
          }
        },
        "required": [
          "deleted"
        ],
        "patternProperties": {
          "^(?!(?:deleted)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "deleted"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "delete_dashboard"
      },
      "scopes": [
        "sql:manage_dashboards"
      ],
      "bundles": [
        "workspace_sql"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "dashboards.delete"
      ],
      "invocations": [
        {
          "operationId": "dashboards.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/dashboards/:dashboardId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "workspaceId",
          "dashboardId",
          "expectedRevision"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|dashboardId|expectedRevision)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "dashboardId",
            "expectedRevision"
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "delete_inboxes",
      "description": "Disconnects selected inboxes and removes stored credentials while retaining inbox, message, send, warmup and diagnostic history; campaign-attached inboxes are skipped with per-item outcomes.\n\nWhen asked to remove inboxes from the workspace.\n\nFor moving inboxes — use manage_inbox_settings.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "inboxIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          }
        },
        "required": [
          "workspaceId",
          "inboxIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxIds"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "outcomes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "inboxId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "updated",
                    "skipped",
                    "failed"
                  ]
                },
                "reason": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "inboxId",
                "status",
                "reason"
              ],
              "patternProperties": {
                "^(?!(?:inboxId|status|reason)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "inboxId",
                  "status",
                  "reason"
                ]
              }
            }
          }
        },
        "required": [
          "outcomes"
        ],
        "patternProperties": {
          "^(?!(?:outcomes)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "outcomes"
              ]
            }
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "delete_inboxes"
      },
      "scopes": [
        "inbox:delete"
      ],
      "bundles": [
        "inbox_operations"
      ],
      "risk": "destructive",
      "idempotency": "required",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxBulk.remove"
      ],
      "invocations": [
        {
          "operationId": "inboxBulk.remove",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/bulk/delete",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "inboxIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          }
        },
        "required": [
          "workspaceId",
          "inboxIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxIds"
          ]
        }
      }
    },
    {
      "feature": "platform-operations",
      "name": "delete_organization_dashboard",
      "description": "Delete a saved dashboard or query at its expected revision.\n\nRead the latest revision first. Deletion leaves a tombstone; reusing its ID cannot restore it. Repeat the same deletion safely.\n\nRequires the stated Organization analytics permission. Reading a document never executes its SQL; saving validates every selected child, and execution always requires live child SQL access and feature eligibility.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "organizationId",
          "dashboardId",
          "expectedRevision"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|dashboardId|expectedRevision)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "dashboardId",
            "expectedRevision"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "deleted": {
            "type": "boolean"
          }
        },
        "required": [
          "deleted"
        ],
        "patternProperties": {
          "^(?!(?:deleted)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "deleted"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "delete_organization_dashboard"
      },
      "scopes": [
        "orgAnalytics:manage"
      ],
      "bundles": [
        "organization_sql"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationDashboards.delete"
      ],
      "invocations": [
        {
          "operationId": "organizationDashboards.delete",
          "method": "DELETE",
          "path": "/v1/organizations/:organizationId/dashboards/:dashboardId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "organizationId",
          "dashboardId",
          "expectedRevision"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|dashboardId|expectedRevision)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "dashboardId",
            "expectedRevision"
          ]
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "delete_task",
      "description": "Soft-delete an ordinary task.\n\nUse to remove ad-hoc tasks; deletion is a retained soft delete.\n\nWorkflow requests are audit-retained and cannot be deleted; the call fails instead.",
      "inputSchema": {
        "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"
          },
          "taskId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "taskId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|taskId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "taskId"
          ]
        }
      },
      "outputSchema": {
        "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"
          }
        },
        "required": [
          "id"
        ],
        "patternProperties": {
          "^(?!(?:id)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "id"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "delete_task"
      },
      "scopes": [
        "task:delete"
      ],
      "bundles": [
        "tasks"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "tasks.delete"
      ],
      "invocations": [
        {
          "operationId": "tasks.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/tasks/:taskId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "taskId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "taskId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|taskId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "taskId"
          ]
        }
      }
    },
    {
      "feature": "unibox",
      "name": "delete_unibox_threads",
      "description": "Move one conversation, a batch of conversations, or one message to the trash, where retention eventually removes it for good. Select thread, threads, or message explicitly.\n\nUse only when the customer has asked for mail to be removed from the product's view.\n\nPrefer archiving: it hides a conversation without starting a purge clock. Deletion here does not delete the copy in the mailbox provider, so it is not a way to honour an erasure request on its own.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "thread"
                    ]
                  }
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 1
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "threads"
                    ]
                  }
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "message"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId"
              ]
            }
          }
        ]
      },
      "outputSchema": {
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ThreadLabelId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "AttachmentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "inboxId": {
                        "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"
                          }
                        ]
                      },
                      "organizationId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "subject": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "snippet": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contact": {
                        "type": "object",
                        "properties": {
                          "emailAddress": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "name": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "leadId": {
                            "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"
                              }
                            ]
                          }
                        },
                        "required": [
                          "emailAddress",
                          "name",
                          "leadId"
                        ],
                        "patternProperties": {
                          "^(?!(?:emailAddress|name|leadId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "emailAddress",
                            "name",
                            "leadId"
                          ]
                        }
                      },
                      "providerThreadId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "google_workspace",
                          "microsoft_365",
                          "other"
                        ]
                      },
                      "lastMessageAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "messageCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "labels": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/ThreadLabelId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "hexColor": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "sentiment": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "positive",
                                    "negative",
                                    "neutral"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "custom",
                                "default"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "hexColor",
                            "sentiment",
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "hexColor",
                              "sentiment",
                              "type"
                            ]
                          }
                        }
                      },
                      "assignees": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "userId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "image": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isFormerMember": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "userId",
                            "name",
                            "email",
                            "image",
                            "isFormerMember"
                          ],
                          "patternProperties": {
                            "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "userId",
                              "name",
                              "email",
                              "image",
                              "isFormerMember"
                            ]
                          }
                        }
                      },
                      "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"
                          }
                        ]
                      },
                      "campaignContactId": {
                        "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"
                          }
                        ]
                      },
                      "isRead": {
                        "type": "boolean"
                      },
                      "starredAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "archivedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deletedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "folders": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "inbox",
                            "sent",
                            "archived",
                            "starred",
                            "warmup",
                            "trash"
                          ]
                        }
                      },
                      "recentMessages": {
                        "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"
                            },
                            "providerInternalMessageId": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "from": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "to": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "cc": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "snippet": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "receivedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "isRead": {
                              "type": "boolean"
                            },
                            "isFromInboxSender": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "providerInternalMessageId",
                            "from",
                            "to",
                            "cc",
                            "subject",
                            "snippet",
                            "receivedAt",
                            "isRead",
                            "isFromInboxSender"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|providerInternalMessageId|from|to|cc|subject|snippet|receivedAt|isRead|isFromInboxSender)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "providerInternalMessageId",
                              "from",
                              "to",
                              "cc",
                              "subject",
                              "snippet",
                              "receivedAt",
                              "isRead",
                              "isFromInboxSender"
                            ]
                          }
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "id",
                      "inboxId",
                      "organizationId",
                      "subject",
                      "snippet",
                      "contact",
                      "providerThreadId",
                      "provider",
                      "lastMessageAt",
                      "messageCount",
                      "labels",
                      "assignees",
                      "campaignId",
                      "campaignContactId",
                      "isRead",
                      "starredAt",
                      "archivedAt",
                      "deletedAt",
                      "folders"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|inboxId|organizationId|subject|snippet|contact|providerThreadId|provider|lastMessageAt|messageCount|labels|assignees|campaignId|campaignContactId|isRead|starredAt|archivedAt|deletedAt|folders|recentMessages)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "inboxId",
                        "organizationId",
                        "subject",
                        "snippet",
                        "contact",
                        "providerThreadId",
                        "provider",
                        "lastMessageAt",
                        "messageCount",
                        "labels",
                        "assignees",
                        "campaignId",
                        "campaignContactId",
                        "isRead",
                        "starredAt",
                        "archivedAt",
                        "deletedAt",
                        "folders",
                        "recentMessages"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "threadId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "inboxId": {
                        "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"
                          }
                        ]
                      },
                      "organizationId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "providerInternalMessageId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "rfc2822MessageId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "google_workspace",
                          "microsoft_365",
                          "other"
                        ]
                      },
                      "from": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "to": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "cc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "bcc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "subject": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "snippet": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "receivedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "direction": {
                        "type": "string",
                        "enum": [
                          "inbound",
                          "outbound"
                        ]
                      },
                      "isFromInboxSender": {
                        "type": "boolean"
                      },
                      "sentFromUnibox": {
                        "type": "boolean"
                      },
                      "attachments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/AttachmentId"
                            },
                            "filename": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "contentType": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "size": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inline": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "filename",
                            "contentType",
                            "size",
                            "inline"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "filename",
                              "contentType",
                              "size",
                              "inline"
                            ]
                          }
                        }
                      },
                      "bodyState": {
                        "type": "string",
                        "enum": [
                          "available",
                          "pending"
                        ]
                      },
                      "isRead": {
                        "type": "boolean"
                      },
                      "flaggedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deletedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "headers": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string",
                          "maxLength": 16384
                        }
                      },
                      "authoredByWorkflowRunId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "threadId",
                      "inboxId",
                      "organizationId",
                      "providerInternalMessageId",
                      "rfc2822MessageId",
                      "provider",
                      "from",
                      "to",
                      "cc",
                      "bcc",
                      "subject",
                      "snippet",
                      "receivedAt",
                      "direction",
                      "isFromInboxSender",
                      "sentFromUnibox",
                      "attachments",
                      "bodyState",
                      "isRead",
                      "flaggedAt",
                      "deletedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|threadId|inboxId|organizationId|providerInternalMessageId|rfc2822MessageId|provider|from|to|cc|bcc|subject|snippet|receivedAt|direction|isFromInboxSender|sentFromUnibox|attachments|bodyState|isRead|flaggedAt|deletedAt|headers|authoredByWorkflowRunId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "threadId",
                        "inboxId",
                        "organizationId",
                        "providerInternalMessageId",
                        "rfc2822MessageId",
                        "provider",
                        "from",
                        "to",
                        "cc",
                        "bcc",
                        "subject",
                        "snippet",
                        "receivedAt",
                        "direction",
                        "isFromInboxSender",
                        "sentFromUnibox",
                        "attachments",
                        "bodyState",
                        "isRead",
                        "flaggedAt",
                        "deletedAt",
                        "headers",
                        "authoredByWorkflowRunId"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "threadId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "ok": {
                              "type": "boolean"
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "threadId",
                            "ok",
                            "error"
                          ],
                          "patternProperties": {
                            "^(?!(?:threadId|ok|error)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "threadId",
                              "ok",
                              "error"
                            ]
                          }
                        },
                        "maxItems": 100
                      },
                      "succeeded": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "failed": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "items",
                      "succeeded",
                      "failed"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|succeeded|failed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "succeeded",
                        "failed"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "inboxId": {
                            "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"
                              }
                            ]
                          },
                          "organizationId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "snippet": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contact": {
                            "type": "object",
                            "properties": {
                              "emailAddress": {
                                "$ref": "#/$defs/EmailAddress"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "leadId": {
                                "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"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "emailAddress",
                              "name",
                              "leadId"
                            ],
                            "patternProperties": {
                              "^(?!(?:emailAddress|name|leadId)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "emailAddress",
                                "name",
                                "leadId"
                              ]
                            }
                          },
                          "providerThreadId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "google_workspace",
                              "microsoft_365",
                              "other"
                            ]
                          },
                          "lastMessageAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "messageCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/ThreadLabelId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "hexColor": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "sentiment": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "positive",
                                        "negative",
                                        "neutral"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "custom",
                                    "default"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "hexColor",
                                "sentiment",
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "hexColor",
                                  "sentiment",
                                  "type"
                                ]
                              }
                            }
                          },
                          "assignees": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "userId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "image": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/HttpUrl"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isFormerMember": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "userId",
                                "name",
                                "email",
                                "image",
                                "isFormerMember"
                              ],
                              "patternProperties": {
                                "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "userId",
                                  "name",
                                  "email",
                                  "image",
                                  "isFormerMember"
                                ]
                              }
                            }
                          },
                          "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"
                              }
                            ]
                          },
                          "campaignContactId": {
                            "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"
                              }
                            ]
                          },
                          "isRead": {
                            "type": "boolean"
                          },
                          "starredAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "deletedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "folders": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "inbox",
                                "sent",
                                "archived",
                                "starred",
                                "warmup",
                                "trash"
                              ]
                            }
                          },
                          "recentMessages": {
                            "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"
                                },
                                "providerInternalMessageId": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "from": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "cc": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "snippet": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "receivedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "isRead": {
                                  "type": "boolean"
                                },
                                "isFromInboxSender": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "providerInternalMessageId",
                                "from",
                                "to",
                                "cc",
                                "subject",
                                "snippet",
                                "receivedAt",
                                "isRead",
                                "isFromInboxSender"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|providerInternalMessageId|from|to|cc|subject|snippet|receivedAt|isRead|isFromInboxSender)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "providerInternalMessageId",
                                  "from",
                                  "to",
                                  "cc",
                                  "subject",
                                  "snippet",
                                  "receivedAt",
                                  "isRead",
                                  "isFromInboxSender"
                                ]
                              }
                            },
                            "maxItems": 20
                          }
                        },
                        "required": [
                          "id",
                          "inboxId",
                          "organizationId",
                          "subject",
                          "snippet",
                          "contact",
                          "providerThreadId",
                          "provider",
                          "lastMessageAt",
                          "messageCount",
                          "labels",
                          "assignees",
                          "campaignId",
                          "campaignContactId",
                          "isRead",
                          "starredAt",
                          "archivedAt",
                          "deletedAt",
                          "folders"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|inboxId|organizationId|subject|snippet|contact|providerThreadId|provider|lastMessageAt|messageCount|labels|assignees|campaignId|campaignContactId|isRead|starredAt|archivedAt|deletedAt|folders|recentMessages)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "inboxId",
                            "organizationId",
                            "subject",
                            "snippet",
                            "contact",
                            "providerThreadId",
                            "provider",
                            "lastMessageAt",
                            "messageCount",
                            "labels",
                            "assignees",
                            "campaignId",
                            "campaignContactId",
                            "isRead",
                            "starredAt",
                            "archivedAt",
                            "deletedAt",
                            "folders",
                            "recentMessages"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "threadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "inboxId": {
                            "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"
                              }
                            ]
                          },
                          "organizationId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "providerInternalMessageId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "rfc2822MessageId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "google_workspace",
                              "microsoft_365",
                              "other"
                            ]
                          },
                          "from": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "to": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "cc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "bcc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "snippet": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "receivedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "inbound",
                              "outbound"
                            ]
                          },
                          "isFromInboxSender": {
                            "type": "boolean"
                          },
                          "sentFromUnibox": {
                            "type": "boolean"
                          },
                          "attachments": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/AttachmentId"
                                },
                                "filename": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "contentType": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inline": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "filename",
                                "contentType",
                                "size",
                                "inline"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "filename",
                                  "contentType",
                                  "size",
                                  "inline"
                                ]
                              }
                            }
                          },
                          "bodyState": {
                            "type": "string",
                            "enum": [
                              "available",
                              "pending"
                            ]
                          },
                          "isRead": {
                            "type": "boolean"
                          },
                          "flaggedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "deletedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "headers": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string",
                              "maxLength": 16384
                            }
                          },
                          "authoredByWorkflowRunId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "threadId",
                          "inboxId",
                          "organizationId",
                          "providerInternalMessageId",
                          "rfc2822MessageId",
                          "provider",
                          "from",
                          "to",
                          "cc",
                          "bcc",
                          "subject",
                          "snippet",
                          "receivedAt",
                          "direction",
                          "isFromInboxSender",
                          "sentFromUnibox",
                          "attachments",
                          "bodyState",
                          "isRead",
                          "flaggedAt",
                          "deletedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|threadId|inboxId|organizationId|providerInternalMessageId|rfc2822MessageId|provider|from|to|cc|bcc|subject|snippet|receivedAt|direction|isFromInboxSender|sentFromUnibox|attachments|bodyState|isRead|flaggedAt|deletedAt|headers|authoredByWorkflowRunId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "threadId",
                            "inboxId",
                            "organizationId",
                            "providerInternalMessageId",
                            "rfc2822MessageId",
                            "provider",
                            "from",
                            "to",
                            "cc",
                            "bcc",
                            "subject",
                            "snippet",
                            "receivedAt",
                            "direction",
                            "isFromInboxSender",
                            "sentFromUnibox",
                            "attachments",
                            "bodyState",
                            "isRead",
                            "flaggedAt",
                            "deletedAt",
                            "headers",
                            "authoredByWorkflowRunId"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "threadId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "ok": {
                                  "type": "boolean"
                                },
                                "error": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "threadId",
                                "ok",
                                "error"
                              ],
                              "patternProperties": {
                                "^(?!(?:threadId|ok|error)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "threadId",
                                  "ok",
                                  "error"
                                ]
                              }
                            },
                            "maxItems": 100
                          },
                          "succeeded": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "failed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "items",
                          "succeeded",
                          "failed"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|succeeded|failed)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "succeeded",
                            "failed"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "delete_unibox_threads"
      },
      "scopes": [
        "unibox:archive"
      ],
      "bundles": [
        "unibox_triage"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "uniboxThreads.delete",
        "uniboxThreads.batchDelete",
        "uniboxMessages.delete"
      ],
      "invocations": [
        {
          "operationId": "uniboxThreads.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.batchDelete",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/batch/delete",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxMessages.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "thread"
                    ]
                  }
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 1
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "threads"
                    ]
                  }
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "message"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId"
              ]
            }
          }
        ]
      }
    },
    {
      "feature": "workspace-settings",
      "name": "delete_webhook",
      "description": "Delete an outbound webhook subscription: preview binds the target and issues a confirmation token, commit removes the subscription and tombstones its secret.\n\nUse only when the subscription should be permanently removed; commit requires the preview token.\n\nNever commit without a fresh preview token, and never reuse a token after the webhook changed.\n\nUse the native preview first and pass its confirmation token unchanged to commit. A token does not bypass current permissions or Workspace checks.",
      "inputSchema": {
        "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"
          },
          "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"
          },
          "confirmationToken": {
            "type": "string"
          }
        },
        "required": [
          "workspaceId",
          "webhookId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|webhookId|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "webhookId",
            "confirmationToken"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Money": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BOV",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHE",
                  "CHF",
                  "CHW",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "COU",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MXV",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLE",
                  "SOS",
                  "SRD",
                  "SSP",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "USN",
                  "UYI",
                  "UYU",
                  "UYW",
                  "UZS",
                  "VED",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAD",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XBA",
                  "XBB",
                  "XBC",
                  "XBD",
                  "XCD",
                  "XCG",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "XSU",
                  "XTS",
                  "XUA",
                  "XXX",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWG"
                ]
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "patternProperties": {
              "^(?!(?:amountMinor|currency)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "amountMinor",
                "currency"
              ]
            }
          },
          "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$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "deleted": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "deleted"
                    ],
                    "patternProperties": {
                      "^(?!(?:deleted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "deleted"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "preview": {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "$ref": "#/$defs/Description"
                          },
                          "affected": {
                            "type": "object",
                            "properties": {
                              "resourceCounts": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    "count": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "count"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|count)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "count"
                                    ]
                                  }
                                },
                                "maxItems": 64
                              },
                              "resourceIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "resourceCounts",
                              "resourceIds"
                            ],
                            "patternProperties": {
                              "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "resourceCounts",
                                "resourceIds"
                              ]
                            }
                          },
                          "costEstimate": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "$ref": "#/$defs/Money"
                              },
                              "max": {
                                "$ref": "#/$defs/Money"
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "patternProperties": {
                              "^(?!(?:min|max)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "min",
                                "max"
                              ]
                            }
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "irreversibleFacts": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "inputHash": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "previewVersion": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "summary",
                          "affected",
                          "warnings",
                          "irreversibleFacts",
                          "inputHash",
                          "previewVersion",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "affected",
                            "costEstimate",
                            "warnings",
                            "irreversibleFacts",
                            "inputHash",
                            "previewVersion",
                            "expiresAt"
                          ]
                        }
                      },
                      "confirmationToken": {
                        "$ref": "#/$defs/OpaqueId"
                      }
                    },
                    "required": [
                      "preview",
                      "confirmationToken"
                    ],
                    "patternProperties": {
                      "^(?!(?:preview|confirmationToken)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "preview",
                        "confirmationToken"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "deleted": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "deleted"
                        ],
                        "patternProperties": {
                          "^(?!(?:deleted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "deleted"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "preview": {
                            "type": "object",
                            "properties": {
                              "summary": {
                                "$ref": "#/$defs/Description"
                              },
                              "affected": {
                                "type": "object",
                                "properties": {
                                  "resourceCounts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "$ref": "#/$defs/NonEmptyString"
                                        },
                                        "count": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "count"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:type|count)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "type",
                                          "count"
                                        ]
                                      }
                                    },
                                    "maxItems": 64
                                  },
                                  "resourceIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "maxItems": 256
                                  }
                                },
                                "required": [
                                  "resourceCounts",
                                  "resourceIds"
                                ],
                                "patternProperties": {
                                  "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "resourceCounts",
                                    "resourceIds"
                                  ]
                                }
                              },
                              "costEstimate": {
                                "type": "object",
                                "properties": {
                                  "min": {
                                    "$ref": "#/$defs/Money"
                                  },
                                  "max": {
                                    "$ref": "#/$defs/Money"
                                  }
                                },
                                "required": [
                                  "min",
                                  "max"
                                ],
                                "patternProperties": {
                                  "^(?!(?:min|max)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "min",
                                    "max"
                                  ]
                                }
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "irreversibleFacts": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "inputHash": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "previewVersion": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "expiresAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "summary",
                              "affected",
                              "warnings",
                              "irreversibleFacts",
                              "inputHash",
                              "previewVersion",
                              "expiresAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "summary",
                                "affected",
                                "costEstimate",
                                "warnings",
                                "irreversibleFacts",
                                "inputHash",
                                "previewVersion",
                                "expiresAt"
                              ]
                            }
                          },
                          "confirmationToken": {
                            "$ref": "#/$defs/OpaqueId"
                          }
                        },
                        "required": [
                          "preview",
                          "confirmationToken"
                        ],
                        "patternProperties": {
                          "^(?!(?:preview|confirmationToken)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "preview",
                            "confirmationToken"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "preview_commit",
      "mapping": {
        "kind": "preview_commit",
        "previewOperationId": "webhooks.previewDelete",
        "commitOperationId": "webhooks.delete"
      },
      "scopes": [
        "webhook:delete"
      ],
      "bundles": [
        "workspace_settings"
      ],
      "risk": "destructive",
      "idempotency": "required",
      "confirmation": "preview_token",
      "resultMode": "inline",
      "underlyingOperations": [
        "webhooks.previewDelete",
        "webhooks.delete"
      ],
      "invocations": [
        {
          "operationId": "webhooks.previewDelete",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/webhooks/:webhookId/deletion-preview",
          "workspaceScoped": false
        },
        {
          "operationId": "webhooks.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/webhooks/:webhookId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "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"
          },
          "confirmationToken": {
            "type": "string"
          }
        },
        "required": [
          "workspaceId",
          "webhookId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|webhookId|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "webhookId",
            "confirmationToken"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "deny_permission_request",
      "description": "Deny a pending permission request with an optional note to the requester.\n\nUse when the reviewer decided not to grant the request. The requester is notified.\n\nIt does not remove permissions the person already holds; use manage_organization_members.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "requestId": {
            "$ref": "#/$defs/PermissionRequestId"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "requestId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestId|note)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestId",
            "note"
          ]
        },
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "PermissionRequestStatus": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "denied",
              "canceled",
              "expired"
            ]
          },
          "PermissionRequestPerson": {
            "type": "object",
            "properties": {
              "userId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "userId",
              "name",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "name",
                "email"
              ]
            }
          },
          "PermissionRequestContext": {
            "type": "object",
            "properties": {
              "attemptedOperation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptedTool": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "explanation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:attemptedOperation|attemptedTool|explanation)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attemptedOperation",
                "attemptedTool",
                "explanation"
              ]
            }
          },
          "PermissionRequestSource": {
            "type": "string",
            "enum": [
              "web",
              "api",
              "agent"
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "PermissionRequest": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/PermissionRequestId"
              },
              "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"
              },
              "status": {
                "$ref": "#/$defs/PermissionRequestStatus"
              },
              "requester": {
                "$ref": "#/$defs/PermissionRequestPerson"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "grantedPermissions": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "context": {
                "$ref": "#/$defs/PermissionRequestContext"
              },
              "source": {
                "$ref": "#/$defs/PermissionRequestSource"
              },
              "agentName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "decidedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decidedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestPerson"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decisionNote": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewable": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "requester",
              "permissions",
              "grantedPermissions",
              "reason",
              "context",
              "source",
              "agentName",
              "createdAt",
              "expiresAt",
              "decidedAt",
              "decidedBy",
              "decisionNote",
              "reviewable"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|requester|permissions|grantedPermissions|reason|context|source|agentName|createdAt|expiresAt|decidedAt|decidedBy|decisionNote|reviewable)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "requester",
                "permissions",
                "grantedPermissions",
                "reason",
                "context",
                "source",
                "agentName",
                "createdAt",
                "expiresAt",
                "decidedAt",
                "decidedBy",
                "decisionNote",
                "reviewable"
              ]
            }
          },
          "PermissionRequestDecisionResult": {
            "type": "object",
            "properties": {
              "request": {
                "$ref": "#/$defs/PermissionRequest"
              },
              "changed": {
                "type": "boolean"
              }
            },
            "required": [
              "request",
              "changed"
            ],
            "patternProperties": {
              "^(?!(?:request|changed)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "request",
                "changed"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/PermissionRequestDecisionResult"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestDecisionResult"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "deny_permission_request"
      },
      "scopes": [
        "workspaceMember:update"
      ],
      "bundles": [
        "permission_requests"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "permissionRequests.deny"
      ],
      "invocations": [
        {
          "operationId": "permissionRequests.deny",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/permission-requests/:requestId/deny",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "requestId": {
            "$ref": "#/$defs/PermissionRequestId"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "requestId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestId|note)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestId",
            "note"
          ]
        },
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "detach_integration_share",
      "description": "Detach a connection shared into this workspace; the source workspace and other targets keep working.\n\nUse when this workspace should stop using a connection another workspace shared with it. Dependent workflows pause.\n\nDo not use on the source workspace — use revoke_integration_share there. A detached workspace is never re-added automatically.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "provider": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "displayName": {
            "$ref": "#/$defs/ShortText"
          },
          "role": {
            "type": "string",
            "enum": [
              "source",
              "target"
            ]
          },
          "sourceWorkspaceId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceWorkspaceName": {
            "anyOf": [
              {
                "$ref": "#/$defs/ShortText"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceConnectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceConnected": {
            "type": "boolean"
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "revokedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "targets": {
            "type": "array",
            "items": {
              "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"
                },
                "workspaceName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "attaching",
                    "attached",
                    "detached",
                    "failed"
                  ]
                },
                "connectionId": {
                  "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"
                    }
                  ]
                },
                "failureReason": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "attachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "detachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "workspaceId",
                "workspaceName",
                "state",
                "connectionId",
                "failureReason",
                "attachedAt",
                "detachedAt"
              ],
              "patternProperties": {
                "^(?!(?:workspaceId|workspaceName|state|connectionId|failureReason|attachedAt|detachedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "workspaceId",
                  "workspaceName",
                  "state",
                  "connectionId",
                  "failureReason",
                  "attachedAt",
                  "detachedAt"
                ]
              }
            },
            "maxItems": 500
          }
        },
        "required": [
          "id",
          "adapter",
          "provider",
          "displayName",
          "role",
          "sourceWorkspaceId",
          "sourceWorkspaceName",
          "sourceConnectionId",
          "sourceConnected",
          "includeFutureWorkspaces",
          "createdAt",
          "revokedAt",
          "targets"
        ],
        "patternProperties": {
          "^(?!(?:id|adapter|provider|displayName|role|sourceWorkspaceId|sourceWorkspaceName|sourceConnectionId|sourceConnected|includeFutureWorkspaces|createdAt|revokedAt|targets)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "adapter",
            "provider",
            "displayName",
            "role",
            "sourceWorkspaceId",
            "sourceWorkspaceName",
            "sourceConnectionId",
            "sourceConnected",
            "includeFutureWorkspaces",
            "createdAt",
            "revokedAt",
            "targets"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          },
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "detach_integration_share"
      },
      "scopes": [
        "integration:delete"
      ],
      "bundles": [
        "integration_sharing"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationShares.detach"
      ],
      "invocations": [
        {
          "operationId": "integrationShares.detach",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integration-shares/:shareId/detach",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId"
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "disconnect_attio",
      "description": "Disconnect the workspace's Attio connection.\n\nUse to detach Attio; idempotent — the result reports disconnected either way.\n\nDisconnecting does not unseal or delete retained credential envelopes.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "attio",
              "heyreach",
              "plusvibe",
              "getleads"
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "disconnected"
                ]
              }
            ]
          },
          "disconnectedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "provider",
          "status",
          "disconnectedAt"
        ],
        "patternProperties": {
          "^(?!(?:provider|status|disconnectedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "provider",
            "status",
            "disconnectedAt"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "disconnect_attio"
      },
      "scopes": [
        "integration:delete"
      ],
      "bundles": [
        "integrations"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "attio.disconnect"
      ],
      "invocations": [
        {
          "operationId": "attio.disconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/disconnect",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "booking",
      "name": "disconnect_booking_connection",
      "description": "Disconnect a booking provider: preview binds the target and issues a confirmation token, commit retires the connection.\n\nUse only when the workspace should stop using that calendar; commit requires a fresh preview token.\n\nNever commit without a preview token, and never reuse a token after the connection changed.\n\nUse the native preview first and pass its confirmation token unchanged to commit. A token does not bypass current permissions or Workspace checks.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "provider": {
                "type": "string",
                "enum": [
                  "calendly",
                  "cal_com"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "preview"
                ]
              }
            },
            "required": [
              "workspaceId",
              "provider",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|provider|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "provider",
                "action"
              ]
            }
          },
          {
            "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"
              },
              "provider": {
                "type": "string",
                "enum": [
                  "calendly",
                  "cal_com"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "commit"
                ]
              },
              "confirmationToken": {
                "$ref": "#/$defs/NonEmptyString"
              }
            },
            "required": [
              "workspaceId",
              "provider",
              "action",
              "confirmationToken"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|provider|action|confirmationToken)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "provider",
                "action",
                "confirmationToken"
              ]
            }
          }
        ],
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Money": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BOV",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHE",
                  "CHF",
                  "CHW",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "COU",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MXV",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLE",
                  "SOS",
                  "SRD",
                  "SSP",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "USN",
                  "UYI",
                  "UYU",
                  "UYW",
                  "UZS",
                  "VED",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAD",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XBA",
                  "XBB",
                  "XBC",
                  "XBD",
                  "XCD",
                  "XCG",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "XSU",
                  "XTS",
                  "XUA",
                  "XXX",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWG"
                ]
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "patternProperties": {
              "^(?!(?:amountMinor|currency)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "amountMinor",
                "currency"
              ]
            }
          },
          "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$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "enum": [
                          "calendly",
                          "cal_com"
                        ]
                      },
                      "connectionId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "preview": {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "$ref": "#/$defs/Description"
                          },
                          "affected": {
                            "type": "object",
                            "properties": {
                              "resourceCounts": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    "count": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "count"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|count)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "count"
                                    ]
                                  }
                                },
                                "maxItems": 64
                              },
                              "resourceIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "resourceCounts",
                              "resourceIds"
                            ],
                            "patternProperties": {
                              "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "resourceCounts",
                                "resourceIds"
                              ]
                            }
                          },
                          "costEstimate": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "$ref": "#/$defs/Money"
                              },
                              "max": {
                                "$ref": "#/$defs/Money"
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "patternProperties": {
                              "^(?!(?:min|max)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "min",
                                "max"
                              ]
                            }
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "irreversibleFacts": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "inputHash": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "previewVersion": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "summary",
                          "affected",
                          "warnings",
                          "irreversibleFacts",
                          "inputHash",
                          "previewVersion",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "affected",
                            "costEstimate",
                            "warnings",
                            "irreversibleFacts",
                            "inputHash",
                            "previewVersion",
                            "expiresAt"
                          ]
                        }
                      },
                      "confirmationToken": {
                        "$ref": "#/$defs/OpaqueId"
                      }
                    },
                    "required": [
                      "provider",
                      "connectionId",
                      "preview",
                      "confirmationToken"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|connectionId|preview|confirmationToken)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "connectionId",
                        "preview",
                        "confirmationToken"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "enum": [
                          "calendly",
                          "cal_com"
                        ]
                      },
                      "status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "disconnected"
                            ]
                          }
                        ]
                      },
                      "disconnectedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "provider",
                      "status",
                      "disconnectedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|status|disconnectedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "status",
                        "disconnectedAt"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "enum": [
                              "calendly",
                              "cal_com"
                            ]
                          },
                          "connectionId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "preview": {
                            "type": "object",
                            "properties": {
                              "summary": {
                                "$ref": "#/$defs/Description"
                              },
                              "affected": {
                                "type": "object",
                                "properties": {
                                  "resourceCounts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "$ref": "#/$defs/NonEmptyString"
                                        },
                                        "count": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "count"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:type|count)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "type",
                                          "count"
                                        ]
                                      }
                                    },
                                    "maxItems": 64
                                  },
                                  "resourceIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "maxItems": 256
                                  }
                                },
                                "required": [
                                  "resourceCounts",
                                  "resourceIds"
                                ],
                                "patternProperties": {
                                  "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "resourceCounts",
                                    "resourceIds"
                                  ]
                                }
                              },
                              "costEstimate": {
                                "type": "object",
                                "properties": {
                                  "min": {
                                    "$ref": "#/$defs/Money"
                                  },
                                  "max": {
                                    "$ref": "#/$defs/Money"
                                  }
                                },
                                "required": [
                                  "min",
                                  "max"
                                ],
                                "patternProperties": {
                                  "^(?!(?:min|max)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "min",
                                    "max"
                                  ]
                                }
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "irreversibleFacts": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "inputHash": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "previewVersion": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "expiresAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "summary",
                              "affected",
                              "warnings",
                              "irreversibleFacts",
                              "inputHash",
                              "previewVersion",
                              "expiresAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "summary",
                                "affected",
                                "costEstimate",
                                "warnings",
                                "irreversibleFacts",
                                "inputHash",
                                "previewVersion",
                                "expiresAt"
                              ]
                            }
                          },
                          "confirmationToken": {
                            "$ref": "#/$defs/OpaqueId"
                          }
                        },
                        "required": [
                          "provider",
                          "connectionId",
                          "preview",
                          "confirmationToken"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|connectionId|preview|confirmationToken)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "connectionId",
                            "preview",
                            "confirmationToken"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "enum": [
                              "calendly",
                              "cal_com"
                            ]
                          },
                          "status": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "disconnected"
                                ]
                              }
                            ]
                          },
                          "disconnectedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "provider",
                          "status",
                          "disconnectedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|status|disconnectedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "status",
                            "disconnectedAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "preview_commit",
      "mapping": {
        "kind": "preview_commit",
        "previewOperationId": "booking.calendly.previewDisconnect",
        "commitOperationId": "booking.calendly.disconnect"
      },
      "scopes": [
        "integration:delete"
      ],
      "bundles": [
        "booking"
      ],
      "risk": "security_admin",
      "idempotency": "required",
      "confirmation": "preview_token",
      "resultMode": "inline",
      "underlyingOperations": [
        "booking.calendly.previewDisconnect",
        "booking.calendly.disconnect",
        "booking.calCom.previewDisconnect",
        "booking.calCom.disconnect"
      ],
      "invocations": [
        {
          "operationId": "booking.calendly.previewDisconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/booking/calendly/disconnect/preview",
          "workspaceScoped": false
        },
        {
          "operationId": "booking.calendly.disconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/booking/calendly/disconnect",
          "workspaceScoped": false
        },
        {
          "operationId": "booking.calCom.previewDisconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/booking/cal-com/disconnect/preview",
          "workspaceScoped": false
        },
        {
          "operationId": "booking.calCom.disconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/booking/cal-com/disconnect",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "provider": {
                "type": "string",
                "enum": [
                  "calendly",
                  "cal_com"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "preview"
                ]
              }
            },
            "required": [
              "workspaceId",
              "provider",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|provider|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "provider",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "provider": {
                "type": "string",
                "enum": [
                  "calendly",
                  "cal_com"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "commit"
                ]
              },
              "confirmationToken": {
                "$ref": "#/$defs/NonEmptyString"
              }
            },
            "required": [
              "workspaceId",
              "provider",
              "action",
              "confirmationToken"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|provider|action|confirmationToken)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "provider",
                    "action",
                    "confirmationToken"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "disconnect_getleads",
      "description": "Disconnect GetLeads: disarm the webhook, deactivate the key, and tombstone its sealed envelope.\n\nUse when the workspace should stop spending or receiving through GetLeads. Safe to repeat.\n\nWorkflows with GetLeads blocks stop working until a human reconnects a key.",
      "inputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "connectionId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "getleads"
            ]
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "disconnected"
            ]
          },
          "disconnectedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "provider",
          "connectionId",
          "status",
          "disconnectedAt"
        ],
        "patternProperties": {
          "^(?!(?:provider|connectionId|status|disconnectedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "provider",
            "connectionId",
            "status",
            "disconnectedAt"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "disconnect_getleads"
      },
      "scopes": [
        "integration:delete"
      ],
      "bundles": [
        "getleads"
      ],
      "risk": "destructive",
      "idempotency": "required",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "getleads.disconnect"
      ],
      "invocations": [
        {
          "operationId": "getleads.disconnect",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/integrations/getleads/:connectionId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "connectionId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId"
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "disconnect_inbox",
      "description": "Disconnects an inbox, tombstones its credential ref, and reports provider cleanup honestly.\n\nWhen asked to disconnect or unlink an inbox.\n\nFor deleting inbox history — disconnect keeps the row.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "inboxId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "disconnected",
              "ambiguous"
            ]
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "providerCleanup": {
            "type": "string",
            "enum": [
              "verified",
              "failed",
              "skipped",
              "not_applicable"
            ]
          },
          "disconnectedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "status",
          "inboxId",
          "providerCleanup",
          "disconnectedAt"
        ],
        "patternProperties": {
          "^(?!(?:status|inboxId|providerCleanup|disconnectedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "status",
            "inboxId",
            "providerCleanup",
            "disconnectedAt"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "disconnect_inbox"
      },
      "scopes": [
        "inbox:delete"
      ],
      "bundles": [
        "inbox_connection_management"
      ],
      "risk": "destructive",
      "idempotency": "required",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxConnections.disconnect"
      ],
      "invocations": [
        {
          "operationId": "inboxConnections.disconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/disconnect",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "inboxId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxId"
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "disconnect_mailbox_provider",
      "description": "Disconnect a saved mailbox vendor: preview binds the connection and issues a confirmation token, commit deletes the stored copy of the API key, removes the local connection, and cancels active imports. The vendor-issued key is not invalidated.\n\nWhen asked to remove a saved mailbox vendor connection. Commit requires the token from a fresh preview.\n\nDo not commit without a preview token, and do not reuse a token. A repeated token is rejected; it is not a cached success. The token is consumed before the connection delete. If that delete fails or the response is lost, list connections: a remaining row means the delete did not commit, and a missing row means it did. Mint a fresh preview to finish a delete that did not commit. This deletes the stored copy and the local connection. It does not invalidate the vendor-issued key, and it does not delete inboxes already imported.\n\nUse the native preview first and pass its confirmation token unchanged to commit. A token does not bypass current permissions or Workspace checks.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
                  "preview"
                ]
              }
            },
            "required": [
              "workspaceId",
              "connectionId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|connectionId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "connectionId",
                "action"
              ]
            }
          },
          {
            "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"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
                  "commit"
                ]
              },
              "confirmationToken": {
                "$ref": "#/$defs/OpaqueId"
              }
            },
            "required": [
              "workspaceId",
              "connectionId",
              "action",
              "confirmationToken"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|connectionId|action|confirmationToken)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "connectionId",
                "action",
                "confirmationToken"
              ]
            }
          }
        ],
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Money": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BOV",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHE",
                  "CHF",
                  "CHW",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "COU",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MXV",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLE",
                  "SOS",
                  "SRD",
                  "SSP",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "USN",
                  "UYI",
                  "UYU",
                  "UYW",
                  "UZS",
                  "VED",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAD",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XBA",
                  "XBB",
                  "XBC",
                  "XBD",
                  "XCD",
                  "XCG",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "XSU",
                  "XTS",
                  "XUA",
                  "XXX",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWG"
                ]
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "patternProperties": {
              "^(?!(?:amountMinor|currency)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "amountMinor",
                "currency"
              ]
            }
          },
          "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$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "connectionId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "preview": {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "$ref": "#/$defs/Description"
                          },
                          "affected": {
                            "type": "object",
                            "properties": {
                              "resourceCounts": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    "count": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "count"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|count)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "count"
                                    ]
                                  }
                                },
                                "maxItems": 64
                              },
                              "resourceIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "resourceCounts",
                              "resourceIds"
                            ],
                            "patternProperties": {
                              "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "resourceCounts",
                                "resourceIds"
                              ]
                            }
                          },
                          "costEstimate": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "$ref": "#/$defs/Money"
                              },
                              "max": {
                                "$ref": "#/$defs/Money"
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "patternProperties": {
                              "^(?!(?:min|max)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "min",
                                "max"
                              ]
                            }
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "irreversibleFacts": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "inputHash": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "previewVersion": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "summary",
                          "affected",
                          "warnings",
                          "irreversibleFacts",
                          "inputHash",
                          "previewVersion",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "affected",
                            "costEstimate",
                            "warnings",
                            "irreversibleFacts",
                            "inputHash",
                            "previewVersion",
                            "expiresAt"
                          ]
                        }
                      },
                      "confirmationToken": {
                        "$ref": "#/$defs/OpaqueId"
                      }
                    },
                    "required": [
                      "connectionId",
                      "preview",
                      "confirmationToken"
                    ],
                    "patternProperties": {
                      "^(?!(?:connectionId|preview|confirmationToken)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "connectionId",
                        "preview",
                        "confirmationToken"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "disconnected": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "disconnected"
                    ],
                    "patternProperties": {
                      "^(?!(?:disconnected)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "disconnected"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "connectionId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "preview": {
                            "type": "object",
                            "properties": {
                              "summary": {
                                "$ref": "#/$defs/Description"
                              },
                              "affected": {
                                "type": "object",
                                "properties": {
                                  "resourceCounts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "$ref": "#/$defs/NonEmptyString"
                                        },
                                        "count": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "count"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:type|count)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "type",
                                          "count"
                                        ]
                                      }
                                    },
                                    "maxItems": 64
                                  },
                                  "resourceIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "maxItems": 256
                                  }
                                },
                                "required": [
                                  "resourceCounts",
                                  "resourceIds"
                                ],
                                "patternProperties": {
                                  "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "resourceCounts",
                                    "resourceIds"
                                  ]
                                }
                              },
                              "costEstimate": {
                                "type": "object",
                                "properties": {
                                  "min": {
                                    "$ref": "#/$defs/Money"
                                  },
                                  "max": {
                                    "$ref": "#/$defs/Money"
                                  }
                                },
                                "required": [
                                  "min",
                                  "max"
                                ],
                                "patternProperties": {
                                  "^(?!(?:min|max)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "min",
                                    "max"
                                  ]
                                }
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "irreversibleFacts": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "inputHash": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "previewVersion": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "expiresAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "summary",
                              "affected",
                              "warnings",
                              "irreversibleFacts",
                              "inputHash",
                              "previewVersion",
                              "expiresAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "summary",
                                "affected",
                                "costEstimate",
                                "warnings",
                                "irreversibleFacts",
                                "inputHash",
                                "previewVersion",
                                "expiresAt"
                              ]
                            }
                          },
                          "confirmationToken": {
                            "$ref": "#/$defs/OpaqueId"
                          }
                        },
                        "required": [
                          "connectionId",
                          "preview",
                          "confirmationToken"
                        ],
                        "patternProperties": {
                          "^(?!(?:connectionId|preview|confirmationToken)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "connectionId",
                            "preview",
                            "confirmationToken"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "disconnected": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "disconnected"
                        ],
                        "patternProperties": {
                          "^(?!(?:disconnected)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "disconnected"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "preview_commit",
      "mapping": {
        "kind": "preview_commit",
        "previewOperationId": "inboxProviderImports.previewDisconnect",
        "commitOperationId": "inboxProviderImports.disconnect"
      },
      "scopes": [
        "integration:delete"
      ],
      "bundles": [
        "mailbox_provider_imports"
      ],
      "risk": "destructive",
      "idempotency": "none",
      "confirmation": "preview_token",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxProviderImports.previewDisconnect",
        "inboxProviderImports.disconnect"
      ],
      "invocations": [
        {
          "operationId": "inboxProviderImports.previewDisconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/connections/:connectionId/disconnect/preview",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.disconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/connections/:connectionId/disconnect",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
                  "preview"
                ]
              }
            },
            "required": [
              "workspaceId",
              "connectionId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|connectionId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "connectionId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
                  "commit"
                ]
              },
              "confirmationToken": {
                "$ref": "#/$defs/OpaqueId"
              }
            },
            "required": [
              "workspaceId",
              "connectionId",
              "action",
              "confirmationToken"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|connectionId|action|confirmationToken)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "connectionId",
                    "action",
                    "confirmationToken"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "disconnect_plusvibe",
      "description": "Disconnect PlusVibe: stop webhook intake, remove the remote hooks, and tombstone the sealed key.\n\nUse when the workspace should stop receiving PlusVibe events and stop using the key. Safe to repeat.\n\nWorkflows with PlusVibe blocks stop working until a human reconnects a key.",
      "inputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "connectionId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "plusvibe"
            ]
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "disconnected"
            ]
          },
          "disconnectedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "pendingRemoteCleanup": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 500
          }
        },
        "required": [
          "provider",
          "connectionId",
          "status",
          "disconnectedAt",
          "pendingRemoteCleanup"
        ],
        "patternProperties": {
          "^(?!(?:provider|connectionId|status|disconnectedAt|pendingRemoteCleanup)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "provider",
            "connectionId",
            "status",
            "disconnectedAt",
            "pendingRemoteCleanup"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "disconnect_plusvibe"
      },
      "scopes": [
        "integration:delete"
      ],
      "bundles": [
        "plusvibe"
      ],
      "risk": "destructive",
      "idempotency": "required",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "plusvibe.disconnect"
      ],
      "invocations": [
        {
          "operationId": "plusvibe.disconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/plusvibe/:connectionId/disconnect",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "connectionId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId"
          ]
        }
      }
    },
    {
      "feature": "unibox",
      "name": "download_unibox_attachment",
      "description": "Mint a short-lived download URL for one attachment on one message.\n\nUse when the attachment's contents are needed. Fetch it immediately: the URL expires, and it is deliberately not stored anywhere.\n\nDo not pass the URL on or persist it — it is a bearer credential for customer mail with no further check behind it.",
      "inputSchema": {
        "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"
          },
          "messageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "attachmentId": {
            "$ref": "#/$defs/AttachmentId"
          }
        },
        "required": [
          "workspaceId",
          "messageId",
          "attachmentId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|messageId|attachmentId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "messageId",
            "attachmentId"
          ]
        },
        "$defs": {
          "AttachmentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "attachmentId": {
            "$ref": "#/$defs/AttachmentId"
          },
          "url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "filename": {
            "$ref": "#/$defs/ShortText"
          },
          "contentType": {
            "$ref": "#/$defs/ShortText"
          },
          "size": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "attachmentId",
          "url",
          "expiresAt",
          "filename",
          "contentType",
          "size"
        ],
        "patternProperties": {
          "^(?!(?:attachmentId|url|expiresAt|filename|contentType|size)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "attachmentId",
            "url",
            "expiresAt",
            "filename",
            "contentType",
            "size"
          ]
        },
        "$defs": {
          "AttachmentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "download_unibox_attachment"
      },
      "scopes": [
        "unibox:read"
      ],
      "bundles": [
        "unibox_triage"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "download",
      "underlyingOperations": [
        "uniboxMessages.createAttachmentDownload"
      ],
      "invocations": [
        {
          "operationId": "uniboxMessages.createAttachmentDownload",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId/attachments/:attachmentId/download",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "messageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "attachmentId": {
            "$ref": "#/$defs/AttachmentId"
          }
        },
        "required": [
          "workspaceId",
          "messageId",
          "attachmentId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|messageId|attachmentId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "messageId",
            "attachmentId"
          ]
        },
        "$defs": {
          "AttachmentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "edit_campaign_sequence",
      "description": "Edit a campaign's sequence in either shape — the grouped steps save or the ADR-067 builder (steps, variants, positions, content, run policy, entry delay) — and manage reusable sequences and subsequence trigger sets.\n\nUse to author or revise what a campaign sends. Every mutation answers the full updated sequence document with its new revision; pass expectedRevision / expectedSequenceRevision when the client has a snapshot.\n\nPositions are server-owned and deletions tombstone retained execution identities — do not try to renumber steps or rewrite send history. A step's last variant is deleted by deleting the step, and edits are refused while a contact is task-pending on the affected variant.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "save"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "expectedSequenceRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "initialDelayMinutes": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 43200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "email_content"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "bodyFormat": {
                              "type": "string",
                              "enum": [
                                "inherit",
                                "plain",
                                "html"
                              ]
                            },
                            "previousThreadSelection": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "mode": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "latest",
                                        "custom"
                                      ]
                                    },
                                    "stepIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      }
                                    }
                                  },
                                  "required": [
                                    "mode"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "mode",
                                      "stepIds"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "variants": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "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"
                                      }
                                    ]
                                  },
                                  "variantOrder": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "subject": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "root": {
                                            "$ref": "#/$defs/Union_"
                                          }
                                        },
                                        "required": [
                                          "root"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:root)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "root"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "body": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "root": {
                                            "$ref": "#/$defs/Union_"
                                          }
                                        },
                                        "required": [
                                          "root"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:root)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "root"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "draft",
                                      "saved"
                                    ]
                                  }
                                },
                                "required": [
                                  "variantOrder"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|variantOrder|enabled|subject|body|status)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "variantOrder",
                                    "enabled",
                                    "subject",
                                    "body",
                                    "status"
                                  ]
                                }
                              },
                              "maxItems": 26
                            }
                          },
                          "required": [
                            "type",
                            "delayMinutes",
                            "variants"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|bodyFormat|previousThreadSelection|variants)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "bodyFormat",
                              "previousThreadSelection",
                              "variants"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "manual_review"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "notificationMessage": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|notificationMessage)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "notificationMessage"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "linked_in_connection_request"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "connectionNote": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 300
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|connectionNote)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "connectionNote"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "linked_in_in_mail"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "body": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|subject|body)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "subject",
                              "body"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "phone_call"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "script": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|script)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "script"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "text_message"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "message": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1600
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "mediaUrl": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|message|mediaUrl)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "message",
                              "mediaUrl"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "http_post_request"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "headers": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "bodyTemplate": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "url",
                              "headers",
                              "bodyTemplate"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "heyreach_campaign"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "connectionId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "campaignId": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "campaignName": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "linkedInAccountId": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "connectionId",
                              "campaignId",
                              "campaignName",
                              "linkedInAccountId"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "attio_task"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "content": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "assigneeMemberIds": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "onMissingAssignee": {
                              "type": "string",
                              "enum": [
                                "skip",
                                "fail"
                              ]
                            },
                            "deadlineOffsetDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "personLink": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "sourceVariable": {
                                  "type": "string"
                                },
                                "matchBy": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "domain",
                                    "record_id"
                                  ]
                                },
                                "createIfMissing": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ],
                              "patternProperties": {
                                "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "enabled",
                                  "sourceVariable",
                                  "matchBy",
                                  "createIfMissing"
                                ]
                              }
                            },
                            "companyLink": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "sourceVariable": {
                                  "type": "string"
                                },
                                "matchBy": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "domain",
                                    "record_id"
                                  ]
                                },
                                "createIfMissing": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ],
                              "patternProperties": {
                                "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "enabled",
                                  "sourceVariable",
                                  "matchBy",
                                  "createIfMissing"
                                ]
                              }
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "content",
                              "assigneeMemberIds",
                              "onMissingAssignee",
                              "deadlineOffsetDays",
                              "personLink",
                              "companyLink"
                            ]
                          }
                        }
                      ]
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "steps"
                ],
                "patternProperties": {
                  "^(?!(?:expectedSequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "expectedSequenceRevision",
                    "initialDelayMinutes",
                    "steps"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "update_step"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "stepOrder": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "variantOrder": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "delayMinutes": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "subject": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/Union_"
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        }
                      }
                    ]
                  },
                  "notificationMessage": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "manualStepType": {
                    "type": "string",
                    "enum": [
                      "notify_and_continue",
                      "notify_and_wait"
                    ]
                  },
                  "runMode": {
                    "type": "string",
                    "enum": [
                      "once",
                      "after_days",
                      "every_pass"
                    ]
                  },
                  "rearmAfterDays": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:stepOrder|variantOrder|delayMinutes|subject|body|notificationMessage|manualStepType|runMode|rearmAfterDays)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "stepOrder",
                    "variantOrder",
                    "delayMinutes",
                    "subject",
                    "body",
                    "notificationMessage",
                    "manualStepType",
                    "runMode",
                    "rearmAfterDays"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "stepId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "toggle_enabled"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "stepId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "delete_step"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "stepId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "delete_all"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "create_step"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "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"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "email_content",
                      "manual_review",
                      "linked_in_connection_request",
                      "linked_in_in_mail",
                      "phone_call",
                      "text_message",
                      "http_post_request",
                      "attio_task",
                      "heyreach_campaign"
                    ]
                  },
                  "afterStepId": {
                    "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"
                      }
                    ]
                  },
                  "waitFor": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "runMode": {
                    "type": "string",
                    "enum": [
                      "once",
                      "after_days",
                      "every_pass"
                    ]
                  },
                  "rearmAfterDays": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyFormat": {
                    "type": "string",
                    "enum": [
                      "inherit",
                      "plain",
                      "html"
                    ]
                  },
                  "previousThreadSelection": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "all",
                              "latest",
                              "custom"
                            ]
                          },
                          "stepIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            }
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "patternProperties": {
                          "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "mode",
                            "stepIds"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "variants": {
                    "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"
                        },
                        "content": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "email_content"
                                  ]
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "body": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "html"
                                              ]
                                            },
                                            "html": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "html"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|html)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "html"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "subject",
                                  "body"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "manual_review"
                                  ]
                                },
                                "stepType": {
                                  "type": "string",
                                  "enum": [
                                    "notify_and_continue",
                                    "notify_and_wait"
                                  ]
                                },
                                "notificationMessage": {
                                  "type": "string",
                                  "maxLength": 10000
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "stepType",
                                  "notificationMessage"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "linked_in_connection_request"
                                  ]
                                },
                                "message": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "html"
                                              ]
                                            },
                                            "html": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "html"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|html)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "html"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|message)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "message"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "linked_in_in_mail"
                                  ]
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "body": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "html"
                                              ]
                                            },
                                            "html": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "html"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|html)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "html"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "subject",
                                  "body"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "phone_call"
                                  ]
                                },
                                "script": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "html"
                                              ]
                                            },
                                            "html": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "html"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|html)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "html"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|script)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "script"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "text_message"
                                  ]
                                },
                                "message": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 1600
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "mediaUrl": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "message",
                                  "mediaUrl"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "http_post_request"
                                  ]
                                },
                                "url": {
                                  "type": "string"
                                },
                                "headers": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": {
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "bodyTemplate": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "url"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "url",
                                  "headers",
                                  "bodyTemplate"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "attio_task"
                                  ]
                                },
                                "content": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "assigneeMemberIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "onMissingAssignee": {
                                  "type": "string",
                                  "enum": [
                                    "skip",
                                    "fail"
                                  ]
                                },
                                "deadlineOffsetDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personLink": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "sourceVariable": {
                                      "type": "string"
                                    },
                                    "matchBy": {
                                      "type": "string",
                                      "enum": [
                                        "email",
                                        "domain",
                                        "record_id"
                                      ]
                                    },
                                    "createIfMissing": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "sourceVariable",
                                    "matchBy",
                                    "createIfMissing"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "enabled",
                                      "sourceVariable",
                                      "matchBy",
                                      "createIfMissing"
                                    ]
                                  }
                                },
                                "companyLink": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "sourceVariable": {
                                      "type": "string"
                                    },
                                    "matchBy": {
                                      "type": "string",
                                      "enum": [
                                        "email",
                                        "domain",
                                        "record_id"
                                      ]
                                    },
                                    "createIfMissing": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "sourceVariable",
                                    "matchBy",
                                    "createIfMissing"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "enabled",
                                      "sourceVariable",
                                      "matchBy",
                                      "createIfMissing"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "content",
                                  "assigneeMemberIds",
                                  "onMissingAssignee",
                                  "deadlineOffsetDays",
                                  "personLink",
                                  "companyLink"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "heyreach_campaign"
                                  ]
                                },
                                "connectionId": {
                                  "type": "string"
                                },
                                "campaignId": {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                "campaignName": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "linkedInAccountId": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 1
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "campaignId"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "connectionId",
                                  "campaignId",
                                  "campaignName",
                                  "linkedInAccountId"
                                ]
                              }
                            }
                          ]
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "patternProperties": {
                        "^(?!(?:id|content|enabled)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "content",
                          "enabled"
                        ]
                      }
                    },
                    "maxItems": 26
                  }
                },
                "required": [
                  "type"
                ],
                "patternProperties": {
                  "^(?!(?:id|type|afterStepId|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|variants)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "type",
                    "afterStepId",
                    "waitFor",
                    "runMode",
                    "rearmAfterDays",
                    "bodyFormat",
                    "previousThreadSelection",
                    "enabled",
                    "variants"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "update_sequence_step"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "waitFor": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "runMode": {
                    "type": "string",
                    "enum": [
                      "once",
                      "after_days",
                      "every_pass"
                    ]
                  },
                  "rearmAfterDays": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyFormat": {
                    "type": "string",
                    "enum": [
                      "inherit",
                      "plain",
                      "html"
                    ]
                  },
                  "previousThreadSelection": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "all",
                              "latest",
                              "custom"
                            ]
                          },
                          "stepIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            }
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "patternProperties": {
                          "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "mode",
                            "stepIds"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:expectedRevision|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "expectedRevision",
                    "waitFor",
                    "runMode",
                    "rearmAfterDays",
                    "bodyFormat",
                    "previousThreadSelection",
                    "enabled"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "stepId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "move_sequence_step"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "afterStepId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "afterStepId"
                ],
                "patternProperties": {
                  "^(?!(?:afterStepId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "afterStepId"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "stepId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "delete_sequence_step"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "stepId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "create_variant"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "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"
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "email_content"
                            ]
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "body": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "subject",
                            "body"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "manual_review"
                            ]
                          },
                          "stepType": {
                            "type": "string",
                            "enum": [
                              "notify_and_continue",
                              "notify_and_wait"
                            ]
                          },
                          "notificationMessage": {
                            "type": "string",
                            "maxLength": 10000
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "stepType",
                            "notificationMessage"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "linked_in_connection_request"
                            ]
                          },
                          "message": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "message"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "linked_in_in_mail"
                            ]
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "body": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "subject",
                            "body"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "phone_call"
                            ]
                          },
                          "script": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|script)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "script"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text_message"
                            ]
                          },
                          "message": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1600
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "mediaUrl": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "message",
                            "mediaUrl"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "http_post_request"
                            ]
                          },
                          "url": {
                            "type": "string"
                          },
                          "headers": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "bodyTemplate": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "url"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "url",
                            "headers",
                            "bodyTemplate"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "attio_task"
                            ]
                          },
                          "content": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "assigneeMemberIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "onMissingAssignee": {
                            "type": "string",
                            "enum": [
                              "skip",
                              "fail"
                            ]
                          },
                          "deadlineOffsetDays": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "personLink": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "sourceVariable": {
                                "type": "string"
                              },
                              "matchBy": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "domain",
                                  "record_id"
                                ]
                              },
                              "createIfMissing": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "sourceVariable",
                              "matchBy",
                              "createIfMissing"
                            ],
                            "patternProperties": {
                              "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ]
                            }
                          },
                          "companyLink": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "sourceVariable": {
                                "type": "string"
                              },
                              "matchBy": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "domain",
                                  "record_id"
                                ]
                              },
                              "createIfMissing": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "sourceVariable",
                              "matchBy",
                              "createIfMissing"
                            ],
                            "patternProperties": {
                              "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ]
                            }
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "content",
                            "assigneeMemberIds",
                            "onMissingAssignee",
                            "deadlineOffsetDays",
                            "personLink",
                            "companyLink"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "heyreach_campaign"
                            ]
                          },
                          "connectionId": {
                            "type": "string"
                          },
                          "campaignId": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "campaignName": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 500
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "linkedInAccountId": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "campaignId"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "connectionId",
                            "campaignId",
                            "campaignName",
                            "linkedInAccountId"
                          ]
                        }
                      }
                    ]
                  },
                  "copyFromVariantId": {
                    "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"
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:id|content|copyFromVariantId|enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "content",
                    "copyFromVariantId",
                    "enabled"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "stepId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "update_variant"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "variantId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "email_content"
                            ]
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "body": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "subject",
                            "body"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "manual_review"
                            ]
                          },
                          "stepType": {
                            "type": "string",
                            "enum": [
                              "notify_and_continue",
                              "notify_and_wait"
                            ]
                          },
                          "notificationMessage": {
                            "type": "string",
                            "maxLength": 10000
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "stepType",
                            "notificationMessage"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "linked_in_connection_request"
                            ]
                          },
                          "message": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "message"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "linked_in_in_mail"
                            ]
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "body": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "subject",
                            "body"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "phone_call"
                            ]
                          },
                          "script": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|script)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "script"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text_message"
                            ]
                          },
                          "message": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1600
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "mediaUrl": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "message",
                            "mediaUrl"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "http_post_request"
                            ]
                          },
                          "url": {
                            "type": "string"
                          },
                          "headers": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "bodyTemplate": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "url"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "url",
                            "headers",
                            "bodyTemplate"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "attio_task"
                            ]
                          },
                          "content": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "assigneeMemberIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "onMissingAssignee": {
                            "type": "string",
                            "enum": [
                              "skip",
                              "fail"
                            ]
                          },
                          "deadlineOffsetDays": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "personLink": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "sourceVariable": {
                                "type": "string"
                              },
                              "matchBy": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "domain",
                                  "record_id"
                                ]
                              },
                              "createIfMissing": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "sourceVariable",
                              "matchBy",
                              "createIfMissing"
                            ],
                            "patternProperties": {
                              "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ]
                            }
                          },
                          "companyLink": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "sourceVariable": {
                                "type": "string"
                              },
                              "matchBy": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "domain",
                                  "record_id"
                                ]
                              },
                              "createIfMissing": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "sourceVariable",
                              "matchBy",
                              "createIfMissing"
                            ],
                            "patternProperties": {
                              "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ]
                            }
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "content",
                            "assigneeMemberIds",
                            "onMissingAssignee",
                            "deadlineOffsetDays",
                            "personLink",
                            "companyLink"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "heyreach_campaign"
                            ]
                          },
                          "connectionId": {
                            "type": "string"
                          },
                          "campaignId": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "campaignName": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 500
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "linkedInAccountId": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "campaignId"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "connectionId",
                            "campaignId",
                            "campaignName",
                            "linkedInAccountId"
                          ]
                        }
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:expectedRevision|content|enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "expectedRevision",
                    "content",
                    "enabled"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "variantId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|variantId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "variantId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "delete_variant"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "variantId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "variantId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|variantId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "variantId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "replace_sequence"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "expectedSequenceRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "initialDelayMinutes": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 43200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "stepId": {
                          "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"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "email_content",
                            "manual_review",
                            "linked_in_connection_request",
                            "linked_in_in_mail",
                            "phone_call",
                            "text_message",
                            "http_post_request",
                            "attio_task",
                            "heyreach_campaign"
                          ]
                        },
                        "waitFor": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "runMode": {
                          "type": "string",
                          "enum": [
                            "once",
                            "after_days",
                            "every_pass"
                          ]
                        },
                        "rearmAfterDays": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 365
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "bodyFormat": {
                          "type": "string",
                          "enum": [
                            "inherit",
                            "plain",
                            "html"
                          ]
                        },
                        "previousThreadSelection": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "all",
                                    "latest",
                                    "custom"
                                  ]
                                },
                                "stepIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  }
                                }
                              },
                              "required": [
                                "mode"
                              ],
                              "patternProperties": {
                                "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "mode",
                                  "stepIds"
                                ]
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "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"
                                  }
                                ]
                              },
                              "content": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "email_content"
                                        ]
                                      },
                                      "subject": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "body": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "html"
                                                    ]
                                                  },
                                                  "html": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "html"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|html)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "html"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "subject",
                                        "body"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "manual_review"
                                        ]
                                      },
                                      "stepType": {
                                        "type": "string",
                                        "enum": [
                                          "notify_and_continue",
                                          "notify_and_wait"
                                        ]
                                      },
                                      "notificationMessage": {
                                        "type": "string",
                                        "maxLength": 10000
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "stepType",
                                        "notificationMessage"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "linked_in_connection_request"
                                        ]
                                      },
                                      "message": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "html"
                                                    ]
                                                  },
                                                  "html": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "html"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|html)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "html"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|message)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "message"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "linked_in_in_mail"
                                        ]
                                      },
                                      "subject": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "body": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "html"
                                                    ]
                                                  },
                                                  "html": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "html"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|html)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "html"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "subject",
                                        "body"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "phone_call"
                                        ]
                                      },
                                      "script": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "html"
                                                    ]
                                                  },
                                                  "html": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "html"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|html)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "html"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|script)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "script"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "text_message"
                                        ]
                                      },
                                      "message": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 1600
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "mediaUrl": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "message",
                                        "mediaUrl"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "http_post_request"
                                        ]
                                      },
                                      "url": {
                                        "type": "string"
                                      },
                                      "headers": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "bodyTemplate": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "url"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "url",
                                        "headers",
                                        "bodyTemplate"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "attio_task"
                                        ]
                                      },
                                      "content": {
                                        "type": "string",
                                        "maxLength": 10000
                                      },
                                      "assigneeMemberIds": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "onMissingAssignee": {
                                        "type": "string",
                                        "enum": [
                                          "skip",
                                          "fail"
                                        ]
                                      },
                                      "deadlineOffsetDays": {
                                        "anyOf": [
                                          {
                                            "type": "integer"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "personLink": {
                                        "type": "object",
                                        "properties": {
                                          "enabled": {
                                            "type": "boolean"
                                          },
                                          "sourceVariable": {
                                            "type": "string"
                                          },
                                          "matchBy": {
                                            "type": "string",
                                            "enum": [
                                              "email",
                                              "domain",
                                              "record_id"
                                            ]
                                          },
                                          "createIfMissing": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "enabled",
                                          "sourceVariable",
                                          "matchBy",
                                          "createIfMissing"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "enabled",
                                            "sourceVariable",
                                            "matchBy",
                                            "createIfMissing"
                                          ]
                                        }
                                      },
                                      "companyLink": {
                                        "type": "object",
                                        "properties": {
                                          "enabled": {
                                            "type": "boolean"
                                          },
                                          "sourceVariable": {
                                            "type": "string"
                                          },
                                          "matchBy": {
                                            "type": "string",
                                            "enum": [
                                              "email",
                                              "domain",
                                              "record_id"
                                            ]
                                          },
                                          "createIfMissing": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "enabled",
                                          "sourceVariable",
                                          "matchBy",
                                          "createIfMissing"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "enabled",
                                            "sourceVariable",
                                            "matchBy",
                                            "createIfMissing"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "content",
                                        "assigneeMemberIds",
                                        "onMissingAssignee",
                                        "deadlineOffsetDays",
                                        "personLink",
                                        "companyLink"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "heyreach_campaign"
                                        ]
                                      },
                                      "connectionId": {
                                        "type": "string"
                                      },
                                      "campaignId": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "campaignName": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 500
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "linkedInAccountId": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "campaignId"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "connectionId",
                                        "campaignId",
                                        "campaignName",
                                        "linkedInAccountId"
                                      ]
                                    }
                                  }
                                ]
                              },
                              "enabled": {
                                "type": "boolean"
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:id|content|enabled)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "content",
                                "enabled"
                              ]
                            }
                          },
                          "maxItems": 26
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "patternProperties": {
                        "^(?!(?:stepId|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|variants)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "stepId",
                          "type",
                          "waitFor",
                          "runMode",
                          "rearmAfterDays",
                          "bodyFormat",
                          "previousThreadSelection",
                          "enabled",
                          "variants"
                        ]
                      }
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "steps"
                ],
                "patternProperties": {
                  "^(?!(?:expectedSequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "expectedSequenceRevision",
                    "initialDelayMinutes",
                    "steps"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "update_sequence"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "initialDelayMinutes": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 43200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "initialDelayMinutes"
                ],
                "patternProperties": {
                  "^(?!(?:initialDelayMinutes)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "initialDelayMinutes"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "create_sequence"
                ]
              },
              "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"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "initialDelayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 525600
                  },
                  "stopOtherCampaigns": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "inboxIds"
                ],
                "patternProperties": {
                  "^(?!(?:name|inboxIds|initialDelayMinutes|stopOtherCampaigns)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "inboxIds",
                    "initialDelayMinutes",
                    "stopOtherCampaigns"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "set_sequence_status"
                ]
              },
              "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"
              },
              "sequenceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "paused"
                    ]
                  }
                },
                "required": [
                  "status"
                ],
                "patternProperties": {
                  "^(?!(?:status)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "sequenceId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|sequenceId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "sequenceId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "create_subsequence"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "trigger": {
                    "type": "object",
                    "properties": {
                      "conditionType": {
                        "type": "string",
                        "enum": [
                          "reply_any",
                          "reply_genuine",
                          "reply_label",
                          "reply_text"
                        ]
                      },
                      "replyLabelIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        }
                      },
                      "textContains": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "textNotContains": {
                        "$ref": "#/$defs/NonEmptyString"
                      }
                    },
                    "required": [
                      "conditionType"
                    ],
                    "patternProperties": {
                      "^(?!(?:conditionType|replyLabelIds|textContains|textNotContains)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "conditionType",
                        "replyLabelIds",
                        "textContains",
                        "textNotContains"
                      ]
                    }
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|trigger)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "trigger"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "save_subsequence_triggers"
                ]
              },
              "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"
              },
              "subsequenceCampaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "triggers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "conditionType": {
                          "type": "string",
                          "enum": [
                            "reply_any",
                            "reply_genuine",
                            "reply_label",
                            "reply_text"
                          ]
                        },
                        "replyLabelIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          }
                        },
                        "textContains": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "textNotContains": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "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"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "conditionType"
                      ],
                      "patternProperties": {
                        "^(?!(?:conditionType|replyLabelIds|textContains|textNotContains|id|enabled)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "conditionType",
                          "replyLabelIds",
                          "textContains",
                          "textNotContains",
                          "id",
                          "enabled"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "triggers"
                ],
                "patternProperties": {
                  "^(?!(?:triggers)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "triggers"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "subsequenceCampaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|subsequenceCampaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "subsequenceCampaignId",
                "payload"
              ]
            }
          }
        ],
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "savedSteps": {
                        "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"
                            },
                            "stepOrder": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "variantOrder": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "email_content",
                                "manual_review",
                                "linked_in_connection_request",
                                "linked_in_in_mail",
                                "phone_call",
                                "text_message",
                                "http_post_request",
                                "attio_task",
                                "heyreach_campaign"
                              ]
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            }
                          },
                          "required": [
                            "id",
                            "stepOrder",
                            "variantOrder",
                            "type",
                            "stepId"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepOrder|variantOrder|type|stepId)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepOrder",
                              "variantOrder",
                              "type",
                              "stepId"
                            ]
                          }
                        }
                      },
                      "txid": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "sequenceRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "success",
                      "savedSteps",
                      "txid",
                      "sequenceRevision"
                    ],
                    "patternProperties": {
                      "^(?!(?:success|savedSteps|txid|sequenceRevision)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "success",
                        "savedSteps",
                        "txid",
                        "sequenceRevision"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "success"
                    ],
                    "patternProperties": {
                      "^(?!(?:success)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "success"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "enabled": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "success",
                      "enabled"
                    ],
                    "patternProperties": {
                      "^(?!(?:success|enabled)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "success",
                        "enabled"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "success"
                    ],
                    "patternProperties": {
                      "^(?!(?:success)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "success"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "txid": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "sequenceRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "sequence": {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "sequenceRevision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "initialDelayMinutes": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "steps": {
                            "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"
                                },
                                "position": {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "email_content",
                                    "manual_review",
                                    "linked_in_connection_request",
                                    "linked_in_in_mail",
                                    "phone_call",
                                    "text_message",
                                    "http_post_request",
                                    "attio_task",
                                    "heyreach_campaign"
                                  ]
                                },
                                "waitFor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "bodyFormat": {
                                  "type": "string",
                                  "enum": [
                                    "inherit",
                                    "plain",
                                    "html"
                                  ]
                                },
                                "previousThreadSelection": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "mode": {
                                          "type": "string",
                                          "enum": [
                                            "all",
                                            "latest",
                                            "custom"
                                          ]
                                        },
                                        "stepIds": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          }
                                        }
                                      },
                                      "required": [
                                        "mode"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "mode",
                                          "stepIds"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "variants": {
                                  "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"
                                      },
                                      "variantOrder": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "enabled": {
                                        "type": "boolean"
                                      },
                                      "revision": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "content": {
                                        "$ref": "#/$defs/Union_"
                                      },
                                      "plainText": {
                                        "type": "object",
                                        "properties": {
                                          "subject": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "body": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "patternProperties": {
                                          "^(?!(?:subject|body)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "subject",
                                            "body"
                                          ]
                                        }
                                      },
                                      "updatedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "variantOrder",
                                      "enabled",
                                      "revision",
                                      "content",
                                      "plainText",
                                      "updatedAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|variantOrder|enabled|revision|content|plainText|updatedAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "variantOrder",
                                        "enabled",
                                        "revision",
                                        "content",
                                        "plainText",
                                        "updatedAt"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "position",
                                "type",
                                "waitFor",
                                "runMode",
                                "rearmAfterDays",
                                "bodyFormat",
                                "previousThreadSelection",
                                "enabled",
                                "revision",
                                "updatedAt",
                                "variants"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|position|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|revision|updatedAt|variants)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "position",
                                  "type",
                                  "waitFor",
                                  "runMode",
                                  "rearmAfterDays",
                                  "bodyFormat",
                                  "previousThreadSelection",
                                  "enabled",
                                  "revision",
                                  "updatedAt",
                                  "variants"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "campaignId",
                          "sequenceRevision",
                          "initialDelayMinutes",
                          "steps"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|sequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "sequenceRevision",
                            "initialDelayMinutes",
                            "steps"
                          ]
                        }
                      }
                    },
                    "required": [
                      "txid",
                      "sequenceRevision",
                      "sequence"
                    ],
                    "patternProperties": {
                      "^(?!(?:txid|sequenceRevision|sequence)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "txid",
                        "sequenceRevision",
                        "sequence"
                      ]
                    }
                  },
                  {
                    "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": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "active",
                          "paused",
                          "archived",
                          "completed"
                        ]
                      },
                      "pauseContext": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "manual"
                                        ]
                                      }
                                    ]
                                  },
                                  "pausedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "source": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "user"
                                        ]
                                      }
                                    ]
                                  },
                                  "evidence": {
                                    "type": "null"
                                  }
                                },
                                "required": [
                                  "reason",
                                  "pausedAt",
                                  "source",
                                  "evidence"
                                ],
                                "patternProperties": {
                                  "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "reason",
                                    "pausedAt",
                                    "source",
                                    "evidence"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "bounce_threshold"
                                        ]
                                      }
                                    ]
                                  },
                                  "pausedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "source": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "system"
                                        ]
                                      }
                                    ]
                                  },
                                  "evidence": {
                                    "type": "object",
                                    "properties": {
                                      "thresholdPercent": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "bounceRatePercent": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "sentCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "bouncedCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "recipientBounceCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "senderBounceCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "unclassifiedBounceCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "scope": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "campaign_lifetime"
                                            ]
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "thresholdPercent",
                                      "bounceRatePercent",
                                      "sentCount",
                                      "bouncedCount",
                                      "recipientBounceCount",
                                      "senderBounceCount",
                                      "unclassifiedBounceCount",
                                      "scope"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "thresholdPercent",
                                        "bounceRatePercent",
                                        "sentCount",
                                        "bouncedCount",
                                        "recipientBounceCount",
                                        "senderBounceCount",
                                        "unclassifiedBounceCount",
                                        "scope"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "reason",
                                  "pausedAt",
                                  "source",
                                  "evidence"
                                ],
                                "patternProperties": {
                                  "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "reason",
                                    "pausedAt",
                                    "source",
                                    "evidence"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "unknown"
                                        ]
                                      }
                                    ]
                                  },
                                  "pausedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "source": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "unknown"
                                        ]
                                      }
                                    ]
                                  },
                                  "evidence": {
                                    "type": "null"
                                  }
                                },
                                "required": [
                                  "reason",
                                  "pausedAt",
                                  "source",
                                  "evidence"
                                ],
                                "patternProperties": {
                                  "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "reason",
                                    "pausedAt",
                                    "source",
                                    "evidence"
                                  ]
                                }
                              }
                            ],
                            "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "sequence"
                        ]
                      },
                      "initialDelayMinutes": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "stopOtherCampaignsOnEnroll": {
                        "type": "boolean"
                      },
                      "inboxIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        }
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "status",
                      "kind",
                      "initialDelayMinutes",
                      "stopOtherCampaignsOnEnroll",
                      "inboxIds",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|status|pauseContext|kind|initialDelayMinutes|stopOtherCampaignsOnEnroll|inboxIds|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "status",
                        "pauseContext",
                        "kind",
                        "initialDelayMinutes",
                        "stopOtherCampaignsOnEnroll",
                        "inboxIds",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "success"
                        ],
                        "patternProperties": {
                          "^(?!(?:success)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "success"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "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"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "patternProperties": {
                          "^(?!(?:id)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "id"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "savedSteps": {
                            "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"
                                },
                                "stepOrder": {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                "variantOrder": {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "email_content",
                                    "manual_review",
                                    "linked_in_connection_request",
                                    "linked_in_in_mail",
                                    "phone_call",
                                    "text_message",
                                    "http_post_request",
                                    "attio_task",
                                    "heyreach_campaign"
                                  ]
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                }
                              },
                              "required": [
                                "id",
                                "stepOrder",
                                "variantOrder",
                                "type",
                                "stepId"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepOrder|variantOrder|type|stepId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepOrder",
                                  "variantOrder",
                                  "type",
                                  "stepId"
                                ]
                              }
                            }
                          },
                          "txid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "sequenceRevision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "success",
                          "savedSteps",
                          "txid",
                          "sequenceRevision"
                        ],
                        "patternProperties": {
                          "^(?!(?:success|savedSteps|txid|sequenceRevision)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "success",
                            "savedSteps",
                            "txid",
                            "sequenceRevision"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "success"
                        ],
                        "patternProperties": {
                          "^(?!(?:success)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "success"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "enabled": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "success",
                          "enabled"
                        ],
                        "patternProperties": {
                          "^(?!(?:success|enabled)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "success",
                            "enabled"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "success"
                        ],
                        "patternProperties": {
                          "^(?!(?:success)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "success"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "txid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "sequenceRevision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "sequence": {
                            "type": "object",
                            "properties": {
                              "campaignId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "sequenceRevision": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "initialDelayMinutes": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "steps": {
                                "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"
                                    },
                                    "position": {
                                      "type": "integer",
                                      "minimum": 1
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "email_content",
                                        "manual_review",
                                        "linked_in_connection_request",
                                        "linked_in_in_mail",
                                        "phone_call",
                                        "text_message",
                                        "http_post_request",
                                        "attio_task",
                                        "heyreach_campaign"
                                      ]
                                    },
                                    "waitFor": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "runMode": {
                                      "type": "string",
                                      "enum": [
                                        "once",
                                        "after_days",
                                        "every_pass"
                                      ]
                                    },
                                    "rearmAfterDays": {
                                      "anyOf": [
                                        {
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "bodyFormat": {
                                      "type": "string",
                                      "enum": [
                                        "inherit",
                                        "plain",
                                        "html"
                                      ]
                                    },
                                    "previousThreadSelection": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "mode": {
                                              "type": "string",
                                              "enum": [
                                                "all",
                                                "latest",
                                                "custom"
                                              ]
                                            },
                                            "stepIds": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              }
                                            }
                                          },
                                          "required": [
                                            "mode"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "mode",
                                              "stepIds"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "revision": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "updatedAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "variants": {
                                      "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"
                                          },
                                          "variantOrder": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "enabled": {
                                            "type": "boolean"
                                          },
                                          "revision": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "content": {
                                            "$ref": "#/$defs/Union_"
                                          },
                                          "plainText": {
                                            "type": "object",
                                            "properties": {
                                              "subject": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "body": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            },
                                            "patternProperties": {
                                              "^(?!(?:subject|body)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "subject",
                                                "body"
                                              ]
                                            }
                                          },
                                          "updatedAt": {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "variantOrder",
                                          "enabled",
                                          "revision",
                                          "content",
                                          "plainText",
                                          "updatedAt"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:id|variantOrder|enabled|revision|content|plainText|updatedAt)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "id",
                                            "variantOrder",
                                            "enabled",
                                            "revision",
                                            "content",
                                            "plainText",
                                            "updatedAt"
                                          ]
                                        }
                                      }
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "position",
                                    "type",
                                    "waitFor",
                                    "runMode",
                                    "rearmAfterDays",
                                    "bodyFormat",
                                    "previousThreadSelection",
                                    "enabled",
                                    "revision",
                                    "updatedAt",
                                    "variants"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|position|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|revision|updatedAt|variants)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "position",
                                      "type",
                                      "waitFor",
                                      "runMode",
                                      "rearmAfterDays",
                                      "bodyFormat",
                                      "previousThreadSelection",
                                      "enabled",
                                      "revision",
                                      "updatedAt",
                                      "variants"
                                    ]
                                  }
                                }
                              }
                            },
                            "required": [
                              "campaignId",
                              "sequenceRevision",
                              "initialDelayMinutes",
                              "steps"
                            ],
                            "patternProperties": {
                              "^(?!(?:campaignId|sequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "campaignId",
                                "sequenceRevision",
                                "initialDelayMinutes",
                                "steps"
                              ]
                            }
                          }
                        },
                        "required": [
                          "txid",
                          "sequenceRevision",
                          "sequence"
                        ],
                        "patternProperties": {
                          "^(?!(?:txid|sequenceRevision|sequence)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "txid",
                            "sequenceRevision",
                            "sequence"
                          ]
                        }
                      },
                      {
                        "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": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "archived",
                              "completed"
                            ]
                          },
                          "pauseContext": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "manual"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "user"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "null"
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "bounce_threshold"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "system"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "object",
                                        "properties": {
                                          "thresholdPercent": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "bounceRatePercent": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "sentCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "bouncedCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "recipientBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "senderBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "unclassifiedBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "scope": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "campaign_lifetime"
                                                ]
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "thresholdPercent",
                                          "bounceRatePercent",
                                          "sentCount",
                                          "bouncedCount",
                                          "recipientBounceCount",
                                          "senderBounceCount",
                                          "unclassifiedBounceCount",
                                          "scope"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "thresholdPercent",
                                            "bounceRatePercent",
                                            "sentCount",
                                            "bouncedCount",
                                            "recipientBounceCount",
                                            "senderBounceCount",
                                            "unclassifiedBounceCount",
                                            "scope"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "unknown"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "unknown"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "null"
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  }
                                ],
                                "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "sequence"
                            ]
                          },
                          "initialDelayMinutes": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "stopOtherCampaignsOnEnroll": {
                            "type": "boolean"
                          },
                          "inboxIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            }
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "status",
                          "kind",
                          "initialDelayMinutes",
                          "stopOtherCampaignsOnEnroll",
                          "inboxIds",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|status|pauseContext|kind|initialDelayMinutes|stopOtherCampaignsOnEnroll|inboxIds|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "status",
                            "pauseContext",
                            "kind",
                            "initialDelayMinutes",
                            "stopOtherCampaignsOnEnroll",
                            "inboxIds",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "success": {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            },
                            "required": [
                              "success"
                            ],
                            "patternProperties": {
                              "^(?!(?:success)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "success"
                                  ]
                                }
                              ]
                            }
                          },
                          {
                            "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"
                              }
                            },
                            "required": [
                              "id"
                            ],
                            "patternProperties": {
                              "^(?!(?:id)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "id"
                                  ]
                                }
                              ]
                            }
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "edit_campaign_sequence"
      },
      "scopes": [
        "campaign:create",
        "campaign:update",
        "sequence:create",
        "sequence:update",
        "sequence:delete"
      ],
      "bundles": [
        "campaign_audience"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignSteps.save",
        "campaignSteps.update",
        "campaignSteps.toggleEnabled",
        "campaignSteps.delete",
        "campaignSteps.deleteAll",
        "campaignSteps.createStep",
        "campaignSteps.updateSequenceStep",
        "campaignSteps.moveSequenceStep",
        "campaignSteps.deleteSequenceStep",
        "campaignSteps.createVariant",
        "campaignSteps.updateVariant",
        "campaignSteps.deleteVariant",
        "campaignSteps.replaceSequence",
        "campaignSteps.updateSequence",
        "campaignSequences.create",
        "campaignSequences.setStatus",
        "campaignSubsequences.create",
        "campaignSubsequences.saveTriggers"
      ],
      "invocations": [
        {
          "operationId": "campaignSteps.save",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/steps/save",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/steps/:stepId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.toggleEnabled",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/steps/:stepId/toggle-enabled",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/steps/:stepId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.deleteAll",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/steps",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.createStep",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.updateSequenceStep",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps/:stepId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.moveSequenceStep",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps/:stepId/move",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.deleteSequenceStep",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps/:stepId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.createVariant",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps/:stepId/variants",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.updateVariant",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/variants/:variantId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.deleteVariant",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/variants/:variantId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.replaceSequence",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.updateSequence",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSequences.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/sequences",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSequences.setStatus",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaigns/sequences/:sequenceId/status",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSubsequences.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/subsequences",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSubsequences.saveTriggers",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/subsequences/:subsequenceCampaignId/triggers",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "save"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "expectedSequenceRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "initialDelayMinutes": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 43200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "email_content"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "bodyFormat": {
                              "type": "string",
                              "enum": [
                                "inherit",
                                "plain",
                                "html"
                              ]
                            },
                            "previousThreadSelection": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "mode": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "latest",
                                        "custom"
                                      ]
                                    },
                                    "stepIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      }
                                    }
                                  },
                                  "required": [
                                    "mode"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "mode",
                                      "stepIds"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "variants": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "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"
                                      }
                                    ]
                                  },
                                  "variantOrder": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "subject": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "root": {
                                            "$ref": "#/$defs/Union_"
                                          }
                                        },
                                        "required": [
                                          "root"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:root)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "root"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "body": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "root": {
                                            "$ref": "#/$defs/Union_"
                                          }
                                        },
                                        "required": [
                                          "root"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:root)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "root"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "draft",
                                      "saved"
                                    ]
                                  }
                                },
                                "required": [
                                  "variantOrder"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|variantOrder|enabled|subject|body|status)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "variantOrder",
                                    "enabled",
                                    "subject",
                                    "body",
                                    "status"
                                  ]
                                }
                              },
                              "maxItems": 26
                            }
                          },
                          "required": [
                            "type",
                            "delayMinutes",
                            "variants"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|bodyFormat|previousThreadSelection|variants)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "bodyFormat",
                              "previousThreadSelection",
                              "variants"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "manual_review"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "notificationMessage": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|notificationMessage)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "notificationMessage"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "linked_in_connection_request"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "connectionNote": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 300
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|connectionNote)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "connectionNote"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "linked_in_in_mail"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "body": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|subject|body)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "subject",
                              "body"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "phone_call"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "script": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|script)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "script"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "text_message"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "message": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1600
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "mediaUrl": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|message|mediaUrl)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "message",
                              "mediaUrl"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "http_post_request"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "headers": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "bodyTemplate": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "url",
                              "headers",
                              "bodyTemplate"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "heyreach_campaign"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "connectionId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "campaignId": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "campaignName": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "linkedInAccountId": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "connectionId",
                              "campaignId",
                              "campaignName",
                              "linkedInAccountId"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "attio_task"
                              ]
                            },
                            "stepId": {
                              "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"
                                }
                              ]
                            },
                            "dbId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "saved"
                              ]
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 365
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "content": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "assigneeMemberIds": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "onMissingAssignee": {
                              "type": "string",
                              "enum": [
                                "skip",
                                "fail"
                              ]
                            },
                            "deadlineOffsetDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "personLink": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "sourceVariable": {
                                  "type": "string"
                                },
                                "matchBy": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "domain",
                                    "record_id"
                                  ]
                                },
                                "createIfMissing": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ],
                              "patternProperties": {
                                "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "enabled",
                                  "sourceVariable",
                                  "matchBy",
                                  "createIfMissing"
                                ]
                              }
                            },
                            "companyLink": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "sourceVariable": {
                                  "type": "string"
                                },
                                "matchBy": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "domain",
                                    "record_id"
                                  ]
                                },
                                "createIfMissing": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ],
                              "patternProperties": {
                                "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "enabled",
                                  "sourceVariable",
                                  "matchBy",
                                  "createIfMissing"
                                ]
                              }
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "stepId",
                              "dbId",
                              "status",
                              "runMode",
                              "rearmAfterDays",
                              "delayMinutes",
                              "content",
                              "assigneeMemberIds",
                              "onMissingAssignee",
                              "deadlineOffsetDays",
                              "personLink",
                              "companyLink"
                            ]
                          }
                        }
                      ]
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "steps"
                ],
                "patternProperties": {
                  "^(?!(?:expectedSequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "expectedSequenceRevision",
                    "initialDelayMinutes",
                    "steps"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "update_step"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "stepOrder": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "variantOrder": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "delayMinutes": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "subject": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/Union_"
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        }
                      }
                    ]
                  },
                  "notificationMessage": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "manualStepType": {
                    "type": "string",
                    "enum": [
                      "notify_and_continue",
                      "notify_and_wait"
                    ]
                  },
                  "runMode": {
                    "type": "string",
                    "enum": [
                      "once",
                      "after_days",
                      "every_pass"
                    ]
                  },
                  "rearmAfterDays": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:stepOrder|variantOrder|delayMinutes|subject|body|notificationMessage|manualStepType|runMode|rearmAfterDays)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "stepOrder",
                    "variantOrder",
                    "delayMinutes",
                    "subject",
                    "body",
                    "notificationMessage",
                    "manualStepType",
                    "runMode",
                    "rearmAfterDays"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "stepId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "toggle_enabled"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "stepId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "delete_step"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "stepId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "delete_all"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "create_step"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "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"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "email_content",
                      "manual_review",
                      "linked_in_connection_request",
                      "linked_in_in_mail",
                      "phone_call",
                      "text_message",
                      "http_post_request",
                      "attio_task",
                      "heyreach_campaign"
                    ]
                  },
                  "afterStepId": {
                    "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"
                      }
                    ]
                  },
                  "waitFor": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "runMode": {
                    "type": "string",
                    "enum": [
                      "once",
                      "after_days",
                      "every_pass"
                    ]
                  },
                  "rearmAfterDays": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyFormat": {
                    "type": "string",
                    "enum": [
                      "inherit",
                      "plain",
                      "html"
                    ]
                  },
                  "previousThreadSelection": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "all",
                              "latest",
                              "custom"
                            ]
                          },
                          "stepIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            }
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "patternProperties": {
                          "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "mode",
                            "stepIds"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "variants": {
                    "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"
                        },
                        "content": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "email_content"
                                  ]
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "body": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "html"
                                              ]
                                            },
                                            "html": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "html"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|html)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "html"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "subject",
                                  "body"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "manual_review"
                                  ]
                                },
                                "stepType": {
                                  "type": "string",
                                  "enum": [
                                    "notify_and_continue",
                                    "notify_and_wait"
                                  ]
                                },
                                "notificationMessage": {
                                  "type": "string",
                                  "maxLength": 10000
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "stepType",
                                  "notificationMessage"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "linked_in_connection_request"
                                  ]
                                },
                                "message": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "html"
                                              ]
                                            },
                                            "html": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "html"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|html)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "html"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|message)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "message"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "linked_in_in_mail"
                                  ]
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "body": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "html"
                                              ]
                                            },
                                            "html": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "html"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|html)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "html"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "subject",
                                  "body"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "phone_call"
                                  ]
                                },
                                "script": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "lexical"
                                              ]
                                            },
                                            "state": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "state"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|state)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "state"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "html"
                                              ]
                                            },
                                            "html": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "html"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|html)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "html"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "format": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 256000
                                            }
                                          },
                                          "required": [
                                            "format",
                                            "text"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:format|text)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "format",
                                              "text"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|script)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "script"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "text_message"
                                  ]
                                },
                                "message": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 1600
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "mediaUrl": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "message",
                                  "mediaUrl"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "http_post_request"
                                  ]
                                },
                                "url": {
                                  "type": "string"
                                },
                                "headers": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": {
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "bodyTemplate": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "url"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "url",
                                  "headers",
                                  "bodyTemplate"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "attio_task"
                                  ]
                                },
                                "content": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "assigneeMemberIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "onMissingAssignee": {
                                  "type": "string",
                                  "enum": [
                                    "skip",
                                    "fail"
                                  ]
                                },
                                "deadlineOffsetDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personLink": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "sourceVariable": {
                                      "type": "string"
                                    },
                                    "matchBy": {
                                      "type": "string",
                                      "enum": [
                                        "email",
                                        "domain",
                                        "record_id"
                                      ]
                                    },
                                    "createIfMissing": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "sourceVariable",
                                    "matchBy",
                                    "createIfMissing"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "enabled",
                                      "sourceVariable",
                                      "matchBy",
                                      "createIfMissing"
                                    ]
                                  }
                                },
                                "companyLink": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "sourceVariable": {
                                      "type": "string"
                                    },
                                    "matchBy": {
                                      "type": "string",
                                      "enum": [
                                        "email",
                                        "domain",
                                        "record_id"
                                      ]
                                    },
                                    "createIfMissing": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "sourceVariable",
                                    "matchBy",
                                    "createIfMissing"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "enabled",
                                      "sourceVariable",
                                      "matchBy",
                                      "createIfMissing"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "content",
                                  "assigneeMemberIds",
                                  "onMissingAssignee",
                                  "deadlineOffsetDays",
                                  "personLink",
                                  "companyLink"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "heyreach_campaign"
                                  ]
                                },
                                "connectionId": {
                                  "type": "string"
                                },
                                "campaignId": {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                "campaignName": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "linkedInAccountId": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 1
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "campaignId"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "connectionId",
                                  "campaignId",
                                  "campaignName",
                                  "linkedInAccountId"
                                ]
                              }
                            }
                          ]
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "patternProperties": {
                        "^(?!(?:id|content|enabled)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "content",
                          "enabled"
                        ]
                      }
                    },
                    "maxItems": 26
                  }
                },
                "required": [
                  "type"
                ],
                "patternProperties": {
                  "^(?!(?:id|type|afterStepId|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|variants)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "type",
                    "afterStepId",
                    "waitFor",
                    "runMode",
                    "rearmAfterDays",
                    "bodyFormat",
                    "previousThreadSelection",
                    "enabled",
                    "variants"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "update_sequence_step"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "waitFor": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "runMode": {
                    "type": "string",
                    "enum": [
                      "once",
                      "after_days",
                      "every_pass"
                    ]
                  },
                  "rearmAfterDays": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyFormat": {
                    "type": "string",
                    "enum": [
                      "inherit",
                      "plain",
                      "html"
                    ]
                  },
                  "previousThreadSelection": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "all",
                              "latest",
                              "custom"
                            ]
                          },
                          "stepIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            }
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "patternProperties": {
                          "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "mode",
                            "stepIds"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:expectedRevision|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "expectedRevision",
                    "waitFor",
                    "runMode",
                    "rearmAfterDays",
                    "bodyFormat",
                    "previousThreadSelection",
                    "enabled"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "stepId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "move_sequence_step"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "afterStepId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "afterStepId"
                ],
                "patternProperties": {
                  "^(?!(?:afterStepId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "afterStepId"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "stepId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "delete_sequence_step"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "stepId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "create_variant"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "stepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "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"
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "email_content"
                            ]
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "body": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "subject",
                            "body"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "manual_review"
                            ]
                          },
                          "stepType": {
                            "type": "string",
                            "enum": [
                              "notify_and_continue",
                              "notify_and_wait"
                            ]
                          },
                          "notificationMessage": {
                            "type": "string",
                            "maxLength": 10000
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "stepType",
                            "notificationMessage"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "linked_in_connection_request"
                            ]
                          },
                          "message": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "message"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "linked_in_in_mail"
                            ]
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "body": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "subject",
                            "body"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "phone_call"
                            ]
                          },
                          "script": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|script)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "script"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text_message"
                            ]
                          },
                          "message": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1600
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "mediaUrl": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "message",
                            "mediaUrl"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "http_post_request"
                            ]
                          },
                          "url": {
                            "type": "string"
                          },
                          "headers": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "bodyTemplate": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "url"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "url",
                            "headers",
                            "bodyTemplate"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "attio_task"
                            ]
                          },
                          "content": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "assigneeMemberIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "onMissingAssignee": {
                            "type": "string",
                            "enum": [
                              "skip",
                              "fail"
                            ]
                          },
                          "deadlineOffsetDays": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "personLink": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "sourceVariable": {
                                "type": "string"
                              },
                              "matchBy": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "domain",
                                  "record_id"
                                ]
                              },
                              "createIfMissing": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "sourceVariable",
                              "matchBy",
                              "createIfMissing"
                            ],
                            "patternProperties": {
                              "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ]
                            }
                          },
                          "companyLink": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "sourceVariable": {
                                "type": "string"
                              },
                              "matchBy": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "domain",
                                  "record_id"
                                ]
                              },
                              "createIfMissing": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "sourceVariable",
                              "matchBy",
                              "createIfMissing"
                            ],
                            "patternProperties": {
                              "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ]
                            }
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "content",
                            "assigneeMemberIds",
                            "onMissingAssignee",
                            "deadlineOffsetDays",
                            "personLink",
                            "companyLink"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "heyreach_campaign"
                            ]
                          },
                          "connectionId": {
                            "type": "string"
                          },
                          "campaignId": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "campaignName": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 500
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "linkedInAccountId": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "campaignId"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "connectionId",
                            "campaignId",
                            "campaignName",
                            "linkedInAccountId"
                          ]
                        }
                      }
                    ]
                  },
                  "copyFromVariantId": {
                    "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"
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:id|content|copyFromVariantId|enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "content",
                    "copyFromVariantId",
                    "enabled"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "stepId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "stepId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "update_variant"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "variantId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "email_content"
                            ]
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "body": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "subject",
                            "body"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "manual_review"
                            ]
                          },
                          "stepType": {
                            "type": "string",
                            "enum": [
                              "notify_and_continue",
                              "notify_and_wait"
                            ]
                          },
                          "notificationMessage": {
                            "type": "string",
                            "maxLength": 10000
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "stepType",
                            "notificationMessage"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "linked_in_connection_request"
                            ]
                          },
                          "message": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "message"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "linked_in_in_mail"
                            ]
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "body": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "subject",
                            "body"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "phone_call"
                            ]
                          },
                          "script": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "lexical"
                                        ]
                                      },
                                      "state": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/$defs/Union_"
                                        }
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "state"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|state)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "state"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "html"
                                        ]
                                      },
                                      "html": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "html"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|html)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "html"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 256000
                                      }
                                    },
                                    "required": [
                                      "format",
                                      "text"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:format|text)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "format",
                                        "text"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|script)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "script"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text_message"
                            ]
                          },
                          "message": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1600
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "mediaUrl": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "message",
                            "mediaUrl"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "http_post_request"
                            ]
                          },
                          "url": {
                            "type": "string"
                          },
                          "headers": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "bodyTemplate": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "url"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "url",
                            "headers",
                            "bodyTemplate"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "attio_task"
                            ]
                          },
                          "content": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "assigneeMemberIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "onMissingAssignee": {
                            "type": "string",
                            "enum": [
                              "skip",
                              "fail"
                            ]
                          },
                          "deadlineOffsetDays": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "personLink": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "sourceVariable": {
                                "type": "string"
                              },
                              "matchBy": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "domain",
                                  "record_id"
                                ]
                              },
                              "createIfMissing": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "sourceVariable",
                              "matchBy",
                              "createIfMissing"
                            ],
                            "patternProperties": {
                              "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ]
                            }
                          },
                          "companyLink": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "sourceVariable": {
                                "type": "string"
                              },
                              "matchBy": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "domain",
                                  "record_id"
                                ]
                              },
                              "createIfMissing": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "sourceVariable",
                              "matchBy",
                              "createIfMissing"
                            ],
                            "patternProperties": {
                              "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ]
                            }
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "content",
                            "assigneeMemberIds",
                            "onMissingAssignee",
                            "deadlineOffsetDays",
                            "personLink",
                            "companyLink"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "heyreach_campaign"
                            ]
                          },
                          "connectionId": {
                            "type": "string"
                          },
                          "campaignId": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "campaignName": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 500
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "linkedInAccountId": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "campaignId"
                        ],
                        "patternProperties": {
                          "^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "type",
                            "connectionId",
                            "campaignId",
                            "campaignName",
                            "linkedInAccountId"
                          ]
                        }
                      }
                    ]
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:expectedRevision|content|enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "expectedRevision",
                    "content",
                    "enabled"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "variantId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|variantId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "variantId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "delete_variant"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "variantId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "variantId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|variantId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "variantId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "replace_sequence"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "expectedSequenceRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "initialDelayMinutes": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 43200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "stepId": {
                          "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"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "email_content",
                            "manual_review",
                            "linked_in_connection_request",
                            "linked_in_in_mail",
                            "phone_call",
                            "text_message",
                            "http_post_request",
                            "attio_task",
                            "heyreach_campaign"
                          ]
                        },
                        "waitFor": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "runMode": {
                          "type": "string",
                          "enum": [
                            "once",
                            "after_days",
                            "every_pass"
                          ]
                        },
                        "rearmAfterDays": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 365
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "bodyFormat": {
                          "type": "string",
                          "enum": [
                            "inherit",
                            "plain",
                            "html"
                          ]
                        },
                        "previousThreadSelection": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "all",
                                    "latest",
                                    "custom"
                                  ]
                                },
                                "stepIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  }
                                }
                              },
                              "required": [
                                "mode"
                              ],
                              "patternProperties": {
                                "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "mode",
                                  "stepIds"
                                ]
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "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"
                                  }
                                ]
                              },
                              "content": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "email_content"
                                        ]
                                      },
                                      "subject": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "body": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "html"
                                                    ]
                                                  },
                                                  "html": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "html"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|html)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "html"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "subject",
                                        "body"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "manual_review"
                                        ]
                                      },
                                      "stepType": {
                                        "type": "string",
                                        "enum": [
                                          "notify_and_continue",
                                          "notify_and_wait"
                                        ]
                                      },
                                      "notificationMessage": {
                                        "type": "string",
                                        "maxLength": 10000
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "stepType",
                                        "notificationMessage"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "linked_in_connection_request"
                                        ]
                                      },
                                      "message": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "html"
                                                    ]
                                                  },
                                                  "html": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "html"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|html)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "html"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|message)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "message"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "linked_in_in_mail"
                                        ]
                                      },
                                      "subject": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "body": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "html"
                                                    ]
                                                  },
                                                  "html": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "html"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|html)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "html"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|subject|body)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "subject",
                                        "body"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "phone_call"
                                        ]
                                      },
                                      "script": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "lexical"
                                                    ]
                                                  },
                                                  "state": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "state"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|state)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "state"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "html"
                                                    ]
                                                  },
                                                  "html": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "html"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|html)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "html"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "format": {
                                                    "type": "string",
                                                    "enum": [
                                                      "text"
                                                    ]
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 256000
                                                  }
                                                },
                                                "required": [
                                                  "format",
                                                  "text"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:format|text)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "format",
                                                    "text"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|script)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "script"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "text_message"
                                        ]
                                      },
                                      "message": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 1600
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "mediaUrl": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "message",
                                        "mediaUrl"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "http_post_request"
                                        ]
                                      },
                                      "url": {
                                        "type": "string"
                                      },
                                      "headers": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "bodyTemplate": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "url"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "url",
                                        "headers",
                                        "bodyTemplate"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "attio_task"
                                        ]
                                      },
                                      "content": {
                                        "type": "string",
                                        "maxLength": 10000
                                      },
                                      "assigneeMemberIds": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "onMissingAssignee": {
                                        "type": "string",
                                        "enum": [
                                          "skip",
                                          "fail"
                                        ]
                                      },
                                      "deadlineOffsetDays": {
                                        "anyOf": [
                                          {
                                            "type": "integer"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "personLink": {
                                        "type": "object",
                                        "properties": {
                                          "enabled": {
                                            "type": "boolean"
                                          },
                                          "sourceVariable": {
                                            "type": "string"
                                          },
                                          "matchBy": {
                                            "type": "string",
                                            "enum": [
                                              "email",
                                              "domain",
                                              "record_id"
                                            ]
                                          },
                                          "createIfMissing": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "enabled",
                                          "sourceVariable",
                                          "matchBy",
                                          "createIfMissing"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "enabled",
                                            "sourceVariable",
                                            "matchBy",
                                            "createIfMissing"
                                          ]
                                        }
                                      },
                                      "companyLink": {
                                        "type": "object",
                                        "properties": {
                                          "enabled": {
                                            "type": "boolean"
                                          },
                                          "sourceVariable": {
                                            "type": "string"
                                          },
                                          "matchBy": {
                                            "type": "string",
                                            "enum": [
                                              "email",
                                              "domain",
                                              "record_id"
                                            ]
                                          },
                                          "createIfMissing": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "enabled",
                                          "sourceVariable",
                                          "matchBy",
                                          "createIfMissing"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "enabled",
                                            "sourceVariable",
                                            "matchBy",
                                            "createIfMissing"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "content",
                                        "assigneeMemberIds",
                                        "onMissingAssignee",
                                        "deadlineOffsetDays",
                                        "personLink",
                                        "companyLink"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "heyreach_campaign"
                                        ]
                                      },
                                      "connectionId": {
                                        "type": "string"
                                      },
                                      "campaignId": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "campaignName": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 500
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "linkedInAccountId": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "campaignId"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "type",
                                        "connectionId",
                                        "campaignId",
                                        "campaignName",
                                        "linkedInAccountId"
                                      ]
                                    }
                                  }
                                ]
                              },
                              "enabled": {
                                "type": "boolean"
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:id|content|enabled)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "content",
                                "enabled"
                              ]
                            }
                          },
                          "maxItems": 26
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "patternProperties": {
                        "^(?!(?:stepId|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|variants)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "stepId",
                          "type",
                          "waitFor",
                          "runMode",
                          "rearmAfterDays",
                          "bodyFormat",
                          "previousThreadSelection",
                          "enabled",
                          "variants"
                        ]
                      }
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "steps"
                ],
                "patternProperties": {
                  "^(?!(?:expectedSequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "expectedSequenceRevision",
                    "initialDelayMinutes",
                    "steps"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "update_sequence"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "initialDelayMinutes": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 43200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "initialDelayMinutes"
                ],
                "patternProperties": {
                  "^(?!(?:initialDelayMinutes)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "initialDelayMinutes"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "create_sequence"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "initialDelayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 525600
                  },
                  "stopOtherCampaigns": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "inboxIds"
                ],
                "patternProperties": {
                  "^(?!(?:name|inboxIds|initialDelayMinutes|stopOtherCampaigns)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "inboxIds",
                    "initialDelayMinutes",
                    "stopOtherCampaigns"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "set_sequence_status"
                ]
              },
              "sequenceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "paused"
                    ]
                  }
                },
                "required": [
                  "status"
                ],
                "patternProperties": {
                  "^(?!(?:status)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "sequenceId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|sequenceId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "sequenceId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "create_subsequence"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "trigger": {
                    "type": "object",
                    "properties": {
                      "conditionType": {
                        "type": "string",
                        "enum": [
                          "reply_any",
                          "reply_genuine",
                          "reply_label",
                          "reply_text"
                        ]
                      },
                      "replyLabelIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        }
                      },
                      "textContains": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "textNotContains": {
                        "$ref": "#/$defs/NonEmptyString"
                      }
                    },
                    "required": [
                      "conditionType"
                    ],
                    "patternProperties": {
                      "^(?!(?:conditionType|replyLabelIds|textContains|textNotContains)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "conditionType",
                        "replyLabelIds",
                        "textContains",
                        "textNotContains"
                      ]
                    }
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|trigger)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "trigger"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "save_subsequence_triggers"
                ]
              },
              "subsequenceCampaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "triggers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "conditionType": {
                          "type": "string",
                          "enum": [
                            "reply_any",
                            "reply_genuine",
                            "reply_label",
                            "reply_text"
                          ]
                        },
                        "replyLabelIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          }
                        },
                        "textContains": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "textNotContains": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "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"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "conditionType"
                      ],
                      "patternProperties": {
                        "^(?!(?:conditionType|replyLabelIds|textContains|textNotContains|id|enabled)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "conditionType",
                          "replyLabelIds",
                          "textContains",
                          "textNotContains",
                          "id",
                          "enabled"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "triggers"
                ],
                "patternProperties": {
                  "^(?!(?:triggers)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "triggers"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "subsequenceCampaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|subsequenceCampaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "subsequenceCampaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "enrich_heyreach_email",
      "description": "Find a LinkedIn profile's email address with HeyReach's paid enrichment: start a lookup, then poll its job until it completes.\n\nUse when a lead has a LinkedIn profile but no email and the person wants one found. Start once, then poll the returned job id.\n\nEach lookup spends the customer's HeyReach enrichment credit and is refused on a frozen subscription. The server deduplicates retries of the same lookup. `EMAIL_NOT_FOUND` is a finished answer, not a failure to retry.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "start"
                ]
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|profileUrl)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "profileUrl"
              ]
            }
          },
          {
            "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": [
                  "status"
                ]
              },
              "jobId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "jobId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|jobId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "jobId"
              ]
            }
          }
        ],
        "$defs": {
          "LinkedInProfileUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "HeyReachEnrichmentStarted": {
            "type": "object",
            "properties": {
              "jobId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "jobId"
            ],
            "patternProperties": {
              "^(?!(?:jobId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "jobId"
                  ]
                }
              ]
            }
          },
          "HeyReachText": {
            "type": "string",
            "minLength": 0,
            "maxLength": 10000
          },
          "HeyReachEnrichmentJob": {
            "type": "object",
            "properties": {
              "jobId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "status": {
                "type": "string",
                "enum": [
                  "PENDING",
                  "IN_PROGRESS",
                  "COMPLETED",
                  "FAILED"
                ]
              },
              "data": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "ENRICHED",
                          "EMAIL_NOT_FOUND",
                          "CANCELLED",
                          "FAILED"
                        ]
                      },
                      "message": {
                        "$ref": "#/$defs/HeyReachText"
                      },
                      "emailAddress": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HeyReachText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "memberId": {
                        "$ref": "#/$defs/HeyReachText"
                      },
                      "profileUrl": {
                        "$ref": "#/$defs/HeyReachText"
                      }
                    },
                    "required": [
                      "status",
                      "message",
                      "emailAddress",
                      "memberId",
                      "profileUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:status|message|emailAddress|memberId|profileUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "status",
                        "message",
                        "emailAddress",
                        "memberId",
                        "profileUrl"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "jobId",
              "status",
              "data"
            ],
            "patternProperties": {
              "^(?!(?:jobId|status|data)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "jobId",
                "status",
                "data"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachEnrichmentStarted"
                  },
                  {
                    "$ref": "#/$defs/HeyReachEnrichmentJob"
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HeyReachEnrichmentStarted"
                      },
                      {
                        "$ref": "#/$defs/HeyReachEnrichmentJob"
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "enrich_heyreach_email"
      },
      "scopes": [
        "integration:update",
        "integration:read"
      ],
      "bundles": [
        "heyreach"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "heyreachInsights.enrichEmail",
        "heyreachInsights.enrichStatus"
      ],
      "invocations": [
        {
          "operationId": "heyreachInsights.enrichEmail",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/enrichment/email",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachInsights.enrichStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/enrichment/:jobId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "start"
                ]
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|profileUrl)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "profileUrl"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "status"
                ]
              },
              "jobId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "jobId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|jobId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "jobId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "LinkedInProfileUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "enroll_campaign_audience",
      "description": "Enroll and curate a campaign's audience: add contacts, run CSV / existing-lead imports with dedupe options, remove or resume contacts, apply validated timezones, move contacts into a subsequence, and enroll or unenroll unibox threads in reusable sequences.\n\nUse to change who a campaign or sequence will send to. Imports dedupe across campaigns per the caller's chosen mode and never overwrite a lead's identity.\n\nEnrollment paths are paid actions — they start real sends and respect the subscription gate. Do not use this to bypass the gate, and report per-contact skip reasons rather than retrying them away.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "add"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contacts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "emailAddress": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "emails": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "maxItems": 100
                        },
                        "phones": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "maxItems": 100
                        },
                        "ladder": {
                          "type": "string"
                        },
                        "rank": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "emailAddress"
                      ],
                      "patternProperties": {
                        "^(?!(?:emailAddress|emails|phones|ladder|rank)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "emailAddress",
                          "emails",
                          "phones",
                          "ladder",
                          "rank"
                        ]
                      }
                    },
                    "maxItems": 10000
                  }
                },
                "required": [
                  "contacts"
                ],
                "patternProperties": {
                  "^(?!(?:contacts)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "contacts"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "import_csv"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "acquisitionSource": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "email": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "firstName": {
                          "type": "string"
                        },
                        "lastName": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "companyName": {
                          "type": "string"
                        },
                        "jobTitle": {
                          "type": "string"
                        },
                        "companyWebsiteUrl": {
                          "type": "string"
                        },
                        "personalLinkedInUrl": {
                          "type": "string"
                        },
                        "companyLinkedInUrl": {
                          "type": "string"
                        },
                        "timezone": {
                          "type": "string"
                        },
                        "customFields": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "email",
                        "firstName",
                        "lastName",
                        "customFields"
                      ],
                      "patternProperties": {
                        "^(?!(?:acquisitionSource|email|firstName|lastName|city|state|country|companyName|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|timezone|customFields)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "acquisitionSource",
                          "email",
                          "firstName",
                          "lastName",
                          "city",
                          "state",
                          "country",
                          "companyName",
                          "jobTitle",
                          "companyWebsiteUrl",
                          "personalLinkedInUrl",
                          "companyLinkedInUrl",
                          "timezone",
                          "customFields"
                        ]
                      }
                    },
                    "maxItems": 10000
                  },
                  {
                    "type": "object",
                    "properties": {
                      "contacts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "acquisitionSource": {
                              "type": "string",
                              "maxLength": 256
                            },
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "firstName": {
                              "type": "string"
                            },
                            "lastName": {
                              "type": "string"
                            },
                            "city": {
                              "type": "string"
                            },
                            "state": {
                              "type": "string"
                            },
                            "country": {
                              "type": "string"
                            },
                            "companyName": {
                              "type": "string"
                            },
                            "jobTitle": {
                              "type": "string"
                            },
                            "companyWebsiteUrl": {
                              "type": "string"
                            },
                            "personalLinkedInUrl": {
                              "type": "string"
                            },
                            "companyLinkedInUrl": {
                              "type": "string"
                            },
                            "timezone": {
                              "type": "string"
                            },
                            "customFields": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "email",
                            "firstName",
                            "lastName",
                            "customFields"
                          ],
                          "patternProperties": {
                            "^(?!(?:acquisitionSource|email|firstName|lastName|city|state|country|companyName|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|timezone|customFields)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "acquisitionSource",
                              "email",
                              "firstName",
                              "lastName",
                              "city",
                              "state",
                              "country",
                              "companyName",
                              "jobTitle",
                              "companyWebsiteUrl",
                              "personalLinkedInUrl",
                              "companyLinkedInUrl",
                              "timezone",
                              "customFields"
                            ]
                          }
                        },
                        "maxItems": 10000
                      },
                      "options": {
                        "type": "object",
                        "properties": {
                          "skipOtherCampaigns": {
                            "type": "string",
                            "enum": [
                              "none",
                              "all",
                              "active_paused",
                              "active"
                            ]
                          },
                          "updateExistingContacts": {
                            "type": "boolean"
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:skipOtherCampaigns|updateExistingContacts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "skipOtherCampaigns",
                            "updateExistingContacts"
                          ]
                        }
                      }
                    },
                    "required": [
                      "contacts"
                    ],
                    "patternProperties": {
                      "^(?!(?:contacts|options)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "contacts",
                        "options"
                      ]
                    }
                  }
                ]
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "import_leads"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "leadListIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  },
                  "leadIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 1000
                  },
                  "options": {
                    "type": "object",
                    "properties": {
                      "skipOtherCampaigns": {
                        "type": "string",
                        "enum": [
                          "none",
                          "all",
                          "active_paused",
                          "active"
                        ]
                      },
                      "updateExistingContacts": {
                        "type": "boolean"
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:skipOtherCampaigns|updateExistingContacts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "skipOtherCampaigns",
                        "updateExistingContacts"
                      ]
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:leadListIds|leadIds|options)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "leadListIds",
                    "leadIds",
                    "options"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "remove"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 5000
                  },
                  "all": {
                    "type": "boolean"
                  },
                  "search": {
                    "type": "string"
                  }
                },
                "patternProperties": {
                  "^(?!(?:contactIds|all|search)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactIds",
                    "all",
                    "search"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "resume"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 5000
                  }
                },
                "required": [
                  "contactIds"
                ],
                "patternProperties": {
                  "^(?!(?:contactIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "contactIds"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "apply_timezones"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "updates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "contactId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "timezone": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "contactId",
                        "timezone"
                      ],
                      "patternProperties": {
                        "^(?!(?:contactId|timezone)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "contactId",
                          "timezone"
                        ]
                      }
                    },
                    "maxItems": 5000
                  }
                },
                "required": [
                  "updates"
                ],
                "patternProperties": {
                  "^(?!(?:updates)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "updates"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "move_to_subsequence"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "subsequenceCampaignId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 1000
                  },
                  "sourceThreadId": {
                    "type": "string"
                  }
                },
                "required": [
                  "subsequenceCampaignId",
                  "contactIds"
                ],
                "patternProperties": {
                  "^(?!(?:subsequenceCampaignId|contactIds|sourceThreadId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "subsequenceCampaignId",
                    "contactIds",
                    "sourceThreadId"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "enroll_thread"
                ]
              },
              "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"
              },
              "sequenceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "threadId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "inboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "stopOtherCampaigns": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "threadId"
                ],
                "patternProperties": {
                  "^(?!(?:threadId|inboxId|stopOtherCampaigns)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "threadId",
                    "inboxId",
                    "stopOtherCampaigns"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "sequenceId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|sequenceId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "sequenceId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "unenroll"
                ]
              },
              "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"
              },
              "sequenceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "enrollmentId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "enrollmentId"
                ],
                "patternProperties": {
                  "^(?!(?:enrollmentId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "enrollmentId"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "sequenceId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|sequenceId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "sequenceId",
                "payload"
              ]
            }
          }
        ],
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "imported": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "skipped": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "success",
                      "imported",
                      "skipped"
                    ],
                    "patternProperties": {
                      "^(?!(?:success|imported|skipped)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "success",
                        "imported",
                        "skipped"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "imported": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "updated": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "skipped": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "duplicates": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "success",
                      "imported",
                      "updated",
                      "skipped",
                      "duplicates"
                    ],
                    "patternProperties": {
                      "^(?!(?:success|imported|updated|skipped|duplicates)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "success",
                        "imported",
                        "updated",
                        "skipped",
                        "duplicates"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "imported": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "updated": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "skipped": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "success",
                      "imported",
                      "updated",
                      "skipped"
                    ],
                    "patternProperties": {
                      "^(?!(?:success|imported|updated|skipped)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "success",
                        "imported",
                        "updated",
                        "skipped"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "removed": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "success",
                      "removed"
                    ],
                    "patternProperties": {
                      "^(?!(?:success|removed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "success",
                        "removed"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "resumed": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "resumed"
                    ],
                    "patternProperties": {
                      "^(?!(?:resumed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "resumed"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "updated": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "skipped": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "success",
                      "updated",
                      "skipped"
                    ],
                    "patternProperties": {
                      "^(?!(?:success|updated|skipped)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "success",
                        "updated",
                        "skipped"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "moved": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "skipped": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "contactId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "reason": {
                              "type": "string",
                              "enum": [
                                "not_movable",
                                "already_enrolled",
                                "email_in_subsequence"
                              ]
                            }
                          },
                          "required": [
                            "contactId",
                            "reason"
                          ],
                          "patternProperties": {
                            "^(?!(?:contactId|reason)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "contactId",
                              "reason"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "moved",
                      "skipped"
                    ],
                    "patternProperties": {
                      "^(?!(?:moved|skipped)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "moved",
                        "skipped"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enrolled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "childContactId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "enrollmentId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "holdUntil": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "pausedContactIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        }
                      }
                    },
                    "required": [
                      "enrolled",
                      "childContactId",
                      "enrollmentId",
                      "holdUntil",
                      "pausedContactIds"
                    ],
                    "patternProperties": {
                      "^(?!(?:enrolled|childContactId|enrollmentId|holdUntil|pausedContactIds)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enrolled",
                        "childContactId",
                        "enrollmentId",
                        "holdUntil",
                        "pausedContactIds"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "unenrolled": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "unenrolled"
                    ],
                    "patternProperties": {
                      "^(?!(?:unenrolled)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "unenrolled"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "imported": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "skipped": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "success",
                          "imported",
                          "skipped"
                        ],
                        "patternProperties": {
                          "^(?!(?:success|imported|skipped)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "success",
                            "imported",
                            "skipped"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "imported": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "updated": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "skipped": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "duplicates": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "success",
                          "imported",
                          "updated",
                          "skipped",
                          "duplicates"
                        ],
                        "patternProperties": {
                          "^(?!(?:success|imported|updated|skipped|duplicates)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "success",
                            "imported",
                            "updated",
                            "skipped",
                            "duplicates"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "imported": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "updated": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "skipped": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "success",
                          "imported",
                          "updated",
                          "skipped"
                        ],
                        "patternProperties": {
                          "^(?!(?:success|imported|updated|skipped)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "success",
                            "imported",
                            "updated",
                            "skipped"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "removed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "success",
                          "removed"
                        ],
                        "patternProperties": {
                          "^(?!(?:success|removed)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "success",
                            "removed"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "resumed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "resumed"
                        ],
                        "patternProperties": {
                          "^(?!(?:resumed)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "resumed"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "updated": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "skipped": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "success",
                          "updated",
                          "skipped"
                        ],
                        "patternProperties": {
                          "^(?!(?:success|updated|skipped)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "success",
                            "updated",
                            "skipped"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "moved": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "skipped": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "contactId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "reason": {
                                  "type": "string",
                                  "enum": [
                                    "not_movable",
                                    "already_enrolled",
                                    "email_in_subsequence"
                                  ]
                                }
                              },
                              "required": [
                                "contactId",
                                "reason"
                              ],
                              "patternProperties": {
                                "^(?!(?:contactId|reason)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "contactId",
                                  "reason"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "moved",
                          "skipped"
                        ],
                        "patternProperties": {
                          "^(?!(?:moved|skipped)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "moved",
                            "skipped"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "enrolled": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "childContactId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "enrollmentId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "holdUntil": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "pausedContactIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            }
                          }
                        },
                        "required": [
                          "enrolled",
                          "childContactId",
                          "enrollmentId",
                          "holdUntil",
                          "pausedContactIds"
                        ],
                        "patternProperties": {
                          "^(?!(?:enrolled|childContactId|enrollmentId|holdUntil|pausedContactIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "enrolled",
                            "childContactId",
                            "enrollmentId",
                            "holdUntil",
                            "pausedContactIds"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "unenrolled": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "unenrolled"
                        ],
                        "patternProperties": {
                          "^(?!(?:unenrolled)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "unenrolled"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "enroll_campaign_audience"
      },
      "scopes": [
        "campaign:update",
        "lead:create",
        "lead:read",
        "lead:update",
        "lead:delete",
        "lead:import",
        "leadList:read",
        "sequence:update",
        "unibox:reply"
      ],
      "bundles": [
        "campaign_audience"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignContacts.add",
        "campaignContacts.importCsv",
        "campaignContacts.importLeads",
        "campaignContacts.remove",
        "campaignContacts.resume",
        "campaignContacts.applyTimezones",
        "campaignContacts.moveToSubsequence",
        "campaignSequences.enrollThread",
        "campaignSequences.unenroll"
      ],
      "invocations": [
        {
          "operationId": "campaignContacts.add",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignContacts.importCsv",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/import",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignContacts.importLeads",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/import-from-list",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignContacts.remove",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/remove",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignContacts.resume",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/resume",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignContacts.applyTimezones",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/apply-timezones",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignContacts.moveToSubsequence",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/move-to-subsequence",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSequences.enrollThread",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/sequences/:sequenceId/enroll-thread",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSequences.unenroll",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/sequences/:sequenceId/unenroll",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "add"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contacts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "emailAddress": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "emails": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "maxItems": 100
                        },
                        "phones": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "maxItems": 100
                        },
                        "ladder": {
                          "type": "string"
                        },
                        "rank": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "emailAddress"
                      ],
                      "patternProperties": {
                        "^(?!(?:emailAddress|emails|phones|ladder|rank)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "emailAddress",
                          "emails",
                          "phones",
                          "ladder",
                          "rank"
                        ]
                      }
                    },
                    "maxItems": 10000
                  }
                },
                "required": [
                  "contacts"
                ],
                "patternProperties": {
                  "^(?!(?:contacts)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "contacts"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "import_csv"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "acquisitionSource": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "email": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "firstName": {
                          "type": "string"
                        },
                        "lastName": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "companyName": {
                          "type": "string"
                        },
                        "jobTitle": {
                          "type": "string"
                        },
                        "companyWebsiteUrl": {
                          "type": "string"
                        },
                        "personalLinkedInUrl": {
                          "type": "string"
                        },
                        "companyLinkedInUrl": {
                          "type": "string"
                        },
                        "timezone": {
                          "type": "string"
                        },
                        "customFields": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "email",
                        "firstName",
                        "lastName",
                        "customFields"
                      ],
                      "patternProperties": {
                        "^(?!(?:acquisitionSource|email|firstName|lastName|city|state|country|companyName|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|timezone|customFields)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "acquisitionSource",
                          "email",
                          "firstName",
                          "lastName",
                          "city",
                          "state",
                          "country",
                          "companyName",
                          "jobTitle",
                          "companyWebsiteUrl",
                          "personalLinkedInUrl",
                          "companyLinkedInUrl",
                          "timezone",
                          "customFields"
                        ]
                      }
                    },
                    "maxItems": 10000
                  },
                  {
                    "type": "object",
                    "properties": {
                      "contacts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "acquisitionSource": {
                              "type": "string",
                              "maxLength": 256
                            },
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "firstName": {
                              "type": "string"
                            },
                            "lastName": {
                              "type": "string"
                            },
                            "city": {
                              "type": "string"
                            },
                            "state": {
                              "type": "string"
                            },
                            "country": {
                              "type": "string"
                            },
                            "companyName": {
                              "type": "string"
                            },
                            "jobTitle": {
                              "type": "string"
                            },
                            "companyWebsiteUrl": {
                              "type": "string"
                            },
                            "personalLinkedInUrl": {
                              "type": "string"
                            },
                            "companyLinkedInUrl": {
                              "type": "string"
                            },
                            "timezone": {
                              "type": "string"
                            },
                            "customFields": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "email",
                            "firstName",
                            "lastName",
                            "customFields"
                          ],
                          "patternProperties": {
                            "^(?!(?:acquisitionSource|email|firstName|lastName|city|state|country|companyName|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|timezone|customFields)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "acquisitionSource",
                              "email",
                              "firstName",
                              "lastName",
                              "city",
                              "state",
                              "country",
                              "companyName",
                              "jobTitle",
                              "companyWebsiteUrl",
                              "personalLinkedInUrl",
                              "companyLinkedInUrl",
                              "timezone",
                              "customFields"
                            ]
                          }
                        },
                        "maxItems": 10000
                      },
                      "options": {
                        "type": "object",
                        "properties": {
                          "skipOtherCampaigns": {
                            "type": "string",
                            "enum": [
                              "none",
                              "all",
                              "active_paused",
                              "active"
                            ]
                          },
                          "updateExistingContacts": {
                            "type": "boolean"
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:skipOtherCampaigns|updateExistingContacts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "skipOtherCampaigns",
                            "updateExistingContacts"
                          ]
                        }
                      }
                    },
                    "required": [
                      "contacts"
                    ],
                    "patternProperties": {
                      "^(?!(?:contacts|options)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "contacts",
                        "options"
                      ]
                    }
                  }
                ]
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "import_leads"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "leadListIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  },
                  "leadIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 1000
                  },
                  "options": {
                    "type": "object",
                    "properties": {
                      "skipOtherCampaigns": {
                        "type": "string",
                        "enum": [
                          "none",
                          "all",
                          "active_paused",
                          "active"
                        ]
                      },
                      "updateExistingContacts": {
                        "type": "boolean"
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:skipOtherCampaigns|updateExistingContacts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "skipOtherCampaigns",
                        "updateExistingContacts"
                      ]
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:leadListIds|leadIds|options)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "leadListIds",
                    "leadIds",
                    "options"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "remove"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 5000
                  },
                  "all": {
                    "type": "boolean"
                  },
                  "search": {
                    "type": "string"
                  }
                },
                "patternProperties": {
                  "^(?!(?:contactIds|all|search)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactIds",
                    "all",
                    "search"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "resume"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 5000
                  }
                },
                "required": [
                  "contactIds"
                ],
                "patternProperties": {
                  "^(?!(?:contactIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "contactIds"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "apply_timezones"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "updates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "contactId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "timezone": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "contactId",
                        "timezone"
                      ],
                      "patternProperties": {
                        "^(?!(?:contactId|timezone)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "contactId",
                          "timezone"
                        ]
                      }
                    },
                    "maxItems": 5000
                  }
                },
                "required": [
                  "updates"
                ],
                "patternProperties": {
                  "^(?!(?:updates)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "updates"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "move_to_subsequence"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "subsequenceCampaignId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 1000
                  },
                  "sourceThreadId": {
                    "type": "string"
                  }
                },
                "required": [
                  "subsequenceCampaignId",
                  "contactIds"
                ],
                "patternProperties": {
                  "^(?!(?:subsequenceCampaignId|contactIds|sourceThreadId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "subsequenceCampaignId",
                    "contactIds",
                    "sourceThreadId"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "enroll_thread"
                ]
              },
              "sequenceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "threadId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "inboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "stopOtherCampaigns": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "threadId"
                ],
                "patternProperties": {
                  "^(?!(?:threadId|inboxId|stopOtherCampaigns)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "threadId",
                    "inboxId",
                    "stopOtherCampaigns"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "sequenceId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|sequenceId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "sequenceId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "unenroll"
                ]
              },
              "sequenceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "enrollmentId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "enrollmentId"
                ],
                "patternProperties": {
                  "^(?!(?:enrollmentId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "enrollmentId"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "sequenceId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|sequenceId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "sequenceId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      }
    },
    {
      "feature": "workflows",
      "name": "enroll_leads_in_workflow",
      "description": "Start a published Lead-enrolled workflow for up to 100 existing leads.\n\nUse to put specific leads through an automation built on the Lead enrolled trigger. The server derives the enrollment identity from the request so retries do not enroll a lead twice.\n\nOnly an active, published workflow with a Lead enrolled trigger accepts leads; the caller must also hold every permission the workflow's blocks use.",
      "inputSchema": {
        "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"
          },
          "workflowId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "leadIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "workspaceId",
          "workflowId",
          "leadIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|workflowId|leadIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "workflowId",
            "leadIds"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "enrolled": {
            "type": "integer",
            "minimum": 1
          },
          "operation": {
            "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"
              },
              "statusUrl": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HttpUrl"
                  },
                  {
                    "$ref": "#/$defs/HttpResourcePath"
                  }
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "queued",
                  "running",
                  "waiting_for_user",
                  "succeeded",
                  "partially_succeeded",
                  "failed",
                  "canceled",
                  "canceling"
                ]
              },
              "acceptedAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "progress": {
                "type": "object",
                "properties": {
                  "completed": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "message": {
                    "$ref": "#/$defs/NonEmptyString"
                  }
                },
                "required": [
                  "completed"
                ],
                "patternProperties": {
                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "completed",
                    "total",
                    "message"
                  ]
                }
              },
              "canCancel": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "statusUrl",
              "state",
              "acceptedAt",
              "canCancel"
            ],
            "patternProperties": {
              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "statusUrl",
                "state",
                "acceptedAt",
                "progress",
                "canCancel"
              ]
            }
          }
        },
        "required": [
          "workflowId",
          "enrolled",
          "operation"
        ],
        "patternProperties": {
          "^(?!(?:workflowId|enrolled|operation)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workflowId",
            "enrolled",
            "operation"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          }
        }
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "workflows.enrollLeads"
      },
      "scopes": [
        "workflow:publish",
        "lead:read",
        "dialer:read"
      ],
      "bundles": [
        "workflow_lead_enrollment"
      ],
      "risk": "costly",
      "idempotency": "required",
      "confirmation": "none",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "workflows.enrollLeads"
      ],
      "invocations": [
        {
          "operationId": "workflows.enrollLeads",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/enrollments",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "workflowId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "leadIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "workspaceId",
          "workflowId",
          "leadIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|workflowId|leadIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "workflowId",
            "leadIds"
          ]
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "export_campaign_delivery",
      "description": "Export filtered monitored-send outcomes with immutable recipient attribution to CSV.\n\nUse when a workspace member needs a portable diagnostic report.\n\nDo not use this for real-time status checks; inspect_campaign_delivery provides paged current results.",
      "inputSchema": {
        "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "pending",
              "delivered",
              "failed",
              "unconfirmed"
            ]
          },
          "cause": {
            "type": "string",
            "enum": [
              "sender",
              "recipient",
              "unclassified"
            ]
          },
          "failureCharacter": {
            "type": "string",
            "enum": [
              "temporary",
              "permanent",
              "unknown"
            ]
          },
          "sequenceDisposition": {
            "type": "string",
            "enum": [
              "held",
              "continued",
              "resumed",
              "stopped"
            ]
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "workspaceId",
          "campaignId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|campaignId|outcome|cause|failureCharacter|sequenceDisposition|offset)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "campaignId",
            "outcome",
            "cause",
            "failureCharacter",
            "sequenceDisposition",
            "offset"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "contentType": {
            "type": "string",
            "enum": [
              "text/csv"
            ]
          },
          "content": {
            "type": "string"
          },
          "recordCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "truncated": {
            "type": "boolean"
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "nextOffset": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "fileName",
          "contentType",
          "content",
          "recordCount",
          "truncated",
          "offset",
          "nextOffset"
        ],
        "patternProperties": {
          "^(?!(?:fileName|contentType|content|recordCount|truncated|offset|nextOffset)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "fileName",
            "contentType",
            "content",
            "recordCount",
            "truncated",
            "offset",
            "nextOffset"
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "export_campaign_delivery"
      },
      "scopes": [
        "analytics:export"
      ],
      "bundles": [
        "campaign_delivery"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignDelivery.export"
      ],
      "invocations": [
        {
          "operationId": "campaignDelivery.export",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/delivery/export",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "pending",
              "delivered",
              "failed",
              "unconfirmed"
            ]
          },
          "cause": {
            "type": "string",
            "enum": [
              "sender",
              "recipient",
              "unclassified"
            ]
          },
          "failureCharacter": {
            "type": "string",
            "enum": [
              "temporary",
              "permanent",
              "unknown"
            ]
          },
          "sequenceDisposition": {
            "type": "string",
            "enum": [
              "held",
              "continued",
              "resumed",
              "stopped"
            ]
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "workspaceId",
          "campaignId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|campaignId|outcome|cause|failureCharacter|sequenceDisposition|offset)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "campaignId",
            "outcome",
            "cause",
            "failureCharacter",
            "sequenceDisposition",
            "offset"
          ]
        }
      }
    },
    {
      "feature": "content-support",
      "name": "finalize_support_attachment",
      "description": "Verify an uploaded object against its signed declaration and issue the download capability.\n\nUse after PUT-ing bytes to the upload URL, before referencing the attachment in a case.\n\nAn expired or foreign upload token cannot finalize; open a fresh upload instead.",
      "inputSchema": {
        "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"
          },
          "uploadToken": {
            "$ref": "#/$defs/SupportCapabilityToken"
          }
        },
        "required": [
          "workspaceId",
          "uploadToken"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|uploadToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "uploadToken"
          ]
        },
        "$defs": {
          "SupportCapabilityToken": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "downloadToken": {
            "$ref": "#/$defs/SupportCapabilityToken"
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "downloadToken",
          "fileName",
          "expiresAt"
        ],
        "patternProperties": {
          "^(?!(?:downloadToken|fileName|expiresAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "downloadToken",
            "fileName",
            "expiresAt"
          ]
        },
        "$defs": {
          "SupportCapabilityToken": {
            "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "finalize_support_attachment"
      },
      "scopes": [
        "support:create"
      ],
      "bundles": [
        "support"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "support.finalizeAttachment"
      ],
      "invocations": [
        {
          "operationId": "support.finalizeAttachment",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/support/attachments/finalize",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "uploadToken": {
            "$ref": "#/$defs/SupportCapabilityToken"
          }
        },
        "required": [
          "workspaceId",
          "uploadToken"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|uploadToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "uploadToken"
          ]
        },
        "$defs": {
          "SupportCapabilityToken": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "get_attio_status",
      "description": "Report the workspace's Attio connection status and granted scopes.\n\nUse to poll after connect_attio or to check whether outbound sync scopes are granted.\n\nThe result carries no token material; do not look for credentials here.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "attio",
              "heyreach",
              "plusvibe",
              "getleads"
            ]
          },
          "connection": {
            "anyOf": [
              {
                "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"
                  },
                  "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"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "attio",
                      "heyreach",
                      "plusvibe",
                      "getleads"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "connected",
                      "needs_reauthorization",
                      "disabled",
                      "disconnected"
                    ]
                  },
                  "providerWorkspaceId": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ProviderId"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "providerWorkspaceName": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "providerWorkspaceSlug": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "grantedScopes": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/NonEmptyString"
                    }
                  },
                  "webhookId": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ProviderId"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "credentialRefId": {
                    "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"
                      }
                    ]
                  },
                  "connectedAt": {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  "tokenExpiresAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "disconnectedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "workspaceId",
                  "provider",
                  "status",
                  "providerWorkspaceId",
                  "providerWorkspaceName",
                  "providerWorkspaceSlug",
                  "grantedScopes",
                  "webhookId",
                  "credentialRefId",
                  "connectedAt",
                  "tokenExpiresAt",
                  "disconnectedAt"
                ],
                "patternProperties": {
                  "^(?!(?:id|workspaceId|provider|status|providerWorkspaceId|providerWorkspaceName|providerWorkspaceSlug|grantedScopes|webhookId|credentialRefId|connectedAt|tokenExpiresAt|disconnectedAt)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "workspaceId",
                    "provider",
                    "status",
                    "providerWorkspaceId",
                    "providerWorkspaceName",
                    "providerWorkspaceSlug",
                    "grantedScopes",
                    "webhookId",
                    "credentialRefId",
                    "connectedAt",
                    "tokenExpiresAt",
                    "disconnectedAt"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "provider",
          "connection"
        ],
        "patternProperties": {
          "^(?!(?:provider|connection)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "provider",
            "connection"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_attio_status"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "integrations"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "attio.getStatus"
      ],
      "invocations": [
        {
          "operationId": "attio.getStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "booking",
      "name": "get_booking_availability",
      "description": "Read the workspace's calendar availability as up to five free slots plus insert-ready reply text.\n\nUse when drafting a reply that should propose meeting times; check `configured` first.\n\nDo not use to book or hold a time — this only reads free slots, and the booking link remains the source of truth.",
      "inputSchema": {
        "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": [
              "status",
              "list"
            ]
          },
          "timezone": {
            "$ref": "#/$defs/IanaTimeZone"
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|timezone|count)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "timezone",
            "count"
          ]
        },
        "$defs": {
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "configured": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          }
                        },
                        "required": [
                          "configured"
                        ],
                        "patternProperties": {
                          "^(?!(?:configured)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "configured"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "configured": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "calendly",
                              "cal_com"
                            ]
                          },
                          "eventTypeName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "configured",
                          "provider",
                          "eventTypeName"
                        ],
                        "patternProperties": {
                          "^(?!(?:configured|provider|eventTypeName)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "configured",
                            "provider",
                            "eventTypeName"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "enum": [
                          "calendly",
                          "cal_com"
                        ]
                      },
                      "eventTypeName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "timezone": {
                        "$ref": "#/$defs/IanaTimeZone"
                      },
                      "slots": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "startIso": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "formatted": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "required": [
                            "startIso",
                            "formatted"
                          ],
                          "patternProperties": {
                            "^(?!(?:startIso|formatted)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "startIso",
                              "formatted"
                            ]
                          }
                        },
                        "maxItems": 5
                      },
                      "formattedText": {
                        "type": "string",
                        "maxLength": 1024
                      },
                      "freshness": {
                        "type": "object",
                        "properties": {
                          "source": {
                            "type": "string",
                            "enum": [
                              "cache",
                              "provider"
                            ]
                          },
                          "fetchedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "source",
                          "fetchedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:source|fetchedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "source",
                            "fetchedAt"
                          ]
                        }
                      }
                    },
                    "required": [
                      "provider",
                      "eventTypeName",
                      "timezone",
                      "slots",
                      "formattedText",
                      "freshness"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|eventTypeName|timezone|slots|formattedText|freshness)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "eventTypeName",
                        "timezone",
                        "slots",
                        "formattedText",
                        "freshness"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "configured": {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              }
                            },
                            "required": [
                              "configured"
                            ],
                            "patternProperties": {
                              "^(?!(?:configured)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "configured"
                                  ]
                                }
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "configured": {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              "provider": {
                                "type": "string",
                                "enum": [
                                  "calendly",
                                  "cal_com"
                                ]
                              },
                              "eventTypeName": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "configured",
                              "provider",
                              "eventTypeName"
                            ],
                            "patternProperties": {
                              "^(?!(?:configured|provider|eventTypeName)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "configured",
                                "provider",
                                "eventTypeName"
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "enum": [
                              "calendly",
                              "cal_com"
                            ]
                          },
                          "eventTypeName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "timezone": {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          "slots": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "startIso": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "formatted": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "startIso",
                                "formatted"
                              ],
                              "patternProperties": {
                                "^(?!(?:startIso|formatted)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "startIso",
                                  "formatted"
                                ]
                              }
                            },
                            "maxItems": 5
                          },
                          "formattedText": {
                            "type": "string",
                            "maxLength": 1024
                          },
                          "freshness": {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "cache",
                                  "provider"
                                ]
                              },
                              "fetchedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "source",
                              "fetchedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:source|fetchedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "source",
                                "fetchedAt"
                              ]
                            }
                          }
                        },
                        "required": [
                          "provider",
                          "eventTypeName",
                          "timezone",
                          "slots",
                          "formattedText",
                          "freshness"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|eventTypeName|timezone|slots|formattedText|freshness)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "eventTypeName",
                            "timezone",
                            "slots",
                            "formattedText",
                            "freshness"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_booking_availability"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "booking"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "booking.availability.status",
        "booking.availability.list"
      ],
      "invocations": [
        {
          "operationId": "booking.availability.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/booking/availability/status",
          "workspaceScoped": false
        },
        {
          "operationId": "booking.availability.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/booking/availability",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": [
              "status",
              "list"
            ]
          },
          "timezone": {
            "$ref": "#/$defs/IanaTimeZone"
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|timezone|count)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "timezone",
            "count"
          ]
        },
        "$defs": {
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          }
        }
      }
    },
    {
      "feature": "booking",
      "name": "get_booking_connection_status",
      "description": "Report whether Calendly or cal.com is connected for the workspace and which event type is the default.\n\nUse to poll after connect_calendly, or to explain why availability is unavailable.\n\nThe result carries no token or API-key material; do not look for credentials here.",
      "inputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          }
        },
        "required": [
          "workspaceId",
          "provider"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "connected",
              "disconnected",
              "not_connected"
            ]
          },
          "connection": {
            "anyOf": [
              {
                "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"
                  },
                  "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"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "calendly",
                      "cal_com"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "connected",
                      "disconnected",
                      "not_connected"
                    ]
                  },
                  "ownerEmail": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "workspaceName": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "grantedScopes": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/NonEmptyString"
                    }
                  },
                  "credentialRefId": {
                    "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"
                      }
                    ]
                  },
                  "webhookId": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ProviderId"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultEventTypeRef": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultEventTypeName": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultSchedulingUrl": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "connectedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "updatedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "disconnectedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tokenExpiresAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "workspaceId",
                  "provider",
                  "status",
                  "ownerEmail",
                  "workspaceName",
                  "grantedScopes",
                  "credentialRefId",
                  "webhookId",
                  "defaultEventTypeRef",
                  "defaultEventTypeName",
                  "defaultSchedulingUrl",
                  "connectedAt",
                  "updatedAt",
                  "disconnectedAt",
                  "tokenExpiresAt"
                ],
                "patternProperties": {
                  "^(?!(?:id|workspaceId|provider|status|ownerEmail|workspaceName|grantedScopes|credentialRefId|webhookId|defaultEventTypeRef|defaultEventTypeName|defaultSchedulingUrl|connectedAt|updatedAt|disconnectedAt|tokenExpiresAt)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "workspaceId",
                    "provider",
                    "status",
                    "ownerEmail",
                    "workspaceName",
                    "grantedScopes",
                    "credentialRefId",
                    "webhookId",
                    "defaultEventTypeRef",
                    "defaultEventTypeName",
                    "defaultSchedulingUrl",
                    "connectedAt",
                    "updatedAt",
                    "disconnectedAt",
                    "tokenExpiresAt"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "provider",
          "status",
          "connection"
        ],
        "patternProperties": {
          "^(?!(?:provider|status|connection)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "provider",
            "status",
            "connection"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_booking_connection_status"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "booking"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "booking.calendly.getStatus",
        "booking.calCom.getStatus"
      ],
      "invocations": [
        {
          "operationId": "booking.calendly.getStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/booking/calendly",
          "workspaceScoped": false
        },
        {
          "operationId": "booking.calCom.getStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/booking/cal-com",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          }
        },
        "required": [
          "workspaceId",
          "provider"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider"
          ]
        }
      }
    },
    {
      "feature": "agent-platform",
      "name": "get_capability",
      "description": "Return one capability's full guidance plus its input and output JSON Schemas.\n\nUse before calling an unfamiliar capability to learn its prerequisites and exact argument shape.\n\nDo not call for capabilities already summarized in a page.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "capabilityId": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,63}$"
          }
        },
        "required": [
          "capabilityId"
        ],
        "patternProperties": {
          "^(?!(?:capabilityId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "capabilityId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,63}$"
          },
          "feature": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "purpose": {
            "$ref": "#/$defs/Description"
          },
          "prerequisites": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ShortText"
            }
          },
          "kind": {
            "type": "string",
            "enum": [
              "direct_tool",
              "mcp_resource",
              "async_operation",
              "preview_commit",
              "user_completion",
              "human_only"
            ]
          },
          "risk": {
            "type": "string",
            "enum": [
              "read",
              "write",
              "costly",
              "destructive",
              "security_admin"
            ]
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "agent:capabilities",
                "agent:identity",
                "agent:operations:cancel",
                "agent:operations:read",
                "analytics:export",
                "analytics:read",
                "apiKey:create",
                "apiKey:delete",
                "apiKey:read",
                "apiKey:update",
                "audit:read",
                "billing:manage",
                "billing:read",
                "blocklist:create",
                "blocklist:delete",
                "blocklist:read",
                "campaign:archive",
                "campaign:create",
                "campaign:delete",
                "campaign:launch",
                "campaign:pause",
                "campaign:read",
                "campaign:update",
                "dialer:assign_numbers",
                "dialer:assign_seats",
                "dialer:create",
                "dialer:delete",
                "dialer:dial",
                "dialer:manage_billing",
                "dialer:manage_number_health",
                "dialer:manage_numbers",
                "dialer:manage_numbers_self",
                "dialer:manage_voicemails",
                "dialer:read",
                "dialer:read_analytics",
                "dialer:read_numbers_all",
                "dialer:release_numbers",
                "dialer:update",
                "domain:manage_dns",
                "domain:purchase",
                "domain:read",
                "domain:transfer",
                "emailVerification:manage_credits",
                "emailVerification:manage_keys",
                "emailVerification:manage_sharing",
                "emailVerification:read",
                "emailVerification:verify",
                "inbox:connect",
                "inbox:create",
                "inbox:delete",
                "inbox:read",
                "inbox:update",
                "inbox:warmup_manage",
                "integration:create",
                "integration:delete",
                "integration:read",
                "integration:update",
                "lead:create",
                "lead:delete",
                "lead:export",
                "lead:import",
                "lead:read",
                "lead:update",
                "leadList:create",
                "leadList:delete",
                "leadList:read",
                "leadList:update",
                "org:delete",
                "orgAnalytics:read",
                "orgAnalytics:manage",
                "org:read",
                "org:update",
                "orgApiKey:manage",
                "orgMember:invite",
                "orgMember:read",
                "orgMember:remove",
                "orgMember:update",
                "phoneVerification:manage_keys",
                "phoneVerification:read",
                "phoneVerification:verify",
                "platform:operate",
                "replyLabel:create",
                "replyLabel:delete",
                "replyLabel:read",
                "replyLabel:update",
                "role:manage",
                "role:read",
                "sequence:create",
                "sequence:delete",
                "sequence:read",
                "sequence:update",
                "sql:manage_dashboards",
                "sql:query",
                "support:create",
                "support:read",
                "support:update",
                "tag:create",
                "tag:delete",
                "tag:read",
                "tag:update",
                "task:create",
                "task:delete",
                "task:read",
                "task:update",
                "template:create",
                "template:delete",
                "template:read",
                "template:update",
                "unibox:archive",
                "unibox:label",
                "unibox:read",
                "unibox:reply",
                "usage:read",
                "webhook:create",
                "webhook:delete",
                "webhook:read",
                "webhook:update",
                "whiteLabel:read",
                "whiteLabel:update",
                "workflow:create",
                "workflow:delete",
                "workflow:publish",
                "workflow:read",
                "workflow:run",
                "workflow:update",
                "workspace:create",
                "workspace:delete",
                "workspace:read",
                "workspace:transfer",
                "workspace:update",
                "workspaceMember:invite",
                "workspaceMember:read",
                "workspaceMember:remove",
                "workspaceMember:update"
              ]
            }
          },
          "confirmation": {
            "type": "string",
            "enum": [
              "none",
              "explicit",
              "preview_token",
              "human_completion"
            ]
          },
          "resultMode": {
            "type": "string",
            "enum": [
              "inline",
              "page",
              "operation_handle",
              "stream",
              "download",
              "redirect"
            ]
          },
          "availability": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "available",
                  "scope_required",
                  "permission_denied",
                  "feature_disabled",
                  "subscription_blocked",
                  "human_completion_required",
                  "temporarily_unavailable"
                ]
              },
              "reason": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "state"
            ],
            "patternProperties": {
              "^(?!(?:state|reason)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "state",
                "reason"
              ]
            }
          },
          "inputFields": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/NonEmptyString"
            }
          },
          "outputBounds": {
            "type": "object",
            "properties": {
              "maxItems": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "maxBytes": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "maxItems",
              "maxBytes"
            ],
            "patternProperties": {
              "^(?!(?:maxItems|maxBytes)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "maxItems",
                "maxBytes"
              ]
            }
          },
          "bundles": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,63}$"
            }
          },
          "inputSchema": {
            "$ref": "#/$defs/Union_"
          },
          "outputSchema": {
            "$ref": "#/$defs/Union_"
          },
          "errorCodes": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/NonEmptyString"
            }
          },
          "guidance": {
            "type": "object",
            "properties": {
              "whenToUse": {
                "$ref": "#/$defs/Description"
              },
              "whenNotToUse": {
                "$ref": "#/$defs/Description"
              }
            },
            "required": [
              "whenToUse",
              "whenNotToUse"
            ],
            "patternProperties": {
              "^(?!(?:whenToUse|whenNotToUse)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "whenToUse",
                "whenNotToUse"
              ]
            }
          }
        },
        "required": [
          "id",
          "feature",
          "purpose",
          "prerequisites",
          "kind",
          "risk",
          "scopes",
          "confirmation",
          "resultMode",
          "availability",
          "inputFields",
          "outputBounds",
          "bundles",
          "inputSchema",
          "outputSchema",
          "errorCodes",
          "guidance"
        ],
        "patternProperties": {
          "^(?!(?:id|feature|purpose|prerequisites|kind|risk|scopes|confirmation|resultMode|availability|inputFields|outputBounds|bundles|inputSchema|outputSchema|errorCodes|guidance)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "feature",
            "purpose",
            "prerequisites",
            "kind",
            "risk",
            "scopes",
            "confirmation",
            "resultMode",
            "availability",
            "inputFields",
            "outputBounds",
            "bundles",
            "inputSchema",
            "outputSchema",
            "errorCodes",
            "guidance"
          ]
        },
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_capability"
      },
      "scopes": [
        "agent:capabilities"
      ],
      "bundles": [
        "platform"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "agent.getCapability"
      ],
      "invocations": [
        {
          "operationId": "agent.getCapability",
          "method": "GET",
          "path": "/agent/capabilities/:capabilityId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "capabilityId": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,63}$"
          }
        },
        "required": [
          "capabilityId"
        ],
        "patternProperties": {
          "^(?!(?:capabilityId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "capabilityId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "platform-operations",
      "name": "get_dashboard",
      "description": "Read a complete saved dashboard or query including SQL, chart types and columns, filters, text widgets, layout and revision.\n\nUse before editing. Preserve widget IDs and unrelated settings; use the returned revision with save_dashboard.\n\nRequires the Workspace SQL feature and the stated permission. This does not grant access to another Workspace or execute stored SQL automatically.",
      "inputSchema": {
        "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"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "dashboardId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|dashboardId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "dashboardId"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "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"
          },
          "ownerId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "updatedAt": {
            "type": "string"
          },
          "document": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "enum": [
                  1
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "dashboard",
                  "query"
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "description": {
                "type": "string",
                "maxLength": 2000
              },
              "filters": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "ip": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "from",
                  "to",
                  "domain",
                  "ip",
                  "source"
                ],
                "patternProperties": {
                  "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "from",
                    "to",
                    "domain",
                    "ip",
                    "source"
                  ]
                }
              },
              "widgets": {
                "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"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "chart",
                        "text"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 160
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "query": {
                      "type": "string",
                      "maxLength": 20000
                    },
                    "bindings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      },
                      "maxItems": 32
                    },
                    "chart": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "table",
                            "number",
                            "line",
                            "area",
                            "bar"
                          ]
                        },
                        "dimension": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "measures": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 8
                        },
                        "format": {
                          "type": "string",
                          "enum": [
                            "number",
                            "percent",
                            "currency",
                            "duration",
                            "bytes"
                          ]
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 6
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "required": [
                        "type",
                        "dimension",
                        "measures",
                        "format",
                        "decimals",
                        "label"
                      ],
                      "patternProperties": {
                        "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "type",
                          "dimension",
                          "measures",
                          "format",
                          "decimals",
                          "label"
                        ]
                      }
                    },
                    "layout": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 11
                        },
                        "y": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 500
                        },
                        "w": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        },
                        "h": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "w",
                        "h"
                      ],
                      "patternProperties": {
                        "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y",
                          "w",
                          "h"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "title",
                    "text",
                    "query",
                    "bindings",
                    "chart",
                    "layout"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "kind",
                      "title",
                      "text",
                      "query",
                      "bindings",
                      "chart",
                      "layout"
                    ]
                  }
                },
                "maxItems": 30
              }
            },
            "required": [
              "version",
              "kind",
              "name",
              "description",
              "filters",
              "widgets"
            ],
            "patternProperties": {
              "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "version",
                "kind",
                "name",
                "description",
                "filters",
                "widgets"
              ]
            }
          }
        },
        "required": [
          "id",
          "workspaceId",
          "ownerId",
          "revision",
          "updatedAt",
          "document"
        ],
        "patternProperties": {
          "^(?!(?:id|workspaceId|ownerId|revision|updatedAt|document)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "workspaceId",
            "ownerId",
            "revision",
            "updatedAt",
            "document"
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_dashboard"
      },
      "scopes": [
        "sql:query"
      ],
      "bundles": [
        "workspace_sql"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "dashboards.get"
      ],
      "invocations": [
        {
          "operationId": "dashboards.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dashboards/:dashboardId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "dashboardId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|dashboardId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "dashboardId"
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "get_getleads_status",
      "description": "Report whether GetLeads is connected, its pacing policy, and whether its webhook is armed.\n\nUse before running a GetLeads request or configuring a GetLeads workflow block.\n\nThe result never contains the key or the webhook token; only the key's last four characters.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "connection": {
            "anyOf": [
              {
                "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"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "connected",
                      "needs_reauthorization",
                      "disabled",
                      "disconnected"
                    ]
                  },
                  "keyLastFour": {
                    "type": "string",
                    "pattern": "^.{4}$"
                  },
                  "requestsPerMinute": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "webhookEnabled": {
                    "type": "boolean"
                  },
                  "lastWebhookAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "lastValidatedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "connectedAt": {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  }
                },
                "required": [
                  "id",
                  "status",
                  "keyLastFour",
                  "requestsPerMinute",
                  "webhookEnabled",
                  "lastWebhookAt",
                  "lastValidatedAt",
                  "connectedAt"
                ],
                "patternProperties": {
                  "^(?!(?:id|status|keyLastFour|requestsPerMinute|webhookEnabled|lastWebhookAt|lastValidatedAt|connectedAt)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "status",
                    "keyLastFour",
                    "requestsPerMinute",
                    "webhookEnabled",
                    "lastWebhookAt",
                    "lastValidatedAt",
                    "connectedAt"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "connection"
        ],
        "patternProperties": {
          "^(?!(?:connection)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "connection"
              ]
            }
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_getleads_status"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "getleads"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "getleads.status"
      ],
      "invocations": [
        {
          "operationId": "getleads.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/getleads",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "get_getleads_usage",
      "description": "Read the GetLeads plan, remaining credits, and daily/monthly fair-use windows.\n\nUse before a large enrichment to check the account can absorb it.\n\nThis reads GetLeads live and counts against the pacing gate; do not poll it.",
      "inputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "connectionId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "applies": {
            "type": "boolean"
          },
          "plan": {
            "$ref": "#/$defs/ShortText"
          },
          "exempt": {
            "type": "boolean"
          },
          "creditsRemaining": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "daily": {
            "type": "object",
            "properties": {
              "cap": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "used": {
                "type": "number"
              },
              "remaining": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "period": {
                "$ref": "#/$defs/ShortText"
              },
              "periodStart": {
                "$ref": "#/$defs/ShortText"
              },
              "resetsAt": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "cap",
              "used",
              "remaining",
              "period",
              "periodStart",
              "resetsAt"
            ],
            "patternProperties": {
              "^(?!(?:cap|used|remaining|period|periodStart|resetsAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "cap",
                "used",
                "remaining",
                "period",
                "periodStart",
                "resetsAt"
              ]
            }
          },
          "monthly": {
            "type": "object",
            "properties": {
              "cap": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "used": {
                "type": "number"
              },
              "remaining": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "period": {
                "$ref": "#/$defs/ShortText"
              },
              "periodStart": {
                "$ref": "#/$defs/ShortText"
              },
              "resetsAt": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "cap",
              "used",
              "remaining",
              "period",
              "periodStart",
              "resetsAt"
            ],
            "patternProperties": {
              "^(?!(?:cap|used|remaining|period|periodStart|resetsAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "cap",
                "used",
                "remaining",
                "period",
                "periodStart",
                "resetsAt"
              ]
            }
          },
          "binding": {
            "anyOf": [
              {
                "$ref": "#/$defs/ShortText"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "ok",
          "applies",
          "plan",
          "creditsRemaining"
        ],
        "patternProperties": {
          "^(?!(?:ok|applies|plan|exempt|creditsRemaining|daily|monthly|binding)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "ok",
            "applies",
            "plan",
            "exempt",
            "creditsRemaining",
            "daily",
            "monthly",
            "binding"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_getleads_usage"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "getleads"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "getleads.usage"
      ],
      "invocations": [
        {
          "operationId": "getleads.usage",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/getleads/:connectionId/usage",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "connectionId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId"
          ]
        }
      }
    },
    {
      "feature": "agent-platform",
      "name": "get_identity",
      "description": "Return the authenticated agent's identity, registration kind, scope ceiling, and status.\n\nCall first to learn which principal, organization, and scopes the credential holds before attempting work.\n\nDo not call in a polling loop; identity changes only on credential or registration changes.",
      "inputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "registrationId": {
            "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"
              }
            ]
          },
          "grantId": {
            "$ref": "#/$defs/OpaqueId"
          },
          "kind": {
            "type": "string",
            "enum": [
              "service_auth",
              "identity_assertion",
              "organization_api_key",
              "internal_workflow",
              "mcp_client_grant"
            ]
          },
          "status": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "interaction_required",
                  "expired",
                  "revoked",
                  "suspended"
                ]
              },
              "reasonCode": {
                "type": "string",
                "enum": [
                  "actor_removed",
                  "credential_expired",
                  "link_required",
                  "provider_revoked",
                  "admin_revoked",
                  "policy_suspended"
                ]
              }
            },
            "required": [
              "status"
            ],
            "patternProperties": {
              "^(?!(?:status|reasonCode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "status",
                "reasonCode"
              ]
            }
          },
          "actorUserId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "organization": {
            "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": {
                "$ref": "#/$defs/ShortText"
              },
              "slug": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "id",
              "name",
              "slug"
            ],
            "patternProperties": {
              "^(?!(?:id|name|slug)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "name",
                "slug"
              ]
            }
          },
          "provider": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "issuer": {
                    "$ref": "#/$defs/ProviderId"
                  },
                  "displayName": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "required": [
                  "issuer",
                  "displayName"
                ],
                "patternProperties": {
                  "^(?!(?:issuer|displayName)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "issuer",
                    "displayName"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "grantedScopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "agent:capabilities",
                "agent:identity",
                "agent:operations:cancel",
                "agent:operations:read",
                "analytics:export",
                "analytics:read",
                "apiKey:create",
                "apiKey:delete",
                "apiKey:read",
                "apiKey:update",
                "audit:read",
                "billing:manage",
                "billing:read",
                "blocklist:create",
                "blocklist:delete",
                "blocklist:read",
                "campaign:archive",
                "campaign:create",
                "campaign:delete",
                "campaign:launch",
                "campaign:pause",
                "campaign:read",
                "campaign:update",
                "dialer:assign_numbers",
                "dialer:assign_seats",
                "dialer:create",
                "dialer:delete",
                "dialer:dial",
                "dialer:manage_billing",
                "dialer:manage_number_health",
                "dialer:manage_numbers",
                "dialer:manage_numbers_self",
                "dialer:manage_voicemails",
                "dialer:read",
                "dialer:read_analytics",
                "dialer:read_numbers_all",
                "dialer:release_numbers",
                "dialer:update",
                "domain:manage_dns",
                "domain:purchase",
                "domain:read",
                "domain:transfer",
                "emailVerification:manage_credits",
                "emailVerification:manage_keys",
                "emailVerification:manage_sharing",
                "emailVerification:read",
                "emailVerification:verify",
                "inbox:connect",
                "inbox:create",
                "inbox:delete",
                "inbox:read",
                "inbox:update",
                "inbox:warmup_manage",
                "integration:create",
                "integration:delete",
                "integration:read",
                "integration:update",
                "lead:create",
                "lead:delete",
                "lead:export",
                "lead:import",
                "lead:read",
                "lead:update",
                "leadList:create",
                "leadList:delete",
                "leadList:read",
                "leadList:update",
                "org:delete",
                "orgAnalytics:read",
                "orgAnalytics:manage",
                "org:read",
                "org:update",
                "orgApiKey:manage",
                "orgMember:invite",
                "orgMember:read",
                "orgMember:remove",
                "orgMember:update",
                "phoneVerification:manage_keys",
                "phoneVerification:read",
                "phoneVerification:verify",
                "platform:operate",
                "replyLabel:create",
                "replyLabel:delete",
                "replyLabel:read",
                "replyLabel:update",
                "role:manage",
                "role:read",
                "sequence:create",
                "sequence:delete",
                "sequence:read",
                "sequence:update",
                "sql:manage_dashboards",
                "sql:query",
                "support:create",
                "support:read",
                "support:update",
                "tag:create",
                "tag:delete",
                "tag:read",
                "tag:update",
                "task:create",
                "task:delete",
                "task:read",
                "task:update",
                "template:create",
                "template:delete",
                "template:read",
                "template:update",
                "unibox:archive",
                "unibox:label",
                "unibox:read",
                "unibox:reply",
                "usage:read",
                "webhook:create",
                "webhook:delete",
                "webhook:read",
                "webhook:update",
                "whiteLabel:read",
                "whiteLabel:update",
                "workflow:create",
                "workflow:delete",
                "workflow:publish",
                "workflow:read",
                "workflow:run",
                "workflow:update",
                "workspace:create",
                "workspace:delete",
                "workspace:read",
                "workspace:transfer",
                "workspace:update",
                "workspaceMember:invite",
                "workspaceMember:read",
                "workspaceMember:remove",
                "workspaceMember:update"
              ]
            }
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "lastUsedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "registrationId",
          "kind",
          "status",
          "actorUserId",
          "organization",
          "provider",
          "grantedScopes",
          "createdAt",
          "lastUsedAt",
          "expiresAt"
        ],
        "patternProperties": {
          "^(?!(?:registrationId|grantId|kind|status|actorUserId|organization|provider|grantedScopes|createdAt|lastUsedAt|expiresAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "registrationId",
            "grantId",
            "kind",
            "status",
            "actorUserId",
            "organization",
            "provider",
            "grantedScopes",
            "createdAt",
            "lastUsedAt",
            "expiresAt"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_identity"
      },
      "scopes": [
        "agent:identity"
      ],
      "bundles": [
        "platform"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "agent.getIdentity"
      ],
      "invocations": [
        {
          "operationId": "agent.getIdentity",
          "method": "GET",
          "path": "/agent/identity",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      }
    },
    {
      "feature": "integrations",
      "name": "get_integration_share_options",
      "description": "Show whether a connection can be shared and which sibling workspaces can receive it.\n\nCall before share_integration_connection to pick eligible workspaceIds and see existing targets.\n\nIneligible workspaces (no permission, or already their own connection) are listed with a reason; do not retry them.",
      "inputSchema": {
        "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"
          },
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "adapter",
          "connectionId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|adapter|connectionId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "adapter",
            "connectionId"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "provider": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "displayName": {
            "$ref": "#/$defs/ShortText"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "shareable": {
            "type": "boolean"
          },
          "reason": {
            "anyOf": [
              {
                "$ref": "#/$defs/ShortText"
              },
              {
                "type": "null"
              }
            ]
          },
          "existingShareId": {
            "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"
              }
            ]
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          },
          "candidates": {
            "type": "array",
            "items": {
              "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"
                },
                "workspaceName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "eligible": {
                  "type": "boolean"
                },
                "reason": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "state": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "attaching",
                        "attached",
                        "detached",
                        "failed"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "workspaceId",
                "workspaceName",
                "eligible",
                "reason",
                "state"
              ],
              "patternProperties": {
                "^(?!(?:workspaceId|workspaceName|eligible|reason|state)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "workspaceId",
                  "workspaceName",
                  "eligible",
                  "reason",
                  "state"
                ]
              }
            },
            "maxItems": 500
          }
        },
        "required": [
          "adapter",
          "provider",
          "displayName",
          "connectionId",
          "shareable",
          "reason",
          "existingShareId",
          "includeFutureWorkspaces",
          "candidates"
        ],
        "patternProperties": {
          "^(?!(?:adapter|provider|displayName|connectionId|shareable|reason|existingShareId|includeFutureWorkspaces|candidates)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "adapter",
            "provider",
            "displayName",
            "connectionId",
            "shareable",
            "reason",
            "existingShareId",
            "includeFutureWorkspaces",
            "candidates"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_integration_share_options"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "integration_sharing"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationShares.options"
      ],
      "invocations": [
        {
          "operationId": "integrationShares.options",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integration-shares/options",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "adapter",
          "connectionId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|adapter|connectionId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "adapter",
            "connectionId"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "get_my_developer_mode",
      "description": "Read your account-wide Developer mode preference.\n\nUse your own human session, full-account personal API key or consented interactive MCP connection. The setting persists across devices and sign-ins.\n\nCannot target another user, use restricted keys or non-interactive agents, or enable/disable realtime transport.",
      "inputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "developerModeEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "developerModeEnabled"
        ],
        "patternProperties": {
          "^(?!(?:developerModeEnabled)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "developerModeEnabled"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_my_developer_mode"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "account_preferences"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "developerMode.get"
      ],
      "invocations": [
        {
          "operationId": "developerMode.get",
          "method": "GET",
          "path": "/v1/me/developer-mode",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      }
    },
    {
      "feature": "agent-platform",
      "name": "get_operation",
      "description": "Poll a durable operation's state, progress, structured failure, or result reference.\n\nPoll after starting async work until the operation reaches a terminal state.\n\nDo not poll faster than the operation's suggested interval; it wastes the caller's rate budget.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "operationId"
        ],
        "patternProperties": {
          "^(?!(?:operationId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "operationId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "capabilityId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_]{0,63}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "workspaceId": {
            "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"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "waiting_for_user",
              "succeeded",
              "partially_succeeded",
              "failed",
              "canceled",
              "canceling"
            ]
          },
          "statusUrl": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "$ref": "#/$defs/HttpResourcePath"
              }
            ]
          },
          "submittedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "startedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "progress": {
            "type": "object",
            "properties": {
              "completed": {
                "type": "integer",
                "minimum": 0
              },
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "message": {
                "$ref": "#/$defs/NonEmptyString"
              }
            },
            "required": [
              "completed"
            ],
            "patternProperties": {
              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "completed",
                "total",
                "message"
              ]
            }
          },
          "canCancel": {
            "type": "boolean"
          },
          "failure": {
            "type": "object",
            "properties": {
              "code": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "safeMessage": {
                "$ref": "#/$defs/ShortText"
              },
              "retryable": {
                "type": "boolean"
              },
              "retryAfter": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "recoveryCapability": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_]{0,63}$"
              }
            },
            "required": [
              "code",
              "safeMessage",
              "retryable"
            ],
            "patternProperties": {
              "^(?!(?:code|safeMessage|retryable|retryAfter|recoveryCapability)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "code",
                "safeMessage",
                "retryable",
                "retryAfter",
                "recoveryCapability"
              ]
            }
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "capabilityId": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  },
                  "href": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      {
                        "$ref": "#/$defs/HttpResourcePath"
                      }
                    ]
                  }
                },
                "required": [
                  "capabilityId",
                  "href"
                ],
                "patternProperties": {
                  "^(?!(?:capabilityId|href)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "capabilityId",
                    "href"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "providerOperation": {
                    "type": "string",
                    "enum": [
                      "usage",
                      "enrich_email",
                      "enrich_linkedin",
                      "enrich_person",
                      "lookup_phone",
                      "search",
                      "count",
                      "export",
                      "export_status",
                      "profiles",
                      "profile_leads",
                      "set_profile_active"
                    ]
                  },
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "index": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "ok",
                            "failed",
                            "skipped"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "string"
                            },
                            {
                              "$ref": "#/$defs/Arrays_"
                            },
                            {
                              "type": "object",
                              "additionalProperties": {
                                "$ref": "#/$defs/Union_"
                              }
                            }
                          ]
                        },
                        "errorCode": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "required": [
                        "index",
                        "outcome"
                      ],
                      "patternProperties": {
                        "^(?!(?:index|outcome|value|errorCode)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "index",
                          "outcome",
                          "value",
                          "errorCode"
                        ]
                      }
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "providerOperation",
                  "results"
                ],
                "patternProperties": {
                  "^(?!(?:providerOperation|results)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "providerOperation",
                    "results"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "id",
          "capabilityId",
          "workspaceId",
          "state",
          "statusUrl",
          "submittedAt",
          "startedAt",
          "completedAt",
          "canCancel"
        ],
        "patternProperties": {
          "^(?!(?:id|capabilityId|workspaceId|state|statusUrl|submittedAt|startedAt|completedAt|progress|canCancel|failure|result)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "capabilityId",
            "workspaceId",
            "state",
            "statusUrl",
            "submittedAt",
            "startedAt",
            "completedAt",
            "progress",
            "canCancel",
            "failure",
            "result"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Arrays_"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "Arrays_": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Union_"
            }
          }
        }
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "agent.getOperation"
      },
      "scopes": [
        "agent:operations:read"
      ],
      "bundles": [
        "operations"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "agent.getOperation"
      ],
      "invocations": [
        {
          "operationId": "agent.getOperation",
          "method": "GET",
          "path": "/agent/operations/:operationId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "operationId"
        ],
        "patternProperties": {
          "^(?!(?:operationId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "operationId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "platform-operations",
      "name": "get_organization_dashboard",
      "description": "Read a complete saved dashboard or query including SQL, chart types and columns, filters, text widgets, layout and revision.\n\nUse before editing. Preserve widget IDs and unrelated settings; use the returned revision with save_organization_dashboard.\n\nRequires the stated Organization analytics permission. Reading a document never executes its SQL; saving validates every selected child, and execution always requires live child SQL access and feature eligibility.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "organizationId",
          "dashboardId"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|dashboardId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "dashboardId"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "workspaceIds": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "ownerId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "document": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "enum": [
                  1
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "dashboard",
                  "query"
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "description": {
                "type": "string",
                "maxLength": 2000
              },
              "filters": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "ip": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "from",
                  "to",
                  "domain",
                  "ip",
                  "source"
                ],
                "patternProperties": {
                  "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "from",
                    "to",
                    "domain",
                    "ip",
                    "source"
                  ]
                }
              },
              "widgets": {
                "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"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "chart",
                        "text"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 160
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "query": {
                      "type": "string",
                      "maxLength": 20000
                    },
                    "bindings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      },
                      "maxItems": 32
                    },
                    "chart": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "table",
                            "number",
                            "line",
                            "area",
                            "bar"
                          ]
                        },
                        "dimension": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "measures": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 8
                        },
                        "format": {
                          "type": "string",
                          "enum": [
                            "number",
                            "percent",
                            "currency",
                            "duration",
                            "bytes"
                          ]
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 6
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "required": [
                        "type",
                        "dimension",
                        "measures",
                        "format",
                        "decimals",
                        "label"
                      ],
                      "patternProperties": {
                        "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "type",
                          "dimension",
                          "measures",
                          "format",
                          "decimals",
                          "label"
                        ]
                      }
                    },
                    "layout": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 11
                        },
                        "y": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 500
                        },
                        "w": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        },
                        "h": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "w",
                        "h"
                      ],
                      "patternProperties": {
                        "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y",
                          "w",
                          "h"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "title",
                    "text",
                    "query",
                    "bindings",
                    "chart",
                    "layout"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "kind",
                      "title",
                      "text",
                      "query",
                      "bindings",
                      "chart",
                      "layout"
                    ]
                  }
                },
                "maxItems": 30
              }
            },
            "required": [
              "version",
              "kind",
              "name",
              "description",
              "filters",
              "widgets"
            ],
            "patternProperties": {
              "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "version",
                "kind",
                "name",
                "description",
                "filters",
                "widgets"
              ]
            }
          }
        },
        "required": [
          "id",
          "organizationId",
          "workspaceIds",
          "ownerId",
          "revision",
          "updatedAt",
          "document"
        ],
        "patternProperties": {
          "^(?!(?:id|organizationId|workspaceIds|ownerId|revision|updatedAt|document)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "organizationId",
            "workspaceIds",
            "ownerId",
            "revision",
            "updatedAt",
            "document"
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_organization_dashboard"
      },
      "scopes": [
        "orgAnalytics:read"
      ],
      "bundles": [
        "organization_sql"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationDashboards.get"
      ],
      "invocations": [
        {
          "operationId": "organizationDashboards.get",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/dashboards/:dashboardId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "organizationId",
          "dashboardId"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|dashboardId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "dashboardId"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "get_permission_request",
      "description": "Read one permission request: requester, requested and granted permissions, reason and context, status, and the reviewer's note.\n\nUse to follow up on a request you filed (pending, approved, denied, cancelled, or expired) or to show a reviewer its details before deciding.\n\nNon-reviewers can read only their own requests; others answer not found.",
      "inputSchema": {
        "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"
          },
          "requestId": {
            "$ref": "#/$defs/PermissionRequestId"
          }
        },
        "required": [
          "workspaceId",
          "requestId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestId"
          ]
        },
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "PermissionRequestStatus": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "denied",
              "canceled",
              "expired"
            ]
          },
          "PermissionRequestPerson": {
            "type": "object",
            "properties": {
              "userId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "userId",
              "name",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "name",
                "email"
              ]
            }
          },
          "PermissionRequestContext": {
            "type": "object",
            "properties": {
              "attemptedOperation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptedTool": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "explanation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:attemptedOperation|attemptedTool|explanation)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attemptedOperation",
                "attemptedTool",
                "explanation"
              ]
            }
          },
          "PermissionRequestSource": {
            "type": "string",
            "enum": [
              "web",
              "api",
              "agent"
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "PermissionRequest": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/PermissionRequestId"
              },
              "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"
              },
              "status": {
                "$ref": "#/$defs/PermissionRequestStatus"
              },
              "requester": {
                "$ref": "#/$defs/PermissionRequestPerson"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "grantedPermissions": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "context": {
                "$ref": "#/$defs/PermissionRequestContext"
              },
              "source": {
                "$ref": "#/$defs/PermissionRequestSource"
              },
              "agentName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "decidedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decidedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestPerson"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decisionNote": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewable": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "requester",
              "permissions",
              "grantedPermissions",
              "reason",
              "context",
              "source",
              "agentName",
              "createdAt",
              "expiresAt",
              "decidedAt",
              "decidedBy",
              "decisionNote",
              "reviewable"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|requester|permissions|grantedPermissions|reason|context|source|agentName|createdAt|expiresAt|decidedAt|decidedBy|decisionNote|reviewable)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "requester",
                "permissions",
                "grantedPermissions",
                "reason",
                "context",
                "source",
                "agentName",
                "createdAt",
                "expiresAt",
                "decidedAt",
                "decidedBy",
                "decisionNote",
                "reviewable"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/PermissionRequest"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/PermissionRequest"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_permission_request"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "permission_requests"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "permissionRequests.get"
      ],
      "invocations": [
        {
          "operationId": "permissionRequests.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/permission-requests/:requestId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "requestId": {
            "$ref": "#/$defs/PermissionRequestId"
          }
        },
        "required": [
          "workspaceId",
          "requestId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestId"
          ]
        },
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "get_plusvibe_status",
      "description": "Report whether PlusVibe is connected and the health of each workflow's PlusVibe webhook.\n\nUse before configuring a PlusVibe trigger or action, or to diagnose a workflow that stopped receiving PlusVibe events.\n\nThe result carries no key material and no remote hook URLs; do not look for them here.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "connection": {
            "anyOf": [
              {
                "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"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "connected",
                      "needs_reauthorization",
                      "disabled",
                      "disconnected"
                    ]
                  },
                  "providerWorkspaceIds": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/PlusVibeRemoteId"
                    },
                    "maxItems": 200
                  },
                  "lastValidatedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "connectedAt": {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  "disconnectedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "status",
                  "providerWorkspaceIds",
                  "lastValidatedAt",
                  "connectedAt",
                  "disconnectedAt"
                ],
                "patternProperties": {
                  "^(?!(?:id|status|providerWorkspaceIds|lastValidatedAt|connectedAt|disconnectedAt)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "status",
                    "providerWorkspaceIds",
                    "lastValidatedAt",
                    "connectedAt",
                    "disconnectedAt"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "webhookSubscriptions": {
            "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"
                },
                "workflowId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "creating",
                    "active",
                    "error",
                    "removed",
                    "unknown"
                  ]
                },
                "error": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "id",
                "workflowId",
                "status",
                "error",
                "updatedAt"
              ],
              "patternProperties": {
                "^(?!(?:id|workflowId|status|error|updatedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "workflowId",
                  "status",
                  "error",
                  "updatedAt"
                ]
              }
            },
            "maxItems": 500
          }
        },
        "required": [
          "connection",
          "webhookSubscriptions"
        ],
        "patternProperties": {
          "^(?!(?:connection|webhookSubscriptions)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "connection",
            "webhookSubscriptions"
          ]
        },
        "$defs": {
          "PlusVibeRemoteId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_plusvibe_status"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "plusvibe"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "plusvibe.status"
      ],
      "invocations": [
        {
          "operationId": "plusvibe.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/plusvibe",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "get_thread_reminder",
      "description": "Return the current reminder for one thread, or null.\n\nUse before scheduling to check whether a thread already has a pending reminder.\n\nDo not use for workspace-wide listing; use list_reminders.",
      "inputSchema": {
        "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"
          },
          "threadId": {
            "$ref": "#/$defs/ProviderId"
          }
        },
        "required": [
          "workspaceId",
          "threadId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|threadId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "threadId"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "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"
                      },
                      "threadId": {
                        "$ref": "#/$defs/ProviderId"
                      },
                      "remindAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "isAutomatic": {
                        "type": "boolean"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "sent",
                          "cancelled"
                        ]
                      },
                      "sentAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "cancelledAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "jobRunId": {
                        "anyOf": [
                          {
                            "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": "string",
                                "pattern": "^run_[a-zA-Z0-9]{1,200}$"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "workspaceId",
                      "threadId",
                      "remindAt",
                      "isAutomatic",
                      "status",
                      "sentAt",
                      "cancelledAt",
                      "jobRunId",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|workspaceId|threadId|remindAt|isAutomatic|status|sentAt|cancelledAt|jobRunId|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "workspaceId",
                        "threadId",
                        "remindAt",
                        "isAutomatic",
                        "status",
                        "sentAt",
                        "cancelledAt",
                        "jobRunId",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "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"
                          },
                          "threadId": {
                            "$ref": "#/$defs/ProviderId"
                          },
                          "remindAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "isAutomatic": {
                            "type": "boolean"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "sent",
                              "cancelled"
                            ]
                          },
                          "sentAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cancelledAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "jobRunId": {
                            "anyOf": [
                              {
                                "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": "string",
                                    "pattern": "^run_[a-zA-Z0-9]{1,200}$"
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "workspaceId",
                          "threadId",
                          "remindAt",
                          "isAutomatic",
                          "status",
                          "sentAt",
                          "cancelledAt",
                          "jobRunId",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|workspaceId|threadId|remindAt|isAutomatic|status|sentAt|cancelledAt|jobRunId|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "workspaceId",
                            "threadId",
                            "remindAt",
                            "isAutomatic",
                            "status",
                            "sentAt",
                            "cancelledAt",
                            "jobRunId",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "get_thread_reminder"
      },
      "scopes": [
        "unibox:read"
      ],
      "bundles": [
        "reminders"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "reminders.getForThread"
      ],
      "invocations": [
        {
          "operationId": "reminders.getForThread",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/reminders/thread/:threadId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "threadId": {
            "$ref": "#/$defs/ProviderId"
          }
        },
        "required": [
          "workspaceId",
          "threadId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|threadId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "threadId"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "grant_support_access",
      "description": "Grant Scheduler Zero support a chosen subset of your permissions in one workspace for 24, 72 (default), or 168 hours.\n\nUse only when the person asked for support to access this workspace and explicitly approved the exact permissions and period; pass confirmed: true.\n\nNever grant on your own initiative or broader than the task needs. You cannot grant a permission you do not hold here. API keys cannot grant.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "agent:capabilities",
                "agent:identity",
                "agent:operations:cancel",
                "agent:operations:read",
                "analytics:export",
                "analytics:read",
                "apiKey:create",
                "apiKey:delete",
                "apiKey:read",
                "apiKey:update",
                "audit:read",
                "billing:manage",
                "billing:read",
                "blocklist:create",
                "blocklist:delete",
                "blocklist:read",
                "campaign:archive",
                "campaign:create",
                "campaign:delete",
                "campaign:launch",
                "campaign:pause",
                "campaign:read",
                "campaign:update",
                "dialer:assign_numbers",
                "dialer:assign_seats",
                "dialer:create",
                "dialer:delete",
                "dialer:dial",
                "dialer:manage_billing",
                "dialer:manage_number_health",
                "dialer:manage_numbers",
                "dialer:manage_numbers_self",
                "dialer:manage_voicemails",
                "dialer:read",
                "dialer:read_analytics",
                "dialer:read_numbers_all",
                "dialer:release_numbers",
                "dialer:update",
                "domain:manage_dns",
                "domain:purchase",
                "domain:read",
                "domain:transfer",
                "emailVerification:manage_credits",
                "emailVerification:manage_keys",
                "emailVerification:manage_sharing",
                "emailVerification:read",
                "emailVerification:verify",
                "inbox:connect",
                "inbox:create",
                "inbox:delete",
                "inbox:read",
                "inbox:update",
                "inbox:warmup_manage",
                "integration:create",
                "integration:delete",
                "integration:read",
                "integration:update",
                "lead:create",
                "lead:delete",
                "lead:export",
                "lead:import",
                "lead:read",
                "lead:update",
                "leadList:create",
                "leadList:delete",
                "leadList:read",
                "leadList:update",
                "org:delete",
                "orgAnalytics:read",
                "orgAnalytics:manage",
                "org:read",
                "org:update",
                "orgApiKey:manage",
                "orgMember:invite",
                "orgMember:read",
                "orgMember:remove",
                "orgMember:update",
                "phoneVerification:manage_keys",
                "phoneVerification:read",
                "phoneVerification:verify",
                "platform:operate",
                "replyLabel:create",
                "replyLabel:delete",
                "replyLabel:read",
                "replyLabel:update",
                "role:manage",
                "role:read",
                "sequence:create",
                "sequence:delete",
                "sequence:read",
                "sequence:update",
                "sql:manage_dashboards",
                "sql:query",
                "support:create",
                "support:read",
                "support:update",
                "tag:create",
                "tag:delete",
                "tag:read",
                "tag:update",
                "task:create",
                "task:delete",
                "task:read",
                "task:update",
                "template:create",
                "template:delete",
                "template:read",
                "template:update",
                "unibox:archive",
                "unibox:label",
                "unibox:read",
                "unibox:reply",
                "usage:read",
                "webhook:create",
                "webhook:delete",
                "webhook:read",
                "webhook:update",
                "whiteLabel:read",
                "whiteLabel:update",
                "workflow:create",
                "workflow:delete",
                "workflow:publish",
                "workflow:read",
                "workflow:run",
                "workflow:update",
                "workspace:create",
                "workspace:delete",
                "workspace:read",
                "workspace:transfer",
                "workspace:update",
                "workspaceMember:invite",
                "workspaceMember:read",
                "workspaceMember:remove",
                "workspaceMember:update"
              ]
            },
            "minItems": 1,
            "maxItems": 200
          },
          "durationHours": {
            "$ref": "#/$defs/SupportAccessDurationHours"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmed": {
            "type": "boolean",
            "enum": [
              true
            ]
          }
        },
        "required": [
          "workspaceId",
          "permissions",
          "confirmed"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|permissions|durationHours|reason|confirmed)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "permissions",
            "durationHours",
            "reason",
            "confirmed"
          ]
        },
        "$defs": {
          "SupportAccessDurationHours": {
            "type": "number",
            "enum": [
              24,
              72,
              168
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "SupportAccessGrantId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "SupportAccessStatus": {
            "type": "string",
            "enum": [
              "active",
              "expired",
              "revoked"
            ]
          },
          "SupportAccessDurationHours": {
            "type": "number",
            "enum": [
              24,
              72,
              168
            ]
          },
          "SupportAccessPerson": {
            "type": "object",
            "properties": {
              "userId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "userId",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:userId|email)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "email"
              ]
            }
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "SupportAccessGrant": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/SupportAccessGrantId"
              },
              "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"
              },
              "status": {
                "$ref": "#/$defs/SupportAccessStatus"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "agent:capabilities",
                    "agent:identity",
                    "agent:operations:cancel",
                    "agent:operations:read",
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "audit:read",
                    "billing:manage",
                    "billing:read",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "org:delete",
                    "orgAnalytics:read",
                    "orgAnalytics:manage",
                    "org:read",
                    "org:update",
                    "orgApiKey:manage",
                    "orgMember:invite",
                    "orgMember:read",
                    "orgMember:remove",
                    "orgMember:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "platform:operate",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "role:manage",
                    "role:read",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "usage:read",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:create",
                    "workspace:delete",
                    "workspace:read",
                    "workspace:transfer",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "durationHours": {
                "$ref": "#/$defs/SupportAccessDurationHours"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "grantedBy": {
                "$ref": "#/$defs/SupportAccessPerson"
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "revokedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "revokedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/SupportAccessPerson"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastUsedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "permissions",
              "durationHours",
              "reason",
              "grantedBy",
              "createdAt",
              "expiresAt",
              "revokedAt",
              "revokedBy",
              "lastUsedAt"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|permissions|durationHours|reason|grantedBy|createdAt|expiresAt|revokedAt|revokedBy|lastUsedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "permissions",
                "durationHours",
                "reason",
                "grantedBy",
                "createdAt",
                "expiresAt",
                "revokedAt",
                "revokedBy",
                "lastUsedAt"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/SupportAccessGrant"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/SupportAccessGrant"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "grant_support_access"
      },
      "scopes": [
        "workspaceMember:invite"
      ],
      "bundles": [
        "support_access"
      ],
      "risk": "security_admin",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "supportAccess.grant"
      ],
      "invocations": [
        {
          "operationId": "supportAccess.grant",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/support-access",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "agent:capabilities",
                "agent:identity",
                "agent:operations:cancel",
                "agent:operations:read",
                "analytics:export",
                "analytics:read",
                "apiKey:create",
                "apiKey:delete",
                "apiKey:read",
                "apiKey:update",
                "audit:read",
                "billing:manage",
                "billing:read",
                "blocklist:create",
                "blocklist:delete",
                "blocklist:read",
                "campaign:archive",
                "campaign:create",
                "campaign:delete",
                "campaign:launch",
                "campaign:pause",
                "campaign:read",
                "campaign:update",
                "dialer:assign_numbers",
                "dialer:assign_seats",
                "dialer:create",
                "dialer:delete",
                "dialer:dial",
                "dialer:manage_billing",
                "dialer:manage_number_health",
                "dialer:manage_numbers",
                "dialer:manage_numbers_self",
                "dialer:manage_voicemails",
                "dialer:read",
                "dialer:read_analytics",
                "dialer:read_numbers_all",
                "dialer:release_numbers",
                "dialer:update",
                "domain:manage_dns",
                "domain:purchase",
                "domain:read",
                "domain:transfer",
                "emailVerification:manage_credits",
                "emailVerification:manage_keys",
                "emailVerification:manage_sharing",
                "emailVerification:read",
                "emailVerification:verify",
                "inbox:connect",
                "inbox:create",
                "inbox:delete",
                "inbox:read",
                "inbox:update",
                "inbox:warmup_manage",
                "integration:create",
                "integration:delete",
                "integration:read",
                "integration:update",
                "lead:create",
                "lead:delete",
                "lead:export",
                "lead:import",
                "lead:read",
                "lead:update",
                "leadList:create",
                "leadList:delete",
                "leadList:read",
                "leadList:update",
                "org:delete",
                "orgAnalytics:read",
                "orgAnalytics:manage",
                "org:read",
                "org:update",
                "orgApiKey:manage",
                "orgMember:invite",
                "orgMember:read",
                "orgMember:remove",
                "orgMember:update",
                "phoneVerification:manage_keys",
                "phoneVerification:read",
                "phoneVerification:verify",
                "platform:operate",
                "replyLabel:create",
                "replyLabel:delete",
                "replyLabel:read",
                "replyLabel:update",
                "role:manage",
                "role:read",
                "sequence:create",
                "sequence:delete",
                "sequence:read",
                "sequence:update",
                "sql:manage_dashboards",
                "sql:query",
                "support:create",
                "support:read",
                "support:update",
                "tag:create",
                "tag:delete",
                "tag:read",
                "tag:update",
                "task:create",
                "task:delete",
                "task:read",
                "task:update",
                "template:create",
                "template:delete",
                "template:read",
                "template:update",
                "unibox:archive",
                "unibox:label",
                "unibox:read",
                "unibox:reply",
                "usage:read",
                "webhook:create",
                "webhook:delete",
                "webhook:read",
                "webhook:update",
                "whiteLabel:read",
                "whiteLabel:update",
                "workflow:create",
                "workflow:delete",
                "workflow:publish",
                "workflow:read",
                "workflow:run",
                "workflow:update",
                "workspace:create",
                "workspace:delete",
                "workspace:read",
                "workspace:transfer",
                "workspace:update",
                "workspaceMember:invite",
                "workspaceMember:read",
                "workspaceMember:remove",
                "workspaceMember:update"
              ]
            },
            "minItems": 1,
            "maxItems": 200
          },
          "durationHours": {
            "$ref": "#/$defs/SupportAccessDurationHours"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmed": {
            "type": "boolean",
            "enum": [
              true
            ]
          }
        },
        "required": [
          "workspaceId",
          "permissions",
          "confirmed"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|permissions|durationHours|reason|confirmed)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "permissions",
            "durationHours",
            "reason",
            "confirmed"
          ]
        },
        "$defs": {
          "SupportAccessDurationHours": {
            "type": "number",
            "enum": [
              24,
              72,
              168
            ]
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "import_attio_list",
      "description": "Import an Attio list — or chosen entries of it — into a campaign as a durable operation, creating unified leads through the same primitive as a single import.\n\nUse for bulk imports. Poll the returned operation handle, then read the import record (read_attio_records import_history or import_details) for counts and row failures.\n\nRefused with Conflict while an import of the same list into the same campaign is still running. People without an email are skipped and reported, never enrolled.",
      "inputSchema": {
        "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"
          },
          "import": {
            "type": "object",
            "properties": {
              "listId": {
                "$ref": "#/$defs/ProviderId"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "mappingId": {
                "$ref": "#/$defs/AttioFieldMappingId"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal"
                ]
              },
              "duplicateBehavior": {
                "type": "string",
                "enum": [
                  "skip",
                  "update"
                ]
              },
              "entryIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProviderId"
                },
                "minItems": 1,
                "maxItems": 10000
              }
            },
            "required": [
              "listId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:listId|campaignId|mappingId|emailStrategy|duplicateBehavior|entryIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "listId",
                "campaignId",
                "mappingId",
                "emailStrategy",
                "duplicateBehavior",
                "entryIds"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "import"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|import)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "import"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "AttioFieldMappingId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "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"
          },
          "statusUrl": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "$ref": "#/$defs/HttpResourcePath"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "waiting_for_user",
              "succeeded",
              "partially_succeeded",
              "failed",
              "canceled",
              "canceling"
            ]
          },
          "acceptedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "progress": {
            "type": "object",
            "properties": {
              "completed": {
                "type": "integer",
                "minimum": 0
              },
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "message": {
                "$ref": "#/$defs/NonEmptyString"
              }
            },
            "required": [
              "completed"
            ],
            "patternProperties": {
              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "completed",
                "total",
                "message"
              ]
            }
          },
          "canCancel": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "statusUrl",
          "state",
          "acceptedAt",
          "canCancel"
        ],
        "patternProperties": {
          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "statusUrl",
            "state",
            "acceptedAt",
            "progress",
            "canCancel"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          }
        }
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "attioImports.list"
      },
      "scopes": [
        "lead:import",
        "integration:read"
      ],
      "bundles": [
        "attio_crm"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "attioImports.list"
      ],
      "invocations": [
        {
          "operationId": "attioImports.list",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/imports/list",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "import": {
            "type": "object",
            "properties": {
              "listId": {
                "$ref": "#/$defs/ProviderId"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "mappingId": {
                "$ref": "#/$defs/AttioFieldMappingId"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal"
                ]
              },
              "duplicateBehavior": {
                "type": "string",
                "enum": [
                  "skip",
                  "update"
                ]
              },
              "entryIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProviderId"
                },
                "minItems": 1,
                "maxItems": 10000
              }
            },
            "required": [
              "listId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:listId|campaignId|mappingId|emailStrategy|duplicateBehavior|entryIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "listId",
                "campaignId",
                "mappingId",
                "emailStrategy",
                "duplicateBehavior",
                "entryIds"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "import"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|import)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "import"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "AttioFieldMappingId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "import_attio_person",
      "description": "Import one Attio person into a campaign as a unified lead plus its campaign contact, using the email address a person chose from the import preview.\n\nUse after read_attio_records' person_import_preview, once the email to import is settled. The result says whether the lead was created or matched and reports any contact point that stayed with another lead.\n\nRefused with Conflict when that email is already a contact in the campaign — it is never enrolled twice. For more than one person, use import_attio_list, which is durable.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "import": {
            "type": "object",
            "properties": {
              "recordId": {
                "$ref": "#/$defs/ProviderId"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "selectedEmail": {
                "$ref": "#/$defs/EmailAddress"
              },
              "mappingId": {
                "$ref": "#/$defs/AttioFieldMappingId"
              },
              "customFieldValues": {
                "type": "object",
                "additionalProperties": true,
                "minProperties": 0,
                "maxProperties": 100
              }
            },
            "required": [
              "recordId",
              "campaignId",
              "selectedEmail"
            ],
            "patternProperties": {
              "^(?!(?:recordId|campaignId|selectedEmail|mappingId|customFieldValues)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "recordId",
                "campaignId",
                "selectedEmail",
                "mappingId",
                "customFieldValues"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "import"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|import)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "import"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "AttioFieldMappingId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "AttioImportId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "AttioImportPersonResult": {
            "type": "object",
            "properties": {
              "importId": {
                "$ref": "#/$defs/AttioImportId"
              },
              "campaignContactId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "leadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "leadCreated": {
                "type": "boolean"
              },
              "conflicts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "email",
                        "phone"
                      ]
                    },
                    "value": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "ownedByLeadId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    }
                  },
                  "required": [
                    "kind",
                    "value",
                    "ownedByLeadId"
                  ],
                  "patternProperties": {
                    "^(?!(?:kind|value|ownedByLeadId)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "kind",
                      "value",
                      "ownedByLeadId"
                    ]
                  }
                },
                "maxItems": 100
              }
            },
            "required": [
              "importId",
              "campaignContactId",
              "leadId",
              "leadCreated",
              "conflicts"
            ],
            "patternProperties": {
              "^(?!(?:importId|campaignContactId|leadId|leadCreated|conflicts)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "importId",
                "campaignContactId",
                "leadId",
                "leadCreated",
                "conflicts"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/AttioImportPersonResult"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/AttioImportPersonResult"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "import_attio_person"
      },
      "scopes": [
        "lead:import",
        "integration:read"
      ],
      "bundles": [
        "attio_crm"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "attioImports.person"
      ],
      "invocations": [
        {
          "operationId": "attioImports.person",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/imports/person",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "import": {
            "type": "object",
            "properties": {
              "recordId": {
                "$ref": "#/$defs/ProviderId"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "selectedEmail": {
                "$ref": "#/$defs/EmailAddress"
              },
              "mappingId": {
                "$ref": "#/$defs/AttioFieldMappingId"
              },
              "customFieldValues": {
                "type": "object",
                "additionalProperties": true,
                "minProperties": 0,
                "maxProperties": 100
              }
            },
            "required": [
              "recordId",
              "campaignId",
              "selectedEmail"
            ],
            "patternProperties": {
              "^(?!(?:recordId|campaignId|selectedEmail|mappingId|customFieldValues)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "recordId",
                "campaignId",
                "selectedEmail",
                "mappingId",
                "customFieldValues"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "import"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|import)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "import"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "AttioFieldMappingId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "import_leads",
      "description": "Import rows or bulk-create leads into a lead list via email-keyed never-clear upserts; action selects import or bulk_create.\n\nUse for JSON row imports (<=10,000) or the Add Lead bulk path; blank values never erase data.\n\nAttio sync is available only for a single-lead bulk create and is gated on the outbound toggle.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "leadListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "import",
              "bulk_create"
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "acquisitionSource": {
                  "type": "string",
                  "maxLength": 256
                },
                "email": {
                  "$ref": "#/$defs/EmailAddress"
                },
                "firstName": {
                  "type": "string",
                  "maxLength": 256
                },
                "lastName": {
                  "type": "string",
                  "maxLength": 256
                },
                "company": {
                  "type": "string",
                  "maxLength": 256
                },
                "city": {
                  "type": "string",
                  "maxLength": 256
                },
                "state": {
                  "type": "string",
                  "maxLength": 256
                },
                "country": {
                  "type": "string",
                  "maxLength": 256
                },
                "customFields": {
                  "$ref": "#/$defs/LeadCustomFieldValues"
                },
                "emails": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "phones": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "ladder": {
                  "type": "string",
                  "maxLength": 256
                },
                "rank": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "email",
                "firstName",
                "lastName"
              ],
              "patternProperties": {
                "^(?!(?:acquisitionSource|email|firstName|lastName|company|city|state|country|customFields|emails|phones|ladder|rank)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "acquisitionSource",
                  "email",
                  "firstName",
                  "lastName",
                  "company",
                  "city",
                  "state",
                  "country",
                  "customFields",
                  "emails",
                  "phones",
                  "ladder",
                  "rank"
                ]
              }
            },
            "maxItems": 10000
          },
          "leads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "acquisitionSource": {
                  "type": "string",
                  "maxLength": 256
                },
                "email": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "firstName": {
                  "type": "string",
                  "maxLength": 256
                },
                "lastName": {
                  "type": "string",
                  "maxLength": 256
                },
                "company": {
                  "type": "string",
                  "maxLength": 256
                },
                "city": {
                  "type": "string",
                  "maxLength": 256
                },
                "state": {
                  "type": "string",
                  "maxLength": 256
                },
                "country": {
                  "type": "string",
                  "maxLength": 256
                },
                "customFieldValues": {
                  "$ref": "#/$defs/LeadCustomFieldValues"
                },
                "emails": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "phones": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/LeadPhoneValue"
                  }
                },
                "ladder": {
                  "$ref": "#/$defs/ShortText"
                },
                "rank": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "email",
                "firstName",
                "lastName"
              ],
              "patternProperties": {
                "^(?!(?:acquisitionSource|email|firstName|lastName|company|city|state|country|customFieldValues|emails|phones|ladder|rank)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "acquisitionSource",
                  "email",
                  "firstName",
                  "lastName",
                  "company",
                  "city",
                  "state",
                  "country",
                  "customFieldValues",
                  "emails",
                  "phones",
                  "ladder",
                  "rank"
                ]
              }
            },
            "maxItems": 10000
          },
          "syncToAttio": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "leadListId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|leadListId|action|rows|leads|syncToAttio)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "leadListId",
            "action",
            "rows",
            "leads",
            "syncToAttio"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "LeadCustomFieldValues": {
            "type": "object",
            "additionalProperties": true
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "LeadPhoneValue": {
            "type": "string",
            "minLength": 2,
            "maxLength": 32,
            "pattern": "^\\+?[0-9]+(;ext=[0-9]+)?$"
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "imported": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "imported"
                    ],
                    "patternProperties": {
                      "^(?!(?:imported)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "imported"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "created": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "created"
                    ],
                    "patternProperties": {
                      "^(?!(?:created)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "created"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "imported": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "imported"
                        ],
                        "patternProperties": {
                          "^(?!(?:imported)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "imported"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "created": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "created"
                        ],
                        "patternProperties": {
                          "^(?!(?:created)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "created"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "import_leads"
      },
      "scopes": [
        "lead:import",
        "lead:create"
      ],
      "bundles": [
        "lead_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "leads.import",
        "leads.bulkCreate"
      ],
      "invocations": [
        {
          "operationId": "leads.import",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/leads/import",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.bulkCreate",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/leads/bulk",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "leadListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "import",
              "bulk_create"
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "acquisitionSource": {
                  "type": "string",
                  "maxLength": 256
                },
                "email": {
                  "$ref": "#/$defs/EmailAddress"
                },
                "firstName": {
                  "type": "string",
                  "maxLength": 256
                },
                "lastName": {
                  "type": "string",
                  "maxLength": 256
                },
                "company": {
                  "type": "string",
                  "maxLength": 256
                },
                "city": {
                  "type": "string",
                  "maxLength": 256
                },
                "state": {
                  "type": "string",
                  "maxLength": 256
                },
                "country": {
                  "type": "string",
                  "maxLength": 256
                },
                "customFields": {
                  "$ref": "#/$defs/LeadCustomFieldValues"
                },
                "emails": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "phones": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "ladder": {
                  "type": "string",
                  "maxLength": 256
                },
                "rank": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "email",
                "firstName",
                "lastName"
              ],
              "patternProperties": {
                "^(?!(?:acquisitionSource|email|firstName|lastName|company|city|state|country|customFields|emails|phones|ladder|rank)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "acquisitionSource",
                  "email",
                  "firstName",
                  "lastName",
                  "company",
                  "city",
                  "state",
                  "country",
                  "customFields",
                  "emails",
                  "phones",
                  "ladder",
                  "rank"
                ]
              }
            },
            "maxItems": 10000
          },
          "leads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "acquisitionSource": {
                  "type": "string",
                  "maxLength": 256
                },
                "email": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "firstName": {
                  "type": "string",
                  "maxLength": 256
                },
                "lastName": {
                  "type": "string",
                  "maxLength": 256
                },
                "company": {
                  "type": "string",
                  "maxLength": 256
                },
                "city": {
                  "type": "string",
                  "maxLength": 256
                },
                "state": {
                  "type": "string",
                  "maxLength": 256
                },
                "country": {
                  "type": "string",
                  "maxLength": 256
                },
                "customFieldValues": {
                  "$ref": "#/$defs/LeadCustomFieldValues"
                },
                "emails": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "phones": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/LeadPhoneValue"
                  }
                },
                "ladder": {
                  "$ref": "#/$defs/ShortText"
                },
                "rank": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "email",
                "firstName",
                "lastName"
              ],
              "patternProperties": {
                "^(?!(?:acquisitionSource|email|firstName|lastName|company|city|state|country|customFieldValues|emails|phones|ladder|rank)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "acquisitionSource",
                  "email",
                  "firstName",
                  "lastName",
                  "company",
                  "city",
                  "state",
                  "country",
                  "customFieldValues",
                  "emails",
                  "phones",
                  "ladder",
                  "rank"
                ]
              }
            },
            "maxItems": 10000
          },
          "syncToAttio": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "leadListId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|leadListId|action|rows|leads|syncToAttio)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "leadListId",
            "action",
            "rows",
            "leads",
            "syncToAttio"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "LeadCustomFieldValues": {
            "type": "object",
            "additionalProperties": true
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "LeadPhoneValue": {
            "type": "string",
            "minLength": 2,
            "maxLength": 32,
            "pattern": "^\\+?[0-9]+(;ext=[0-9]+)?$"
          }
        }
      }
    },
    {
      "feature": "commerce",
      "name": "inspect_billing",
      "description": "Read an Organization's subscription (plan, status, seats, billing period, pending cancellation, frozen state, and plan limits).\n\nUse to answer what plan a customer is on, why a workspace is frozen, or what it is entitled to.\n\nDo not use it to change the plan or cancel; those need a person. Use the product-specific retention eligibility tools when a person asks about an offboarding offer. A Workspace id resolves to its parent billing Organization.",
      "inputSchema": {
        "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": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "subscription"
                ]
              }
            },
            "required": [
              "kind"
            ],
            "patternProperties": {
              "^(?!(?:kind)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "kind"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "subscriptions": {
            "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"
                },
                "plan": {
                  "type": "string",
                  "enum": [
                    "trial",
                    "starter",
                    "growth",
                    "pro"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "incomplete",
                    "incomplete_expired",
                    "trialing",
                    "active",
                    "past_due",
                    "canceled",
                    "unpaid",
                    "paused",
                    "frozen"
                  ]
                },
                "billingCycle": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "monthly",
                        "annual"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "seats": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "trialStart": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "trialEnd": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "periodStart": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "periodEnd": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "cancelAtPeriodEnd": {
                  "type": "boolean"
                },
                "pastDueSince": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "stripeCustomerId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ProviderId"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "stripeSubscriptionId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ProviderId"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "priceId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ProviderId"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "frozen": {
                  "type": "boolean"
                },
                "limits": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "maxEmailsPerMonth": {
                          "type": "integer",
                          "minimum": -1
                        },
                        "maxInboxes": {
                          "type": "integer",
                          "minimum": -1
                        },
                        "maxCampaigns": {
                          "type": "integer",
                          "minimum": -1
                        },
                        "maxContactsPerCampaign": {
                          "type": "integer",
                          "minimum": -1
                        },
                        "whiteLabelEnabled": {
                          "type": "boolean"
                        },
                        "prioritySupport": {
                          "type": "boolean"
                        },
                        "warmupPoolTier": {
                          "type": "string",
                          "enum": [
                            "standard",
                            "premium"
                          ]
                        },
                        "maxWarmupEmailsPerDay": {
                          "type": "integer",
                          "minimum": -1
                        },
                        "maxWarmupInboxes": {
                          "type": "integer",
                          "minimum": -1
                        },
                        "privatePoolEnabled": {
                          "type": "boolean"
                        },
                        "dedicatedEgressEnabled": {
                          "type": "boolean"
                        },
                        "maxActiveEgressIps": {
                          "type": "integer",
                          "minimum": -1
                        },
                        "egressInfrastructureBudgetCents": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "byokEnabled": {
                          "type": "boolean"
                        },
                        "fullMailboxSyncEnabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "maxEmailsPerMonth",
                        "maxInboxes",
                        "maxCampaigns",
                        "maxContactsPerCampaign",
                        "whiteLabelEnabled",
                        "prioritySupport",
                        "warmupPoolTier",
                        "maxWarmupEmailsPerDay",
                        "maxWarmupInboxes",
                        "privatePoolEnabled",
                        "dedicatedEgressEnabled",
                        "maxActiveEgressIps",
                        "egressInfrastructureBudgetCents",
                        "byokEnabled",
                        "fullMailboxSyncEnabled"
                      ],
                      "patternProperties": {
                        "^(?!(?:maxEmailsPerMonth|maxInboxes|maxCampaigns|maxContactsPerCampaign|whiteLabelEnabled|prioritySupport|warmupPoolTier|maxWarmupEmailsPerDay|maxWarmupInboxes|privatePoolEnabled|dedicatedEgressEnabled|maxActiveEgressIps|egressInfrastructureBudgetCents|byokEnabled|fullMailboxSyncEnabled)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "maxEmailsPerMonth",
                          "maxInboxes",
                          "maxCampaigns",
                          "maxContactsPerCampaign",
                          "whiteLabelEnabled",
                          "prioritySupport",
                          "warmupPoolTier",
                          "maxWarmupEmailsPerDay",
                          "maxWarmupInboxes",
                          "privatePoolEnabled",
                          "dedicatedEgressEnabled",
                          "maxActiveEgressIps",
                          "egressInfrastructureBudgetCents",
                          "byokEnabled",
                          "fullMailboxSyncEnabled"
                        ]
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "plan",
                "status",
                "billingCycle",
                "seats",
                "trialStart",
                "trialEnd",
                "periodStart",
                "periodEnd",
                "cancelAtPeriodEnd",
                "pastDueSince",
                "stripeCustomerId",
                "stripeSubscriptionId",
                "priceId",
                "frozen",
                "limits"
              ],
              "patternProperties": {
                "^(?!(?:id|plan|status|billingCycle|seats|trialStart|trialEnd|periodStart|periodEnd|cancelAtPeriodEnd|pastDueSince|stripeCustomerId|stripeSubscriptionId|priceId|frozen|limits)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "plan",
                  "status",
                  "billingCycle",
                  "seats",
                  "trialStart",
                  "trialEnd",
                  "periodStart",
                  "periodEnd",
                  "cancelAtPeriodEnd",
                  "pastDueSince",
                  "stripeCustomerId",
                  "stripeSubscriptionId",
                  "priceId",
                  "frozen",
                  "limits"
                ]
              }
            },
            "maxItems": 20
          }
        },
        "required": [
          "subscriptions"
        ],
        "patternProperties": {
          "^(?!(?:subscriptions)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "subscriptions"
              ]
            }
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "inspect_billing"
      },
      "scopes": [
        "billing:read"
      ],
      "bundles": [
        "billing_manager",
        "billing_reader"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "billing.getSubscription"
      ],
      "invocations": [
        {
          "operationId": "billing.getSubscription",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/billing/subscription",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "subscription"
                ]
              }
            },
            "required": [
              "kind"
            ],
            "patternProperties": {
              "^(?!(?:kind)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "kind"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "inspect_campaign",
      "description": "Inspect a campaign's bounded projection and step summaries without sender credentials.\n\nUse first to learn the campaign's status, version, and step shape before validating or launching.\n\nStep content bodies and sender internals are never returned; do not probe for them.",
      "inputSchema": {
        "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "campaignId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|campaignId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "campaignId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "campaign": {
            "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"
              },
              "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"
              },
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "status": {
                "type": "string",
                "enum": [
                  "draft",
                  "active",
                  "paused",
                  "archived",
                  "completed"
                ]
              },
              "pauseContext": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "manual"
                                ]
                              }
                            ]
                          },
                          "pausedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "source": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "user"
                                ]
                              }
                            ]
                          },
                          "evidence": {
                            "type": "null"
                          }
                        },
                        "required": [
                          "reason",
                          "pausedAt",
                          "source",
                          "evidence"
                        ],
                        "patternProperties": {
                          "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "reason",
                            "pausedAt",
                            "source",
                            "evidence"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "bounce_threshold"
                                ]
                              }
                            ]
                          },
                          "pausedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "source": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "system"
                                ]
                              }
                            ]
                          },
                          "evidence": {
                            "type": "object",
                            "properties": {
                              "thresholdPercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "bounceRatePercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "sentCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "bouncedCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "recipientBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "senderBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unclassifiedBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "scope": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "campaign_lifetime"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "thresholdPercent",
                              "bounceRatePercent",
                              "sentCount",
                              "bouncedCount",
                              "recipientBounceCount",
                              "senderBounceCount",
                              "unclassifiedBounceCount",
                              "scope"
                            ],
                            "patternProperties": {
                              "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "thresholdPercent",
                                "bounceRatePercent",
                                "sentCount",
                                "bouncedCount",
                                "recipientBounceCount",
                                "senderBounceCount",
                                "unclassifiedBounceCount",
                                "scope"
                              ]
                            }
                          }
                        },
                        "required": [
                          "reason",
                          "pausedAt",
                          "source",
                          "evidence"
                        ],
                        "patternProperties": {
                          "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "reason",
                            "pausedAt",
                            "source",
                            "evidence"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "unknown"
                                ]
                              }
                            ]
                          },
                          "pausedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "source": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "unknown"
                                ]
                              }
                            ]
                          },
                          "evidence": {
                            "type": "null"
                          }
                        },
                        "required": [
                          "reason",
                          "pausedAt",
                          "source",
                          "evidence"
                        ],
                        "patternProperties": {
                          "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "reason",
                            "pausedAt",
                            "source",
                            "evidence"
                          ]
                        }
                      }
                    ],
                    "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ShortText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "currentVersion": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "inboxCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "contactCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "updatedAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "name",
              "status",
              "kind",
              "currentVersion",
              "inboxCount",
              "contactCount",
              "createdAt",
              "updatedAt"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|name|status|pauseContext|kind|currentVersion|inboxCount|contactCount|createdAt|updatedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "name",
                "status",
                "pauseContext",
                "kind",
                "currentVersion",
                "inboxCount",
                "contactCount",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "steps": {
            "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"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "email_content",
                    "manual_review",
                    "linked_in_connection_request",
                    "linked_in_in_mail",
                    "phone_call",
                    "text_message",
                    "http_post_request",
                    "attio_task",
                    "heyreach_campaign"
                  ]
                },
                "enabled": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "type",
                "enabled"
              ],
              "patternProperties": {
                "^(?!(?:id|type|enabled)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "type",
                  "enabled"
                ]
              }
            }
          }
        },
        "required": [
          "campaign",
          "steps"
        ],
        "patternProperties": {
          "^(?!(?:campaign|steps)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "campaign",
            "steps"
          ]
        },
        "$defs": {
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "inspect_campaign"
      },
      "scopes": [
        "campaign:read"
      ],
      "bundles": [
        "campaigns"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaigns.get"
      ],
      "invocations": [
        {
          "operationId": "campaigns.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "campaignId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|campaignId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "campaignId"
          ]
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "inspect_campaign_delivery",
      "description": "Inspect delayed campaign sends, their outcomes, and individual delivery notices.\n\nUse to distinguish a pending delay from a final failure or unconfirmed result and to inspect source diagnostics before deciding whether to resume a held enrollment.\n\nSubmission to an ESP or absence of a bounce does not prove delivery. This tool does not resume or resend messages.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "list"
                ]
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "pending",
                  "delivered",
                  "failed",
                  "unconfirmed"
                ]
              },
              "cause": {
                "type": "string",
                "enum": [
                  "sender",
                  "recipient",
                  "unclassified"
                ]
              },
              "failureCharacter": {
                "type": "string",
                "enum": [
                  "temporary",
                  "permanent",
                  "unknown"
                ]
              },
              "sequenceDisposition": {
                "type": "string",
                "enum": [
                  "held",
                  "continued",
                  "resumed",
                  "stopped"
                ]
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope|outcome|cause|failureCharacter|sequenceDisposition|limit|offset)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope",
                "outcome",
                "cause",
                "failureCharacter",
                "sequenceDisposition",
                "limit",
                "offset"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "summary"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "detail"
                ]
              },
              "sendHistoryId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "evidenceOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "evidenceLimit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 200
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope",
              "sendHistoryId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope|sendHistoryId|evidenceOffset|evidenceLimit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope",
                "sendHistoryId",
                "evidenceOffset",
                "evidenceLimit"
              ]
            }
          }
        ]
      },
      "outputSchema": {
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "sendHistoryId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "campaignId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "campaignContactId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "recipientEmail": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "pass": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "outcome": {
                              "type": "string",
                              "enum": [
                                "pending",
                                "delivered",
                                "failed",
                                "unconfirmed"
                              ]
                            },
                            "cause": {
                              "type": "string",
                              "enum": [
                                "sender",
                                "recipient",
                                "unclassified"
                              ]
                            },
                            "failureCharacter": {
                              "type": "string",
                              "enum": [
                                "temporary",
                                "permanent",
                                "unknown"
                              ]
                            },
                            "sequenceDisposition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "held",
                                    "continued",
                                    "resumed",
                                    "stopped"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "firstDelayedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastEvidenceAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "monitoringEndsAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "providerRetryUntil": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confirmedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "outcomeAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "conflictingEvidence": {
                              "type": "boolean"
                            },
                            "canResume": {
                              "type": "boolean"
                            },
                            "canStop": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "sendHistoryId",
                            "campaignId",
                            "campaignContactId",
                            "recipientEmail",
                            "pass",
                            "outcome",
                            "cause",
                            "failureCharacter",
                            "sequenceDisposition",
                            "firstDelayedAt",
                            "lastEvidenceAt",
                            "monitoringEndsAt",
                            "providerRetryUntil",
                            "confirmedAt",
                            "outcomeAt",
                            "conflictingEvidence",
                            "canResume",
                            "canStop"
                          ],
                          "patternProperties": {
                            "^(?!(?:sendHistoryId|campaignId|campaignContactId|recipientEmail|pass|outcome|cause|failureCharacter|sequenceDisposition|firstDelayedAt|lastEvidenceAt|monitoringEndsAt|providerRetryUntil|confirmedAt|outcomeAt|conflictingEvidence|canResume|canStop)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "sendHistoryId",
                              "campaignId",
                              "campaignContactId",
                              "recipientEmail",
                              "pass",
                              "outcome",
                              "cause",
                              "failureCharacter",
                              "sequenceDisposition",
                              "firstDelayedAt",
                              "lastEvidenceAt",
                              "monitoringEndsAt",
                              "providerRetryUntil",
                              "confirmedAt",
                              "outcomeAt",
                              "conflictingEvidence",
                              "canResume",
                              "canStop"
                            ]
                          }
                        }
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "offset": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "items",
                      "total",
                      "limit",
                      "offset"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|total|limit|offset)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "total",
                        "limit",
                        "offset"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pending": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "delivered": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "failed": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unconfirmed": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "pending",
                      "delivered",
                      "failed",
                      "unconfirmed",
                      "total"
                    ],
                    "patternProperties": {
                      "^(?!(?:pending|delivered|failed|unconfirmed|total)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "delivered",
                        "failed",
                        "unconfirmed",
                        "total"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "delivery": {
                        "type": "object",
                        "properties": {
                          "sendHistoryId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "campaignContactId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "recipientEmail": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "pass": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "outcome": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "delivered",
                              "failed",
                              "unconfirmed"
                            ]
                          },
                          "cause": {
                            "type": "string",
                            "enum": [
                              "sender",
                              "recipient",
                              "unclassified"
                            ]
                          },
                          "failureCharacter": {
                            "type": "string",
                            "enum": [
                              "temporary",
                              "permanent",
                              "unknown"
                            ]
                          },
                          "sequenceDisposition": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "held",
                                  "continued",
                                  "resumed",
                                  "stopped"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "firstDelayedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastEvidenceAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "monitoringEndsAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "providerRetryUntil": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confirmedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "outcomeAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "conflictingEvidence": {
                            "type": "boolean"
                          },
                          "canResume": {
                            "type": "boolean"
                          },
                          "canStop": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "sendHistoryId",
                          "campaignId",
                          "campaignContactId",
                          "recipientEmail",
                          "pass",
                          "outcome",
                          "cause",
                          "failureCharacter",
                          "sequenceDisposition",
                          "firstDelayedAt",
                          "lastEvidenceAt",
                          "monitoringEndsAt",
                          "providerRetryUntil",
                          "confirmedAt",
                          "outcomeAt",
                          "conflictingEvidence",
                          "canResume",
                          "canStop"
                        ],
                        "patternProperties": {
                          "^(?!(?:sendHistoryId|campaignId|campaignContactId|recipientEmail|pass|outcome|cause|failureCharacter|sequenceDisposition|firstDelayedAt|lastEvidenceAt|monitoringEndsAt|providerRetryUntil|confirmedAt|outcomeAt|conflictingEvidence|canResume|canStop)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "sendHistoryId",
                            "campaignId",
                            "campaignContactId",
                            "recipientEmail",
                            "pass",
                            "outcome",
                            "cause",
                            "failureCharacter",
                            "sequenceDisposition",
                            "firstDelayedAt",
                            "lastEvidenceAt",
                            "monitoringEndsAt",
                            "providerRetryUntil",
                            "confirmedAt",
                            "outcomeAt",
                            "conflictingEvidence",
                            "canResume",
                            "canStop"
                          ]
                        }
                      },
                      "evidence": {
                        "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"
                            },
                            "action": {
                              "type": "string",
                              "enum": [
                                "delayed",
                                "delivered",
                                "failed",
                                "relayed",
                                "expanded",
                                "unknown"
                              ]
                            },
                            "source": {
                              "type": "string"
                            },
                            "sourceMessageId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "diagnostic": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "statusCode": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "recipientEmail": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "observedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "occurredAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "failureCharacter": {
                              "type": "string",
                              "enum": [
                                "temporary",
                                "permanent",
                                "unknown"
                              ]
                            },
                            "cause": {
                              "type": "string",
                              "enum": [
                                "sender",
                                "recipient",
                                "unclassified"
                              ]
                            },
                            "providerRetryUntil": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sourceComplete": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "action",
                            "source",
                            "sourceMessageId",
                            "diagnostic",
                            "statusCode",
                            "recipientEmail",
                            "observedAt",
                            "occurredAt",
                            "failureCharacter",
                            "cause",
                            "providerRetryUntil",
                            "sourceComplete"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|action|source|sourceMessageId|diagnostic|statusCode|recipientEmail|observedAt|occurredAt|failureCharacter|cause|providerRetryUntil|sourceComplete)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "action",
                              "source",
                              "sourceMessageId",
                              "diagnostic",
                              "statusCode",
                              "recipientEmail",
                              "observedAt",
                              "occurredAt",
                              "failureCharacter",
                              "cause",
                              "providerRetryUntil",
                              "sourceComplete"
                            ]
                          }
                        }
                      },
                      "evidenceTotal": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "evidenceOffset": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "evidenceNextOffset": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "delivery",
                      "evidence",
                      "evidenceTotal",
                      "evidenceOffset",
                      "evidenceNextOffset"
                    ],
                    "patternProperties": {
                      "^(?!(?:delivery|evidence|evidenceTotal|evidenceOffset|evidenceNextOffset)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "delivery",
                        "evidence",
                        "evidenceTotal",
                        "evidenceOffset",
                        "evidenceNextOffset"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "sendHistoryId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "campaignId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "campaignContactId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "recipientEmail": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "pass": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "outcome": {
                                  "type": "string",
                                  "enum": [
                                    "pending",
                                    "delivered",
                                    "failed",
                                    "unconfirmed"
                                  ]
                                },
                                "cause": {
                                  "type": "string",
                                  "enum": [
                                    "sender",
                                    "recipient",
                                    "unclassified"
                                  ]
                                },
                                "failureCharacter": {
                                  "type": "string",
                                  "enum": [
                                    "temporary",
                                    "permanent",
                                    "unknown"
                                  ]
                                },
                                "sequenceDisposition": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "held",
                                        "continued",
                                        "resumed",
                                        "stopped"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "firstDelayedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastEvidenceAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "monitoringEndsAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "providerRetryUntil": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "confirmedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "outcomeAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "conflictingEvidence": {
                                  "type": "boolean"
                                },
                                "canResume": {
                                  "type": "boolean"
                                },
                                "canStop": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "sendHistoryId",
                                "campaignId",
                                "campaignContactId",
                                "recipientEmail",
                                "pass",
                                "outcome",
                                "cause",
                                "failureCharacter",
                                "sequenceDisposition",
                                "firstDelayedAt",
                                "lastEvidenceAt",
                                "monitoringEndsAt",
                                "providerRetryUntil",
                                "confirmedAt",
                                "outcomeAt",
                                "conflictingEvidence",
                                "canResume",
                                "canStop"
                              ],
                              "patternProperties": {
                                "^(?!(?:sendHistoryId|campaignId|campaignContactId|recipientEmail|pass|outcome|cause|failureCharacter|sequenceDisposition|firstDelayedAt|lastEvidenceAt|monitoringEndsAt|providerRetryUntil|confirmedAt|outcomeAt|conflictingEvidence|canResume|canStop)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "sendHistoryId",
                                  "campaignId",
                                  "campaignContactId",
                                  "recipientEmail",
                                  "pass",
                                  "outcome",
                                  "cause",
                                  "failureCharacter",
                                  "sequenceDisposition",
                                  "firstDelayedAt",
                                  "lastEvidenceAt",
                                  "monitoringEndsAt",
                                  "providerRetryUntil",
                                  "confirmedAt",
                                  "outcomeAt",
                                  "conflictingEvidence",
                                  "canResume",
                                  "canStop"
                                ]
                              }
                            }
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "items",
                          "total",
                          "limit",
                          "offset"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|total|limit|offset)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "total",
                            "limit",
                            "offset"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "pending": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "delivered": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "failed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unconfirmed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "pending",
                          "delivered",
                          "failed",
                          "unconfirmed",
                          "total"
                        ],
                        "patternProperties": {
                          "^(?!(?:pending|delivered|failed|unconfirmed|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "delivered",
                            "failed",
                            "unconfirmed",
                            "total"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "delivery": {
                            "type": "object",
                            "properties": {
                              "sendHistoryId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "campaignId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "campaignContactId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "recipientEmail": {
                                "$ref": "#/$defs/EmailAddress"
                              },
                              "pass": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "outcome": {
                                "type": "string",
                                "enum": [
                                  "pending",
                                  "delivered",
                                  "failed",
                                  "unconfirmed"
                                ]
                              },
                              "cause": {
                                "type": "string",
                                "enum": [
                                  "sender",
                                  "recipient",
                                  "unclassified"
                                ]
                              },
                              "failureCharacter": {
                                "type": "string",
                                "enum": [
                                  "temporary",
                                  "permanent",
                                  "unknown"
                                ]
                              },
                              "sequenceDisposition": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "held",
                                      "continued",
                                      "resumed",
                                      "stopped"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "firstDelayedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "lastEvidenceAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "monitoringEndsAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "providerRetryUntil": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "confirmedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "outcomeAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "conflictingEvidence": {
                                "type": "boolean"
                              },
                              "canResume": {
                                "type": "boolean"
                              },
                              "canStop": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "sendHistoryId",
                              "campaignId",
                              "campaignContactId",
                              "recipientEmail",
                              "pass",
                              "outcome",
                              "cause",
                              "failureCharacter",
                              "sequenceDisposition",
                              "firstDelayedAt",
                              "lastEvidenceAt",
                              "monitoringEndsAt",
                              "providerRetryUntil",
                              "confirmedAt",
                              "outcomeAt",
                              "conflictingEvidence",
                              "canResume",
                              "canStop"
                            ],
                            "patternProperties": {
                              "^(?!(?:sendHistoryId|campaignId|campaignContactId|recipientEmail|pass|outcome|cause|failureCharacter|sequenceDisposition|firstDelayedAt|lastEvidenceAt|monitoringEndsAt|providerRetryUntil|confirmedAt|outcomeAt|conflictingEvidence|canResume|canStop)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "sendHistoryId",
                                "campaignId",
                                "campaignContactId",
                                "recipientEmail",
                                "pass",
                                "outcome",
                                "cause",
                                "failureCharacter",
                                "sequenceDisposition",
                                "firstDelayedAt",
                                "lastEvidenceAt",
                                "monitoringEndsAt",
                                "providerRetryUntil",
                                "confirmedAt",
                                "outcomeAt",
                                "conflictingEvidence",
                                "canResume",
                                "canStop"
                              ]
                            }
                          },
                          "evidence": {
                            "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"
                                },
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "delayed",
                                    "delivered",
                                    "failed",
                                    "relayed",
                                    "expanded",
                                    "unknown"
                                  ]
                                },
                                "source": {
                                  "type": "string"
                                },
                                "sourceMessageId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "diagnostic": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "statusCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "recipientEmail": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "observedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "occurredAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "failureCharacter": {
                                  "type": "string",
                                  "enum": [
                                    "temporary",
                                    "permanent",
                                    "unknown"
                                  ]
                                },
                                "cause": {
                                  "type": "string",
                                  "enum": [
                                    "sender",
                                    "recipient",
                                    "unclassified"
                                  ]
                                },
                                "providerRetryUntil": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceComplete": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "action",
                                "source",
                                "sourceMessageId",
                                "diagnostic",
                                "statusCode",
                                "recipientEmail",
                                "observedAt",
                                "occurredAt",
                                "failureCharacter",
                                "cause",
                                "providerRetryUntil",
                                "sourceComplete"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|action|source|sourceMessageId|diagnostic|statusCode|recipientEmail|observedAt|occurredAt|failureCharacter|cause|providerRetryUntil|sourceComplete)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "action",
                                  "source",
                                  "sourceMessageId",
                                  "diagnostic",
                                  "statusCode",
                                  "recipientEmail",
                                  "observedAt",
                                  "occurredAt",
                                  "failureCharacter",
                                  "cause",
                                  "providerRetryUntil",
                                  "sourceComplete"
                                ]
                              }
                            }
                          },
                          "evidenceTotal": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "evidenceOffset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "evidenceNextOffset": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "delivery",
                          "evidence",
                          "evidenceTotal",
                          "evidenceOffset",
                          "evidenceNextOffset"
                        ],
                        "patternProperties": {
                          "^(?!(?:delivery|evidence|evidenceTotal|evidenceOffset|evidenceNextOffset)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "delivery",
                            "evidence",
                            "evidenceTotal",
                            "evidenceOffset",
                            "evidenceNextOffset"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "inspect_campaign_delivery"
      },
      "scopes": [
        "campaign:read"
      ],
      "bundles": [
        "campaign_delivery"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "campaignDelivery.list",
        "campaignDelivery.summary",
        "campaignDelivery.get"
      ],
      "invocations": [
        {
          "operationId": "campaignDelivery.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/delivery",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignDelivery.summary",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/delivery/summary",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignDelivery.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/delivery/:sendHistoryId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "list"
                ]
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "pending",
                  "delivered",
                  "failed",
                  "unconfirmed"
                ]
              },
              "cause": {
                "type": "string",
                "enum": [
                  "sender",
                  "recipient",
                  "unclassified"
                ]
              },
              "failureCharacter": {
                "type": "string",
                "enum": [
                  "temporary",
                  "permanent",
                  "unknown"
                ]
              },
              "sequenceDisposition": {
                "type": "string",
                "enum": [
                  "held",
                  "continued",
                  "resumed",
                  "stopped"
                ]
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope|outcome|cause|failureCharacter|sequenceDisposition|limit|offset)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope",
                    "outcome",
                    "cause",
                    "failureCharacter",
                    "sequenceDisposition",
                    "limit",
                    "offset"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "summary"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "detail"
                ]
              },
              "sendHistoryId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "evidenceOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "evidenceLimit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 200
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope",
              "sendHistoryId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope|sendHistoryId|evidenceOffset|evidenceLimit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope",
                    "sendHistoryId",
                    "evidenceOffset",
                    "evidenceLimit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "feature": "commerce",
      "name": "inspect_dialer_retention_eligibility",
      "description": "Read whether the dialer add-on is eligible for its one-time retention offer.\n\nUse when a person asks whether the named product has an offboarding discount available.\n\nThis only reads eligibility. A person in the web app must accept an offer or cancel a product.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "eligible": {
            "type": "boolean"
          },
          "label": {
            "$ref": "#/$defs/ShortText"
          },
          "discountPercent": {
            "type": "number",
            "enum": [
              30
            ]
          },
          "discountMonths": {
            "type": "number",
            "enum": [
              2
            ]
          }
        },
        "required": [
          "eligible",
          "label",
          "discountPercent",
          "discountMonths"
        ],
        "patternProperties": {
          "^(?!(?:eligible|label|discountPercent|discountMonths)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "eligible",
            "label",
            "discountPercent",
            "discountMonths"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "inspect_dialer_retention_eligibility"
      },
      "scopes": [
        "dialer:manage_billing"
      ],
      "bundles": [
        "dialer_retention_reader"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "billing.retentionEligibility"
      ],
      "invocations": [
        {
          "operationId": "billing.retentionEligibility",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/billing/retention-eligibility",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "inspect_domain_nameservers",
      "description": "Read provider-assigned nameservers and recursive DNS evidence for one authorized Workspace domain.\n\nInspect nameserver assignment coverage, stored DNS provider and observed NS values. This is read-only.\n\nDo not treat recursive DNS or a historical application timestamp as verified parent or registrar delegation. This cannot change nameservers or provision zones.",
      "inputSchema": {
        "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"
          },
          "hostname": {
            "type": "string",
            "maxLength": 253
          }
        },
        "required": [
          "workspaceId",
          "hostname"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|hostname)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "hostname"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string"
          },
          "dnsProvider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "appliedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "observed": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "observationSource": {
            "type": "string",
            "enum": [
              "recursive_dns"
            ]
          },
          "observationStatus": {
            "type": "string",
            "enum": [
              "observed",
              "unavailable"
            ]
          },
          "checkedAt": {
            "type": "string"
          },
          "comparison": {
            "type": "string",
            "enum": [
              "matches",
              "differs",
              "unknown"
            ]
          },
          "delegation": {
            "type": "string",
            "enum": [
              "unknown"
            ]
          },
          "registrarDomainId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "hostname",
          "dnsProvider",
          "expected",
          "appliedAt",
          "observed",
          "observationSource",
          "observationStatus",
          "checkedAt",
          "comparison",
          "delegation",
          "registrarDomainId"
        ],
        "additionalProperties": true
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "inspect_domain_nameservers"
      },
      "scopes": [
        "domain:read"
      ],
      "bundles": [
        "workspace_infrastructure"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "infrastructure.nameservers"
      ],
      "invocations": [
        {
          "operationId": "infrastructure.nameservers",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/infrastructure/domains/:hostname/nameservers",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "hostname": {
            "type": "string",
            "maxLength": 253
          }
        },
        "required": [
          "workspaceId",
          "hostname"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|hostname)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "hostname"
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "inspect_infrastructure",
      "description": "Inspect a workspace's domains, inboxes, issuing Google OAuth clients, evidenced Microsoft directory/client associations, API egress IPs, masking state and historical send coverage.\n\nInvestigate current resource relationships or filter a dated campaign-send cohort by domain or recorded IP. Results are paginated, read-only and limited to the selected Workspace.\n\nDo not infer recipient-facing MTA reputation, historical OAuth identity, email delivery, or active masking from configuration. Never use current assignments to fill historical coverage gaps.",
      "inputSchema": {
        "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"
          },
          "view": {
            "type": "string",
            "enum": [
              "domains",
              "inboxes",
              "oauth",
              "microsoft",
              "ips"
            ]
          },
          "search": {
            "type": "string",
            "maxLength": 320
          },
          "domain": {
            "type": "string",
            "maxLength": 320
          },
          "ip": {
            "type": "string",
            "maxLength": 320
          },
          "client": {
            "type": "string",
            "maxLength": 320
          },
          "tenant": {
            "type": "string",
            "maxLength": 320
          },
          "inbox": {
            "type": "string",
            "maxLength": 320
          },
          "provider": {
            "type": "string",
            "enum": [
              "",
              "google_workspace",
              "microsoft_365",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "maxLength": 320
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "sort": {
            "type": "string",
            "enum": [
              "name",
              "inboxes"
            ]
          },
          "from": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "to": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        },
        "required": [
          "workspaceId",
          "view",
          "search",
          "domain",
          "ip",
          "client",
          "tenant",
          "inbox",
          "provider",
          "status",
          "page",
          "sort",
          "from",
          "to"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|view|search|domain|ip|client|tenant|inbox|provider|status|page|sort|from|to)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "view",
            "search",
            "domain",
            "ip",
            "client",
            "tenant",
            "inbox",
            "provider",
            "status",
            "page",
            "sort",
            "from",
            "to"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "inboxCount": {
                  "type": "integer"
                },
                "domainCount": {
                  "type": "integer"
                },
                "domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "providers": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "statuses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "routes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "ips": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "clients": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "publicClientId": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "projectNumber": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "serviceClass": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "publicClientId",
                      "name",
                      "projectNumber",
                      "serviceClass",
                      "status"
                    ],
                    "additionalProperties": true
                  }
                },
                "microsoftTenants": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "entraTenantId": {
                        "type": "string"
                      },
                      "displayName": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "active",
                          "draining",
                          "disabled",
                          "retired"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "entraTenantId",
                      "displayName",
                      "status"
                    ],
                    "additionalProperties": true
                  }
                },
                "microsoftClientIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "microsoftInboxCount": {
                  "type": "integer"
                },
                "unknownMicrosoftTenants": {
                  "type": "integer"
                },
                "unknownMicrosoftClients": {
                  "type": "integer"
                },
                "microsoftTenantVerifiedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "boundaryId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "boundaryStatus": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "desiredClientId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reconsentRequired": {
                  "type": "boolean"
                },
                "masking": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "provider": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "mode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "target": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "desiredRevision": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "activeRevision": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "activeProvider": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "activeMode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "activeTarget": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checkedAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "websiteRouteId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "phase": {
                          "type": "string",
                          "enum": [
                            "not_configured",
                            "waiting_dns",
                            "waiting_tls",
                            "waiting_publication",
                            "active",
                            "degraded",
                            "retired",
                            "needs_attention",
                            "published_unverified",
                            "unknown"
                          ]
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "ownership_required",
                                "certificate_pending",
                                "certificate_failed",
                                "route_pending",
                                "dns_pending",
                                "health_mismatch",
                                "origin_unavailable",
                                "origin_redirects",
                                "provider_unavailable",
                                "provider_drift",
                                "retiring",
                                "provider_managed_dns",
                                "deployment_unconfigured",
                                "reconcile_failed"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "registrarDomainId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "provider",
                        "mode",
                        "target",
                        "desiredRevision",
                        "activeRevision",
                        "activeProvider",
                        "activeMode",
                        "activeTarget",
                        "checkedAt",
                        "websiteRouteId",
                        "phase",
                        "reason",
                        "updatedAt",
                        "registrarDomainId"
                      ],
                      "additionalProperties": true
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "key",
                "label",
                "inboxCount",
                "domainCount",
                "domains",
                "providers",
                "statuses",
                "routes",
                "ips",
                "clients",
                "microsoftTenants",
                "microsoftClientIds",
                "microsoftInboxCount",
                "unknownMicrosoftTenants",
                "unknownMicrosoftClients",
                "microsoftTenantVerifiedAt",
                "boundaryId",
                "boundaryStatus",
                "desiredClientId",
                "reconsentRequired",
                "masking"
              ],
              "additionalProperties": true
            }
          },
          "total": {
            "type": "integer"
          },
          "pageSize": {
            "type": "integer"
          },
          "metrics": {
            "type": "object",
            "properties": {
              "cohortSent": {
                "type": "integer"
              },
              "missingRoute": {
                "type": "integer"
              },
              "missingDomain": {
                "type": "integer"
              },
              "sent": {
                "type": "integer"
              },
              "contacted": {
                "type": "integer"
              },
              "bounced": {
                "type": "integer"
              },
              "allReplies": {
                "type": "integer"
              },
              "humanReplies": {
                "type": "integer"
              },
              "positiveReplies": {
                "type": "integer"
              },
              "outOfOffice": {
                "type": "integer"
              },
              "automaticReplies": {
                "type": "integer"
              },
              "ipAttributed": {
                "type": "integer"
              },
              "domainAttributed": {
                "type": "integer"
              },
              "direct": {
                "type": "integer"
              },
              "unknownRoute": {
                "type": "integer"
              },
              "failedAttempts": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unknownAttempts": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "cohortSent",
              "missingRoute",
              "missingDomain",
              "sent",
              "contacted",
              "bounced",
              "allReplies",
              "humanReplies",
              "positiveReplies",
              "outOfOffice",
              "automaticReplies",
              "ipAttributed",
              "domainAttributed",
              "direct",
              "unknownRoute",
              "failedAttempts",
              "unknownAttempts"
            ],
            "additionalProperties": true
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "occurredAt": {
                  "type": "string"
                },
                "kind": {
                  "type": "string"
                },
                "resource": {
                  "type": "string"
                },
                "detail": {
                  "type": "string"
                },
                "actor": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reason": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "occurredAt",
                "kind",
                "resource",
                "detail",
                "actor",
                "reason"
              ],
              "additionalProperties": true
            }
          },
          "historyLimited": {
            "type": "boolean"
          }
        },
        "required": [
          "rows",
          "total",
          "pageSize",
          "metrics",
          "history",
          "historyLimited"
        ],
        "additionalProperties": true
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "inspect_infrastructure"
      },
      "scopes": [
        "inbox:read",
        "domain:read",
        "analytics:read"
      ],
      "bundles": [
        "workspace_infrastructure"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "infrastructure.explore"
      ],
      "invocations": [
        {
          "operationId": "infrastructure.explore",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/infrastructure/explore",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "view": {
            "type": "string",
            "enum": [
              "domains",
              "inboxes",
              "oauth",
              "microsoft",
              "ips"
            ]
          },
          "search": {
            "type": "string",
            "maxLength": 320
          },
          "domain": {
            "type": "string",
            "maxLength": 320
          },
          "ip": {
            "type": "string",
            "maxLength": 320
          },
          "client": {
            "type": "string",
            "maxLength": 320
          },
          "tenant": {
            "type": "string",
            "maxLength": 320
          },
          "inbox": {
            "type": "string",
            "maxLength": 320
          },
          "provider": {
            "type": "string",
            "enum": [
              "",
              "google_workspace",
              "microsoft_365",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "maxLength": 320
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "sort": {
            "type": "string",
            "enum": [
              "name",
              "inboxes"
            ]
          },
          "from": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "to": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        },
        "required": [
          "workspaceId",
          "view",
          "search",
          "domain",
          "ip",
          "client",
          "tenant",
          "inbox",
          "provider",
          "status",
          "page",
          "sort",
          "from",
          "to"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|view|search|domain|ip|client|tenant|inbox|provider|status|page|sort|from|to)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "view",
            "search",
            "domain",
            "ip",
            "client",
            "tenant",
            "inbox",
            "provider",
            "status",
            "page",
            "sort",
            "from",
            "to"
          ]
        }
      }
    },
    {
      "feature": "commerce",
      "name": "inspect_scheduler_retention_eligibility",
      "description": "Read whether the Scheduler Zero subscription is eligible for its one-time retention offer.\n\nUse when a person asks whether the named product has an offboarding discount available.\n\nThis only reads eligibility. A person in the web app must accept an offer or cancel a product.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "eligible": {
            "type": "boolean"
          },
          "label": {
            "$ref": "#/$defs/ShortText"
          },
          "discountPercent": {
            "type": "number",
            "enum": [
              30
            ]
          },
          "discountMonths": {
            "type": "number",
            "enum": [
              2
            ]
          }
        },
        "required": [
          "eligible",
          "label",
          "discountPercent",
          "discountMonths"
        ],
        "patternProperties": {
          "^(?!(?:eligible|label|discountPercent|discountMonths)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "eligible",
            "label",
            "discountPercent",
            "discountMonths"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "inspect_scheduler_retention_eligibility"
      },
      "scopes": [
        "billing:manage"
      ],
      "bundles": [
        "scheduler_retention_reader"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "billing.retentionEligibility"
      ],
      "invocations": [
        {
          "operationId": "billing.retentionEligibility",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/billing/retention-eligibility",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "invite_members",
      "description": "Invite people to an Organization and/or its Workspaces with grants the caller holds; list, re-send, or revoke invitations.\n\nCall options first to see grantable roles and Workspaces, then invite; list shows status (accepted means joined).\n\nNever grants more than the caller holds, and cannot accept on the invitee's behalf; the invitee accepts from the email.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "options"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "invite"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "email": {
                "$ref": "#/$defs/EmailAddress"
              },
              "grants": {
                "type": "object",
                "properties": {
                  "organization": {
                    "type": "object",
                    "properties": {
                      "roles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/RoleId"
                        },
                        "maxItems": 32
                      },
                      "directPermissions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "audit:read",
                            "billing:manage",
                            "billing:read",
                            "org:delete",
                            "orgAnalytics:read",
                            "orgAnalytics:manage",
                            "org:read",
                            "org:update",
                            "orgApiKey:manage",
                            "orgMember:invite",
                            "orgMember:read",
                            "orgMember:remove",
                            "orgMember:update",
                            "role:manage",
                            "role:read",
                            "usage:read",
                            "workspace:create",
                            "workspace:delete",
                            "workspace:transfer"
                          ]
                        },
                        "maxItems": 64
                      },
                      "allWorkspaces": {
                        "type": "object",
                        "properties": {
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/RoleId"
                            },
                            "maxItems": 32
                          },
                          "directPermissions": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "analytics:export",
                                "analytics:read",
                                "apiKey:create",
                                "apiKey:delete",
                                "apiKey:read",
                                "apiKey:update",
                                "blocklist:create",
                                "blocklist:delete",
                                "blocklist:read",
                                "campaign:archive",
                                "campaign:create",
                                "campaign:delete",
                                "campaign:launch",
                                "campaign:pause",
                                "campaign:read",
                                "campaign:update",
                                "dialer:assign_numbers",
                                "dialer:assign_seats",
                                "dialer:create",
                                "dialer:delete",
                                "dialer:dial",
                                "dialer:manage_billing",
                                "dialer:manage_number_health",
                                "dialer:manage_numbers",
                                "dialer:manage_numbers_self",
                                "dialer:manage_voicemails",
                                "dialer:read",
                                "dialer:read_analytics",
                                "dialer:read_numbers_all",
                                "dialer:release_numbers",
                                "dialer:update",
                                "domain:manage_dns",
                                "domain:purchase",
                                "domain:read",
                                "domain:transfer",
                                "emailVerification:manage_credits",
                                "emailVerification:manage_keys",
                                "emailVerification:manage_sharing",
                                "emailVerification:read",
                                "emailVerification:verify",
                                "inbox:connect",
                                "inbox:create",
                                "inbox:delete",
                                "inbox:read",
                                "inbox:update",
                                "inbox:warmup_manage",
                                "integration:create",
                                "integration:delete",
                                "integration:read",
                                "integration:update",
                                "lead:create",
                                "lead:delete",
                                "lead:export",
                                "lead:import",
                                "lead:read",
                                "lead:update",
                                "leadList:create",
                                "leadList:delete",
                                "leadList:read",
                                "leadList:update",
                                "phoneVerification:manage_keys",
                                "phoneVerification:read",
                                "phoneVerification:verify",
                                "replyLabel:create",
                                "replyLabel:delete",
                                "replyLabel:read",
                                "replyLabel:update",
                                "sequence:create",
                                "sequence:delete",
                                "sequence:read",
                                "sequence:update",
                                "sql:manage_dashboards",
                                "sql:query",
                                "support:create",
                                "support:read",
                                "support:update",
                                "tag:create",
                                "tag:delete",
                                "tag:read",
                                "tag:update",
                                "task:create",
                                "task:delete",
                                "task:read",
                                "task:update",
                                "template:create",
                                "template:delete",
                                "template:read",
                                "template:update",
                                "unibox:archive",
                                "unibox:label",
                                "unibox:read",
                                "unibox:reply",
                                "webhook:create",
                                "webhook:delete",
                                "webhook:read",
                                "webhook:update",
                                "whiteLabel:read",
                                "whiteLabel:update",
                                "workflow:create",
                                "workflow:delete",
                                "workflow:publish",
                                "workflow:read",
                                "workflow:run",
                                "workflow:update",
                                "workspace:read",
                                "workspace:update",
                                "workspaceMember:invite",
                                "workspaceMember:read",
                                "workspaceMember:remove",
                                "workspaceMember:update"
                              ]
                            },
                            "maxItems": 256
                          }
                        },
                        "required": [
                          "roles",
                          "directPermissions"
                        ],
                        "patternProperties": {
                          "^(?!(?:roles|directPermissions)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "roles",
                            "directPermissions"
                          ]
                        }
                      }
                    },
                    "required": [
                      "roles",
                      "directPermissions"
                    ],
                    "patternProperties": {
                      "^(?!(?:roles|directPermissions|allWorkspaces)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "roles",
                        "directPermissions",
                        "allWorkspaces"
                      ]
                    }
                  },
                  "workspaces": {
                    "type": "array",
                    "items": {
                      "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"
                        },
                        "roles": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/RoleId"
                          },
                          "maxItems": 32
                        },
                        "directPermissions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "analytics:export",
                              "analytics:read",
                              "apiKey:create",
                              "apiKey:delete",
                              "apiKey:read",
                              "apiKey:update",
                              "blocklist:create",
                              "blocklist:delete",
                              "blocklist:read",
                              "campaign:archive",
                              "campaign:create",
                              "campaign:delete",
                              "campaign:launch",
                              "campaign:pause",
                              "campaign:read",
                              "campaign:update",
                              "dialer:assign_numbers",
                              "dialer:assign_seats",
                              "dialer:create",
                              "dialer:delete",
                              "dialer:dial",
                              "dialer:manage_billing",
                              "dialer:manage_number_health",
                              "dialer:manage_numbers",
                              "dialer:manage_numbers_self",
                              "dialer:manage_voicemails",
                              "dialer:read",
                              "dialer:read_analytics",
                              "dialer:read_numbers_all",
                              "dialer:release_numbers",
                              "dialer:update",
                              "domain:manage_dns",
                              "domain:purchase",
                              "domain:read",
                              "domain:transfer",
                              "emailVerification:manage_credits",
                              "emailVerification:manage_keys",
                              "emailVerification:manage_sharing",
                              "emailVerification:read",
                              "emailVerification:verify",
                              "inbox:connect",
                              "inbox:create",
                              "inbox:delete",
                              "inbox:read",
                              "inbox:update",
                              "inbox:warmup_manage",
                              "integration:create",
                              "integration:delete",
                              "integration:read",
                              "integration:update",
                              "lead:create",
                              "lead:delete",
                              "lead:export",
                              "lead:import",
                              "lead:read",
                              "lead:update",
                              "leadList:create",
                              "leadList:delete",
                              "leadList:read",
                              "leadList:update",
                              "phoneVerification:manage_keys",
                              "phoneVerification:read",
                              "phoneVerification:verify",
                              "replyLabel:create",
                              "replyLabel:delete",
                              "replyLabel:read",
                              "replyLabel:update",
                              "sequence:create",
                              "sequence:delete",
                              "sequence:read",
                              "sequence:update",
                              "sql:manage_dashboards",
                              "sql:query",
                              "support:create",
                              "support:read",
                              "support:update",
                              "tag:create",
                              "tag:delete",
                              "tag:read",
                              "tag:update",
                              "task:create",
                              "task:delete",
                              "task:read",
                              "task:update",
                              "template:create",
                              "template:delete",
                              "template:read",
                              "template:update",
                              "unibox:archive",
                              "unibox:label",
                              "unibox:read",
                              "unibox:reply",
                              "webhook:create",
                              "webhook:delete",
                              "webhook:read",
                              "webhook:update",
                              "whiteLabel:read",
                              "whiteLabel:update",
                              "workflow:create",
                              "workflow:delete",
                              "workflow:publish",
                              "workflow:read",
                              "workflow:run",
                              "workflow:update",
                              "workspace:read",
                              "workspace:update",
                              "workspaceMember:invite",
                              "workspaceMember:read",
                              "workspaceMember:remove",
                              "workspaceMember:update"
                            ]
                          },
                          "maxItems": 256
                        }
                      },
                      "required": [
                        "workspaceId",
                        "roles",
                        "directPermissions"
                      ],
                      "patternProperties": {
                        "^(?!(?:workspaceId|roles|directPermissions)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "workspaceId",
                          "roles",
                          "directPermissions"
                        ]
                      }
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "workspaces"
                ],
                "patternProperties": {
                  "^(?!(?:organization|workspaces)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "organization",
                    "workspaces"
                  ]
                }
              }
            },
            "required": [
              "action",
              "organizationId",
              "email",
              "grants"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|email|grants)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "email",
                "grants"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "includeExpired": {
                "type": "boolean"
              }
            },
            "required": [
              "action",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|includeExpired)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "includeExpired"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "resend"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "invitationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId",
              "invitationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|invitationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "invitationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "revoke"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "invitationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId",
              "invitationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|invitationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "invitationId"
              ]
            }
          }
        ],
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "RoleId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "InviteMembersInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "options"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "invite"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "grants": {
                    "type": "object",
                    "properties": {
                      "organization": {
                        "type": "object",
                        "properties": {
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/RoleId"
                            },
                            "maxItems": 32
                          },
                          "directPermissions": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "audit:read",
                                "billing:manage",
                                "billing:read",
                                "org:delete",
                                "orgAnalytics:read",
                                "orgAnalytics:manage",
                                "org:read",
                                "org:update",
                                "orgApiKey:manage",
                                "orgMember:invite",
                                "orgMember:read",
                                "orgMember:remove",
                                "orgMember:update",
                                "role:manage",
                                "role:read",
                                "usage:read",
                                "workspace:create",
                                "workspace:delete",
                                "workspace:transfer"
                              ]
                            },
                            "maxItems": 64
                          },
                          "allWorkspaces": {
                            "type": "object",
                            "properties": {
                              "roles": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/RoleId"
                                },
                                "maxItems": 32
                              },
                              "directPermissions": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "analytics:export",
                                    "analytics:read",
                                    "apiKey:create",
                                    "apiKey:delete",
                                    "apiKey:read",
                                    "apiKey:update",
                                    "blocklist:create",
                                    "blocklist:delete",
                                    "blocklist:read",
                                    "campaign:archive",
                                    "campaign:create",
                                    "campaign:delete",
                                    "campaign:launch",
                                    "campaign:pause",
                                    "campaign:read",
                                    "campaign:update",
                                    "dialer:assign_numbers",
                                    "dialer:assign_seats",
                                    "dialer:create",
                                    "dialer:delete",
                                    "dialer:dial",
                                    "dialer:manage_billing",
                                    "dialer:manage_number_health",
                                    "dialer:manage_numbers",
                                    "dialer:manage_numbers_self",
                                    "dialer:manage_voicemails",
                                    "dialer:read",
                                    "dialer:read_analytics",
                                    "dialer:read_numbers_all",
                                    "dialer:release_numbers",
                                    "dialer:update",
                                    "domain:manage_dns",
                                    "domain:purchase",
                                    "domain:read",
                                    "domain:transfer",
                                    "emailVerification:manage_credits",
                                    "emailVerification:manage_keys",
                                    "emailVerification:manage_sharing",
                                    "emailVerification:read",
                                    "emailVerification:verify",
                                    "inbox:connect",
                                    "inbox:create",
                                    "inbox:delete",
                                    "inbox:read",
                                    "inbox:update",
                                    "inbox:warmup_manage",
                                    "integration:create",
                                    "integration:delete",
                                    "integration:read",
                                    "integration:update",
                                    "lead:create",
                                    "lead:delete",
                                    "lead:export",
                                    "lead:import",
                                    "lead:read",
                                    "lead:update",
                                    "leadList:create",
                                    "leadList:delete",
                                    "leadList:read",
                                    "leadList:update",
                                    "phoneVerification:manage_keys",
                                    "phoneVerification:read",
                                    "phoneVerification:verify",
                                    "replyLabel:create",
                                    "replyLabel:delete",
                                    "replyLabel:read",
                                    "replyLabel:update",
                                    "sequence:create",
                                    "sequence:delete",
                                    "sequence:read",
                                    "sequence:update",
                                    "sql:manage_dashboards",
                                    "sql:query",
                                    "support:create",
                                    "support:read",
                                    "support:update",
                                    "tag:create",
                                    "tag:delete",
                                    "tag:read",
                                    "tag:update",
                                    "task:create",
                                    "task:delete",
                                    "task:read",
                                    "task:update",
                                    "template:create",
                                    "template:delete",
                                    "template:read",
                                    "template:update",
                                    "unibox:archive",
                                    "unibox:label",
                                    "unibox:read",
                                    "unibox:reply",
                                    "webhook:create",
                                    "webhook:delete",
                                    "webhook:read",
                                    "webhook:update",
                                    "whiteLabel:read",
                                    "whiteLabel:update",
                                    "workflow:create",
                                    "workflow:delete",
                                    "workflow:publish",
                                    "workflow:read",
                                    "workflow:run",
                                    "workflow:update",
                                    "workspace:read",
                                    "workspace:update",
                                    "workspaceMember:invite",
                                    "workspaceMember:read",
                                    "workspaceMember:remove",
                                    "workspaceMember:update"
                                  ]
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "roles",
                              "directPermissions"
                            ],
                            "patternProperties": {
                              "^(?!(?:roles|directPermissions)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "roles",
                                "directPermissions"
                              ]
                            }
                          }
                        },
                        "required": [
                          "roles",
                          "directPermissions"
                        ],
                        "patternProperties": {
                          "^(?!(?:roles|directPermissions|allWorkspaces)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "roles",
                            "directPermissions",
                            "allWorkspaces"
                          ]
                        }
                      },
                      "workspaces": {
                        "type": "array",
                        "items": {
                          "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"
                            },
                            "roles": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/RoleId"
                              },
                              "maxItems": 32
                            },
                            "directPermissions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "analytics:export",
                                  "analytics:read",
                                  "apiKey:create",
                                  "apiKey:delete",
                                  "apiKey:read",
                                  "apiKey:update",
                                  "blocklist:create",
                                  "blocklist:delete",
                                  "blocklist:read",
                                  "campaign:archive",
                                  "campaign:create",
                                  "campaign:delete",
                                  "campaign:launch",
                                  "campaign:pause",
                                  "campaign:read",
                                  "campaign:update",
                                  "dialer:assign_numbers",
                                  "dialer:assign_seats",
                                  "dialer:create",
                                  "dialer:delete",
                                  "dialer:dial",
                                  "dialer:manage_billing",
                                  "dialer:manage_number_health",
                                  "dialer:manage_numbers",
                                  "dialer:manage_numbers_self",
                                  "dialer:manage_voicemails",
                                  "dialer:read",
                                  "dialer:read_analytics",
                                  "dialer:read_numbers_all",
                                  "dialer:release_numbers",
                                  "dialer:update",
                                  "domain:manage_dns",
                                  "domain:purchase",
                                  "domain:read",
                                  "domain:transfer",
                                  "emailVerification:manage_credits",
                                  "emailVerification:manage_keys",
                                  "emailVerification:manage_sharing",
                                  "emailVerification:read",
                                  "emailVerification:verify",
                                  "inbox:connect",
                                  "inbox:create",
                                  "inbox:delete",
                                  "inbox:read",
                                  "inbox:update",
                                  "inbox:warmup_manage",
                                  "integration:create",
                                  "integration:delete",
                                  "integration:read",
                                  "integration:update",
                                  "lead:create",
                                  "lead:delete",
                                  "lead:export",
                                  "lead:import",
                                  "lead:read",
                                  "lead:update",
                                  "leadList:create",
                                  "leadList:delete",
                                  "leadList:read",
                                  "leadList:update",
                                  "phoneVerification:manage_keys",
                                  "phoneVerification:read",
                                  "phoneVerification:verify",
                                  "replyLabel:create",
                                  "replyLabel:delete",
                                  "replyLabel:read",
                                  "replyLabel:update",
                                  "sequence:create",
                                  "sequence:delete",
                                  "sequence:read",
                                  "sequence:update",
                                  "sql:manage_dashboards",
                                  "sql:query",
                                  "support:create",
                                  "support:read",
                                  "support:update",
                                  "tag:create",
                                  "tag:delete",
                                  "tag:read",
                                  "tag:update",
                                  "task:create",
                                  "task:delete",
                                  "task:read",
                                  "task:update",
                                  "template:create",
                                  "template:delete",
                                  "template:read",
                                  "template:update",
                                  "unibox:archive",
                                  "unibox:label",
                                  "unibox:read",
                                  "unibox:reply",
                                  "webhook:create",
                                  "webhook:delete",
                                  "webhook:read",
                                  "webhook:update",
                                  "whiteLabel:read",
                                  "whiteLabel:update",
                                  "workflow:create",
                                  "workflow:delete",
                                  "workflow:publish",
                                  "workflow:read",
                                  "workflow:run",
                                  "workflow:update",
                                  "workspace:read",
                                  "workspace:update",
                                  "workspaceMember:invite",
                                  "workspaceMember:read",
                                  "workspaceMember:remove",
                                  "workspaceMember:update"
                                ]
                              },
                              "maxItems": 256
                            }
                          },
                          "required": [
                            "workspaceId",
                            "roles",
                            "directPermissions"
                          ],
                          "patternProperties": {
                            "^(?!(?:workspaceId|roles|directPermissions)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "workspaceId",
                              "roles",
                              "directPermissions"
                            ]
                          }
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "workspaces"
                    ],
                    "patternProperties": {
                      "^(?!(?:organization|workspaces)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "organization",
                        "workspaces"
                      ]
                    }
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "email",
                  "grants"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|email|grants)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "email",
                    "grants"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "list"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "includeExpired": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "action",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|includeExpired)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "includeExpired"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "resend"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "invitationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "invitationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|invitationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "invitationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "revoke"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "invitationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "invitationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|invitationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "invitationId"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "RoleId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "InviteMembersOutput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "organizationName": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "organization": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "allWorkspaces": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "workspaces": {
                    "type": "array",
                    "items": {
                      "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"
                        },
                        "name": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "permissions": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/NonEmptyString"
                          }
                        }
                      },
                      "required": [
                        "workspaceId",
                        "name",
                        "permissions"
                      ],
                      "patternProperties": {
                        "^(?!(?:workspaceId|name|permissions)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "workspaceId",
                          "name",
                          "permissions"
                        ]
                      }
                    }
                  },
                  "roles": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/$defs/RoleId"
                        },
                        "name": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "scope": {
                          "type": "string",
                          "enum": [
                            "organization",
                            "workspace"
                          ]
                        },
                        "system": {
                          "type": "boolean"
                        },
                        "permissions": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/NonEmptyString"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "scope",
                        "system",
                        "permissions"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name|scope|system|permissions)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name",
                          "scope",
                          "system",
                          "permissions"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "organizationId",
                  "organizationName",
                  "organization",
                  "allWorkspaces",
                  "workspaces",
                  "roles"
                ],
                "patternProperties": {
                  "^(?!(?:organizationId|organizationName|organization|allWorkspaces|workspaces|roles)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "organizationId",
                    "organizationName",
                    "organization",
                    "allWorkspaces",
                    "workspaces",
                    "roles"
                  ]
                }
              },
              {
                "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"
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "grants": {
                    "type": "object",
                    "properties": {
                      "organization": {
                        "type": "object",
                        "properties": {
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/RoleId"
                            },
                            "maxItems": 32
                          },
                          "directPermissions": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "audit:read",
                                "billing:manage",
                                "billing:read",
                                "org:delete",
                                "orgAnalytics:read",
                                "orgAnalytics:manage",
                                "org:read",
                                "org:update",
                                "orgApiKey:manage",
                                "orgMember:invite",
                                "orgMember:read",
                                "orgMember:remove",
                                "orgMember:update",
                                "role:manage",
                                "role:read",
                                "usage:read",
                                "workspace:create",
                                "workspace:delete",
                                "workspace:transfer"
                              ]
                            },
                            "maxItems": 64
                          },
                          "allWorkspaces": {
                            "type": "object",
                            "properties": {
                              "roles": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/RoleId"
                                },
                                "maxItems": 32
                              },
                              "directPermissions": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "analytics:export",
                                    "analytics:read",
                                    "apiKey:create",
                                    "apiKey:delete",
                                    "apiKey:read",
                                    "apiKey:update",
                                    "blocklist:create",
                                    "blocklist:delete",
                                    "blocklist:read",
                                    "campaign:archive",
                                    "campaign:create",
                                    "campaign:delete",
                                    "campaign:launch",
                                    "campaign:pause",
                                    "campaign:read",
                                    "campaign:update",
                                    "dialer:assign_numbers",
                                    "dialer:assign_seats",
                                    "dialer:create",
                                    "dialer:delete",
                                    "dialer:dial",
                                    "dialer:manage_billing",
                                    "dialer:manage_number_health",
                                    "dialer:manage_numbers",
                                    "dialer:manage_numbers_self",
                                    "dialer:manage_voicemails",
                                    "dialer:read",
                                    "dialer:read_analytics",
                                    "dialer:read_numbers_all",
                                    "dialer:release_numbers",
                                    "dialer:update",
                                    "domain:manage_dns",
                                    "domain:purchase",
                                    "domain:read",
                                    "domain:transfer",
                                    "emailVerification:manage_credits",
                                    "emailVerification:manage_keys",
                                    "emailVerification:manage_sharing",
                                    "emailVerification:read",
                                    "emailVerification:verify",
                                    "inbox:connect",
                                    "inbox:create",
                                    "inbox:delete",
                                    "inbox:read",
                                    "inbox:update",
                                    "inbox:warmup_manage",
                                    "integration:create",
                                    "integration:delete",
                                    "integration:read",
                                    "integration:update",
                                    "lead:create",
                                    "lead:delete",
                                    "lead:export",
                                    "lead:import",
                                    "lead:read",
                                    "lead:update",
                                    "leadList:create",
                                    "leadList:delete",
                                    "leadList:read",
                                    "leadList:update",
                                    "phoneVerification:manage_keys",
                                    "phoneVerification:read",
                                    "phoneVerification:verify",
                                    "replyLabel:create",
                                    "replyLabel:delete",
                                    "replyLabel:read",
                                    "replyLabel:update",
                                    "sequence:create",
                                    "sequence:delete",
                                    "sequence:read",
                                    "sequence:update",
                                    "sql:manage_dashboards",
                                    "sql:query",
                                    "support:create",
                                    "support:read",
                                    "support:update",
                                    "tag:create",
                                    "tag:delete",
                                    "tag:read",
                                    "tag:update",
                                    "task:create",
                                    "task:delete",
                                    "task:read",
                                    "task:update",
                                    "template:create",
                                    "template:delete",
                                    "template:read",
                                    "template:update",
                                    "unibox:archive",
                                    "unibox:label",
                                    "unibox:read",
                                    "unibox:reply",
                                    "webhook:create",
                                    "webhook:delete",
                                    "webhook:read",
                                    "webhook:update",
                                    "whiteLabel:read",
                                    "whiteLabel:update",
                                    "workflow:create",
                                    "workflow:delete",
                                    "workflow:publish",
                                    "workflow:read",
                                    "workflow:run",
                                    "workflow:update",
                                    "workspace:read",
                                    "workspace:update",
                                    "workspaceMember:invite",
                                    "workspaceMember:read",
                                    "workspaceMember:remove",
                                    "workspaceMember:update"
                                  ]
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "roles",
                              "directPermissions"
                            ],
                            "patternProperties": {
                              "^(?!(?:roles|directPermissions)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "roles",
                                "directPermissions"
                              ]
                            }
                          }
                        },
                        "required": [
                          "roles",
                          "directPermissions"
                        ],
                        "patternProperties": {
                          "^(?!(?:roles|directPermissions|allWorkspaces)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "roles",
                            "directPermissions",
                            "allWorkspaces"
                          ]
                        }
                      },
                      "workspaces": {
                        "type": "array",
                        "items": {
                          "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"
                            },
                            "roles": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/RoleId"
                              },
                              "maxItems": 32
                            },
                            "directPermissions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "analytics:export",
                                  "analytics:read",
                                  "apiKey:create",
                                  "apiKey:delete",
                                  "apiKey:read",
                                  "apiKey:update",
                                  "blocklist:create",
                                  "blocklist:delete",
                                  "blocklist:read",
                                  "campaign:archive",
                                  "campaign:create",
                                  "campaign:delete",
                                  "campaign:launch",
                                  "campaign:pause",
                                  "campaign:read",
                                  "campaign:update",
                                  "dialer:assign_numbers",
                                  "dialer:assign_seats",
                                  "dialer:create",
                                  "dialer:delete",
                                  "dialer:dial",
                                  "dialer:manage_billing",
                                  "dialer:manage_number_health",
                                  "dialer:manage_numbers",
                                  "dialer:manage_numbers_self",
                                  "dialer:manage_voicemails",
                                  "dialer:read",
                                  "dialer:read_analytics",
                                  "dialer:read_numbers_all",
                                  "dialer:release_numbers",
                                  "dialer:update",
                                  "domain:manage_dns",
                                  "domain:purchase",
                                  "domain:read",
                                  "domain:transfer",
                                  "emailVerification:manage_credits",
                                  "emailVerification:manage_keys",
                                  "emailVerification:manage_sharing",
                                  "emailVerification:read",
                                  "emailVerification:verify",
                                  "inbox:connect",
                                  "inbox:create",
                                  "inbox:delete",
                                  "inbox:read",
                                  "inbox:update",
                                  "inbox:warmup_manage",
                                  "integration:create",
                                  "integration:delete",
                                  "integration:read",
                                  "integration:update",
                                  "lead:create",
                                  "lead:delete",
                                  "lead:export",
                                  "lead:import",
                                  "lead:read",
                                  "lead:update",
                                  "leadList:create",
                                  "leadList:delete",
                                  "leadList:read",
                                  "leadList:update",
                                  "phoneVerification:manage_keys",
                                  "phoneVerification:read",
                                  "phoneVerification:verify",
                                  "replyLabel:create",
                                  "replyLabel:delete",
                                  "replyLabel:read",
                                  "replyLabel:update",
                                  "sequence:create",
                                  "sequence:delete",
                                  "sequence:read",
                                  "sequence:update",
                                  "sql:manage_dashboards",
                                  "sql:query",
                                  "support:create",
                                  "support:read",
                                  "support:update",
                                  "tag:create",
                                  "tag:delete",
                                  "tag:read",
                                  "tag:update",
                                  "task:create",
                                  "task:delete",
                                  "task:read",
                                  "task:update",
                                  "template:create",
                                  "template:delete",
                                  "template:read",
                                  "template:update",
                                  "unibox:archive",
                                  "unibox:label",
                                  "unibox:read",
                                  "unibox:reply",
                                  "webhook:create",
                                  "webhook:delete",
                                  "webhook:read",
                                  "webhook:update",
                                  "whiteLabel:read",
                                  "whiteLabel:update",
                                  "workflow:create",
                                  "workflow:delete",
                                  "workflow:publish",
                                  "workflow:read",
                                  "workflow:run",
                                  "workflow:update",
                                  "workspace:read",
                                  "workspace:update",
                                  "workspaceMember:invite",
                                  "workspaceMember:read",
                                  "workspaceMember:remove",
                                  "workspaceMember:update"
                                ]
                              },
                              "maxItems": 256
                            }
                          },
                          "required": [
                            "workspaceId",
                            "roles",
                            "directPermissions"
                          ],
                          "patternProperties": {
                            "^(?!(?:workspaceId|roles|directPermissions)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "workspaceId",
                              "roles",
                              "directPermissions"
                            ]
                          }
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "workspaces"
                    ],
                    "patternProperties": {
                      "^(?!(?:organization|workspaces)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "organization",
                        "workspaces"
                      ]
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "accepted",
                      "revoked",
                      "expired"
                    ]
                  },
                  "expiresAt": {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  "expired": {
                    "type": "boolean"
                  },
                  "invitedByUserId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "resendCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "lastSentAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "createdAt": {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  }
                },
                "required": [
                  "id",
                  "organizationId",
                  "email",
                  "grants",
                  "status",
                  "expiresAt",
                  "expired",
                  "invitedByUserId",
                  "resendCount",
                  "lastSentAt",
                  "createdAt"
                ],
                "patternProperties": {
                  "^(?!(?:id|organizationId|email|grants|status|expiresAt|expired|invitedByUserId|resendCount|lastSentAt|createdAt)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "organizationId",
                    "email",
                    "grants",
                    "status",
                    "expiresAt",
                    "expired",
                    "invitedByUserId",
                    "resendCount",
                    "lastSentAt",
                    "createdAt"
                  ]
                }
              },
              {
                "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"
                    },
                    "organizationId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "email": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "grants": {
                      "type": "object",
                      "properties": {
                        "organization": {
                          "type": "object",
                          "properties": {
                            "roles": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/RoleId"
                              },
                              "maxItems": 32
                            },
                            "directPermissions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "audit:read",
                                  "billing:manage",
                                  "billing:read",
                                  "org:delete",
                                  "orgAnalytics:read",
                                  "orgAnalytics:manage",
                                  "org:read",
                                  "org:update",
                                  "orgApiKey:manage",
                                  "orgMember:invite",
                                  "orgMember:read",
                                  "orgMember:remove",
                                  "orgMember:update",
                                  "role:manage",
                                  "role:read",
                                  "usage:read",
                                  "workspace:create",
                                  "workspace:delete",
                                  "workspace:transfer"
                                ]
                              },
                              "maxItems": 64
                            },
                            "allWorkspaces": {
                              "type": "object",
                              "properties": {
                                "roles": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/RoleId"
                                  },
                                  "maxItems": 32
                                },
                                "directPermissions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "analytics:export",
                                      "analytics:read",
                                      "apiKey:create",
                                      "apiKey:delete",
                                      "apiKey:read",
                                      "apiKey:update",
                                      "blocklist:create",
                                      "blocklist:delete",
                                      "blocklist:read",
                                      "campaign:archive",
                                      "campaign:create",
                                      "campaign:delete",
                                      "campaign:launch",
                                      "campaign:pause",
                                      "campaign:read",
                                      "campaign:update",
                                      "dialer:assign_numbers",
                                      "dialer:assign_seats",
                                      "dialer:create",
                                      "dialer:delete",
                                      "dialer:dial",
                                      "dialer:manage_billing",
                                      "dialer:manage_number_health",
                                      "dialer:manage_numbers",
                                      "dialer:manage_numbers_self",
                                      "dialer:manage_voicemails",
                                      "dialer:read",
                                      "dialer:read_analytics",
                                      "dialer:read_numbers_all",
                                      "dialer:release_numbers",
                                      "dialer:update",
                                      "domain:manage_dns",
                                      "domain:purchase",
                                      "domain:read",
                                      "domain:transfer",
                                      "emailVerification:manage_credits",
                                      "emailVerification:manage_keys",
                                      "emailVerification:manage_sharing",
                                      "emailVerification:read",
                                      "emailVerification:verify",
                                      "inbox:connect",
                                      "inbox:create",
                                      "inbox:delete",
                                      "inbox:read",
                                      "inbox:update",
                                      "inbox:warmup_manage",
                                      "integration:create",
                                      "integration:delete",
                                      "integration:read",
                                      "integration:update",
                                      "lead:create",
                                      "lead:delete",
                                      "lead:export",
                                      "lead:import",
                                      "lead:read",
                                      "lead:update",
                                      "leadList:create",
                                      "leadList:delete",
                                      "leadList:read",
                                      "leadList:update",
                                      "phoneVerification:manage_keys",
                                      "phoneVerification:read",
                                      "phoneVerification:verify",
                                      "replyLabel:create",
                                      "replyLabel:delete",
                                      "replyLabel:read",
                                      "replyLabel:update",
                                      "sequence:create",
                                      "sequence:delete",
                                      "sequence:read",
                                      "sequence:update",
                                      "sql:manage_dashboards",
                                      "sql:query",
                                      "support:create",
                                      "support:read",
                                      "support:update",
                                      "tag:create",
                                      "tag:delete",
                                      "tag:read",
                                      "tag:update",
                                      "task:create",
                                      "task:delete",
                                      "task:read",
                                      "task:update",
                                      "template:create",
                                      "template:delete",
                                      "template:read",
                                      "template:update",
                                      "unibox:archive",
                                      "unibox:label",
                                      "unibox:read",
                                      "unibox:reply",
                                      "webhook:create",
                                      "webhook:delete",
                                      "webhook:read",
                                      "webhook:update",
                                      "whiteLabel:read",
                                      "whiteLabel:update",
                                      "workflow:create",
                                      "workflow:delete",
                                      "workflow:publish",
                                      "workflow:read",
                                      "workflow:run",
                                      "workflow:update",
                                      "workspace:read",
                                      "workspace:update",
                                      "workspaceMember:invite",
                                      "workspaceMember:read",
                                      "workspaceMember:remove",
                                      "workspaceMember:update"
                                    ]
                                  },
                                  "maxItems": 256
                                }
                              },
                              "required": [
                                "roles",
                                "directPermissions"
                              ],
                              "patternProperties": {
                                "^(?!(?:roles|directPermissions)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "roles",
                                  "directPermissions"
                                ]
                              }
                            }
                          },
                          "required": [
                            "roles",
                            "directPermissions"
                          ],
                          "patternProperties": {
                            "^(?!(?:roles|directPermissions|allWorkspaces)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "roles",
                              "directPermissions",
                              "allWorkspaces"
                            ]
                          }
                        },
                        "workspaces": {
                          "type": "array",
                          "items": {
                            "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"
                              },
                              "roles": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/RoleId"
                                },
                                "maxItems": 32
                              },
                              "directPermissions": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "analytics:export",
                                    "analytics:read",
                                    "apiKey:create",
                                    "apiKey:delete",
                                    "apiKey:read",
                                    "apiKey:update",
                                    "blocklist:create",
                                    "blocklist:delete",
                                    "blocklist:read",
                                    "campaign:archive",
                                    "campaign:create",
                                    "campaign:delete",
                                    "campaign:launch",
                                    "campaign:pause",
                                    "campaign:read",
                                    "campaign:update",
                                    "dialer:assign_numbers",
                                    "dialer:assign_seats",
                                    "dialer:create",
                                    "dialer:delete",
                                    "dialer:dial",
                                    "dialer:manage_billing",
                                    "dialer:manage_number_health",
                                    "dialer:manage_numbers",
                                    "dialer:manage_numbers_self",
                                    "dialer:manage_voicemails",
                                    "dialer:read",
                                    "dialer:read_analytics",
                                    "dialer:read_numbers_all",
                                    "dialer:release_numbers",
                                    "dialer:update",
                                    "domain:manage_dns",
                                    "domain:purchase",
                                    "domain:read",
                                    "domain:transfer",
                                    "emailVerification:manage_credits",
                                    "emailVerification:manage_keys",
                                    "emailVerification:manage_sharing",
                                    "emailVerification:read",
                                    "emailVerification:verify",
                                    "inbox:connect",
                                    "inbox:create",
                                    "inbox:delete",
                                    "inbox:read",
                                    "inbox:update",
                                    "inbox:warmup_manage",
                                    "integration:create",
                                    "integration:delete",
                                    "integration:read",
                                    "integration:update",
                                    "lead:create",
                                    "lead:delete",
                                    "lead:export",
                                    "lead:import",
                                    "lead:read",
                                    "lead:update",
                                    "leadList:create",
                                    "leadList:delete",
                                    "leadList:read",
                                    "leadList:update",
                                    "phoneVerification:manage_keys",
                                    "phoneVerification:read",
                                    "phoneVerification:verify",
                                    "replyLabel:create",
                                    "replyLabel:delete",
                                    "replyLabel:read",
                                    "replyLabel:update",
                                    "sequence:create",
                                    "sequence:delete",
                                    "sequence:read",
                                    "sequence:update",
                                    "sql:manage_dashboards",
                                    "sql:query",
                                    "support:create",
                                    "support:read",
                                    "support:update",
                                    "tag:create",
                                    "tag:delete",
                                    "tag:read",
                                    "tag:update",
                                    "task:create",
                                    "task:delete",
                                    "task:read",
                                    "task:update",
                                    "template:create",
                                    "template:delete",
                                    "template:read",
                                    "template:update",
                                    "unibox:archive",
                                    "unibox:label",
                                    "unibox:read",
                                    "unibox:reply",
                                    "webhook:create",
                                    "webhook:delete",
                                    "webhook:read",
                                    "webhook:update",
                                    "whiteLabel:read",
                                    "whiteLabel:update",
                                    "workflow:create",
                                    "workflow:delete",
                                    "workflow:publish",
                                    "workflow:read",
                                    "workflow:run",
                                    "workflow:update",
                                    "workspace:read",
                                    "workspace:update",
                                    "workspaceMember:invite",
                                    "workspaceMember:read",
                                    "workspaceMember:remove",
                                    "workspaceMember:update"
                                  ]
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "workspaceId",
                              "roles",
                              "directPermissions"
                            ],
                            "patternProperties": {
                              "^(?!(?:workspaceId|roles|directPermissions)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "workspaceId",
                                "roles",
                                "directPermissions"
                              ]
                            }
                          },
                          "maxItems": 100
                        }
                      },
                      "required": [
                        "workspaces"
                      ],
                      "patternProperties": {
                        "^(?!(?:organization|workspaces)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "organization",
                          "workspaces"
                        ]
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "accepted",
                        "revoked",
                        "expired"
                      ]
                    },
                    "expiresAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "expired": {
                      "type": "boolean"
                    },
                    "invitedByUserId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "resendCount": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "lastSentAt": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    }
                  },
                  "required": [
                    "id",
                    "organizationId",
                    "email",
                    "grants",
                    "status",
                    "expiresAt",
                    "expired",
                    "invitedByUserId",
                    "resendCount",
                    "lastSentAt",
                    "createdAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|organizationId|email|grants|status|expiresAt|expired|invitedByUserId|resendCount|lastSentAt|createdAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "organizationId",
                      "email",
                      "grants",
                      "status",
                      "expiresAt",
                      "expired",
                      "invitedByUserId",
                      "resendCount",
                      "lastSentAt",
                      "createdAt"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "revoked": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "revoked"
                ],
                "patternProperties": {
                  "^(?!(?:revoked)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "revoked"
                      ]
                    }
                  ]
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/InviteMembersOutput"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/InviteMembersOutput"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "invite_members"
      },
      "scopes": [
        "orgMember:invite",
        "orgMember:read",
        "workspaceMember:invite",
        "workspaceMember:read"
      ],
      "bundles": [
        "workspace_administration"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationInvitations.options",
        "organizationInvitations.create",
        "organizationInvitations.list",
        "organizationInvitations.resend",
        "organizationInvitations.revoke"
      ],
      "invocations": [
        {
          "operationId": "organizationInvitations.options",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/invitations/options",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationInvitations.create",
          "method": "POST",
          "path": "/v1/organizations/:organizationId/invitations",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationInvitations.list",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/invitations",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationInvitations.resend",
          "method": "POST",
          "path": "/v1/organizations/:organizationId/invitations/:invitationId/resend",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationInvitations.revoke",
          "method": "DELETE",
          "path": "/v1/organizations/:organizationId/invitations/:invitationId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "options"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "invite"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "email": {
                "$ref": "#/$defs/EmailAddress"
              },
              "grants": {
                "type": "object",
                "properties": {
                  "organization": {
                    "type": "object",
                    "properties": {
                      "roles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/RoleId"
                        },
                        "maxItems": 32
                      },
                      "directPermissions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "audit:read",
                            "billing:manage",
                            "billing:read",
                            "org:delete",
                            "orgAnalytics:read",
                            "orgAnalytics:manage",
                            "org:read",
                            "org:update",
                            "orgApiKey:manage",
                            "orgMember:invite",
                            "orgMember:read",
                            "orgMember:remove",
                            "orgMember:update",
                            "role:manage",
                            "role:read",
                            "usage:read",
                            "workspace:create",
                            "workspace:delete",
                            "workspace:transfer"
                          ]
                        },
                        "maxItems": 64
                      },
                      "allWorkspaces": {
                        "type": "object",
                        "properties": {
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/RoleId"
                            },
                            "maxItems": 32
                          },
                          "directPermissions": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "analytics:export",
                                "analytics:read",
                                "apiKey:create",
                                "apiKey:delete",
                                "apiKey:read",
                                "apiKey:update",
                                "blocklist:create",
                                "blocklist:delete",
                                "blocklist:read",
                                "campaign:archive",
                                "campaign:create",
                                "campaign:delete",
                                "campaign:launch",
                                "campaign:pause",
                                "campaign:read",
                                "campaign:update",
                                "dialer:assign_numbers",
                                "dialer:assign_seats",
                                "dialer:create",
                                "dialer:delete",
                                "dialer:dial",
                                "dialer:manage_billing",
                                "dialer:manage_number_health",
                                "dialer:manage_numbers",
                                "dialer:manage_numbers_self",
                                "dialer:manage_voicemails",
                                "dialer:read",
                                "dialer:read_analytics",
                                "dialer:read_numbers_all",
                                "dialer:release_numbers",
                                "dialer:update",
                                "domain:manage_dns",
                                "domain:purchase",
                                "domain:read",
                                "domain:transfer",
                                "emailVerification:manage_credits",
                                "emailVerification:manage_keys",
                                "emailVerification:manage_sharing",
                                "emailVerification:read",
                                "emailVerification:verify",
                                "inbox:connect",
                                "inbox:create",
                                "inbox:delete",
                                "inbox:read",
                                "inbox:update",
                                "inbox:warmup_manage",
                                "integration:create",
                                "integration:delete",
                                "integration:read",
                                "integration:update",
                                "lead:create",
                                "lead:delete",
                                "lead:export",
                                "lead:import",
                                "lead:read",
                                "lead:update",
                                "leadList:create",
                                "leadList:delete",
                                "leadList:read",
                                "leadList:update",
                                "phoneVerification:manage_keys",
                                "phoneVerification:read",
                                "phoneVerification:verify",
                                "replyLabel:create",
                                "replyLabel:delete",
                                "replyLabel:read",
                                "replyLabel:update",
                                "sequence:create",
                                "sequence:delete",
                                "sequence:read",
                                "sequence:update",
                                "sql:manage_dashboards",
                                "sql:query",
                                "support:create",
                                "support:read",
                                "support:update",
                                "tag:create",
                                "tag:delete",
                                "tag:read",
                                "tag:update",
                                "task:create",
                                "task:delete",
                                "task:read",
                                "task:update",
                                "template:create",
                                "template:delete",
                                "template:read",
                                "template:update",
                                "unibox:archive",
                                "unibox:label",
                                "unibox:read",
                                "unibox:reply",
                                "webhook:create",
                                "webhook:delete",
                                "webhook:read",
                                "webhook:update",
                                "whiteLabel:read",
                                "whiteLabel:update",
                                "workflow:create",
                                "workflow:delete",
                                "workflow:publish",
                                "workflow:read",
                                "workflow:run",
                                "workflow:update",
                                "workspace:read",
                                "workspace:update",
                                "workspaceMember:invite",
                                "workspaceMember:read",
                                "workspaceMember:remove",
                                "workspaceMember:update"
                              ]
                            },
                            "maxItems": 256
                          }
                        },
                        "required": [
                          "roles",
                          "directPermissions"
                        ],
                        "patternProperties": {
                          "^(?!(?:roles|directPermissions)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "roles",
                            "directPermissions"
                          ]
                        }
                      }
                    },
                    "required": [
                      "roles",
                      "directPermissions"
                    ],
                    "patternProperties": {
                      "^(?!(?:roles|directPermissions|allWorkspaces)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "roles",
                        "directPermissions",
                        "allWorkspaces"
                      ]
                    }
                  },
                  "workspaces": {
                    "type": "array",
                    "items": {
                      "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"
                        },
                        "roles": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/RoleId"
                          },
                          "maxItems": 32
                        },
                        "directPermissions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "analytics:export",
                              "analytics:read",
                              "apiKey:create",
                              "apiKey:delete",
                              "apiKey:read",
                              "apiKey:update",
                              "blocklist:create",
                              "blocklist:delete",
                              "blocklist:read",
                              "campaign:archive",
                              "campaign:create",
                              "campaign:delete",
                              "campaign:launch",
                              "campaign:pause",
                              "campaign:read",
                              "campaign:update",
                              "dialer:assign_numbers",
                              "dialer:assign_seats",
                              "dialer:create",
                              "dialer:delete",
                              "dialer:dial",
                              "dialer:manage_billing",
                              "dialer:manage_number_health",
                              "dialer:manage_numbers",
                              "dialer:manage_numbers_self",
                              "dialer:manage_voicemails",
                              "dialer:read",
                              "dialer:read_analytics",
                              "dialer:read_numbers_all",
                              "dialer:release_numbers",
                              "dialer:update",
                              "domain:manage_dns",
                              "domain:purchase",
                              "domain:read",
                              "domain:transfer",
                              "emailVerification:manage_credits",
                              "emailVerification:manage_keys",
                              "emailVerification:manage_sharing",
                              "emailVerification:read",
                              "emailVerification:verify",
                              "inbox:connect",
                              "inbox:create",
                              "inbox:delete",
                              "inbox:read",
                              "inbox:update",
                              "inbox:warmup_manage",
                              "integration:create",
                              "integration:delete",
                              "integration:read",
                              "integration:update",
                              "lead:create",
                              "lead:delete",
                              "lead:export",
                              "lead:import",
                              "lead:read",
                              "lead:update",
                              "leadList:create",
                              "leadList:delete",
                              "leadList:read",
                              "leadList:update",
                              "phoneVerification:manage_keys",
                              "phoneVerification:read",
                              "phoneVerification:verify",
                              "replyLabel:create",
                              "replyLabel:delete",
                              "replyLabel:read",
                              "replyLabel:update",
                              "sequence:create",
                              "sequence:delete",
                              "sequence:read",
                              "sequence:update",
                              "sql:manage_dashboards",
                              "sql:query",
                              "support:create",
                              "support:read",
                              "support:update",
                              "tag:create",
                              "tag:delete",
                              "tag:read",
                              "tag:update",
                              "task:create",
                              "task:delete",
                              "task:read",
                              "task:update",
                              "template:create",
                              "template:delete",
                              "template:read",
                              "template:update",
                              "unibox:archive",
                              "unibox:label",
                              "unibox:read",
                              "unibox:reply",
                              "webhook:create",
                              "webhook:delete",
                              "webhook:read",
                              "webhook:update",
                              "whiteLabel:read",
                              "whiteLabel:update",
                              "workflow:create",
                              "workflow:delete",
                              "workflow:publish",
                              "workflow:read",
                              "workflow:run",
                              "workflow:update",
                              "workspace:read",
                              "workspace:update",
                              "workspaceMember:invite",
                              "workspaceMember:read",
                              "workspaceMember:remove",
                              "workspaceMember:update"
                            ]
                          },
                          "maxItems": 256
                        }
                      },
                      "required": [
                        "workspaceId",
                        "roles",
                        "directPermissions"
                      ],
                      "patternProperties": {
                        "^(?!(?:workspaceId|roles|directPermissions)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "workspaceId",
                          "roles",
                          "directPermissions"
                        ]
                      }
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "workspaces"
                ],
                "patternProperties": {
                  "^(?!(?:organization|workspaces)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "organization",
                    "workspaces"
                  ]
                }
              }
            },
            "required": [
              "action",
              "organizationId",
              "email",
              "grants"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|email|grants)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "email",
                "grants"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "includeExpired": {
                "type": "boolean"
              }
            },
            "required": [
              "action",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|includeExpired)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "includeExpired"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "resend"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "invitationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId",
              "invitationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|invitationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "invitationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "revoke"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "invitationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId",
              "invitationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|invitationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "invitationId"
              ]
            }
          }
        ],
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "RoleId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "InviteMembersInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "options"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "invite"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "grants": {
                    "type": "object",
                    "properties": {
                      "organization": {
                        "type": "object",
                        "properties": {
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/RoleId"
                            },
                            "maxItems": 32
                          },
                          "directPermissions": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "audit:read",
                                "billing:manage",
                                "billing:read",
                                "org:delete",
                                "orgAnalytics:read",
                                "orgAnalytics:manage",
                                "org:read",
                                "org:update",
                                "orgApiKey:manage",
                                "orgMember:invite",
                                "orgMember:read",
                                "orgMember:remove",
                                "orgMember:update",
                                "role:manage",
                                "role:read",
                                "usage:read",
                                "workspace:create",
                                "workspace:delete",
                                "workspace:transfer"
                              ]
                            },
                            "maxItems": 64
                          },
                          "allWorkspaces": {
                            "type": "object",
                            "properties": {
                              "roles": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/RoleId"
                                },
                                "maxItems": 32
                              },
                              "directPermissions": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "analytics:export",
                                    "analytics:read",
                                    "apiKey:create",
                                    "apiKey:delete",
                                    "apiKey:read",
                                    "apiKey:update",
                                    "blocklist:create",
                                    "blocklist:delete",
                                    "blocklist:read",
                                    "campaign:archive",
                                    "campaign:create",
                                    "campaign:delete",
                                    "campaign:launch",
                                    "campaign:pause",
                                    "campaign:read",
                                    "campaign:update",
                                    "dialer:assign_numbers",
                                    "dialer:assign_seats",
                                    "dialer:create",
                                    "dialer:delete",
                                    "dialer:dial",
                                    "dialer:manage_billing",
                                    "dialer:manage_number_health",
                                    "dialer:manage_numbers",
                                    "dialer:manage_numbers_self",
                                    "dialer:manage_voicemails",
                                    "dialer:read",
                                    "dialer:read_analytics",
                                    "dialer:read_numbers_all",
                                    "dialer:release_numbers",
                                    "dialer:update",
                                    "domain:manage_dns",
                                    "domain:purchase",
                                    "domain:read",
                                    "domain:transfer",
                                    "emailVerification:manage_credits",
                                    "emailVerification:manage_keys",
                                    "emailVerification:manage_sharing",
                                    "emailVerification:read",
                                    "emailVerification:verify",
                                    "inbox:connect",
                                    "inbox:create",
                                    "inbox:delete",
                                    "inbox:read",
                                    "inbox:update",
                                    "inbox:warmup_manage",
                                    "integration:create",
                                    "integration:delete",
                                    "integration:read",
                                    "integration:update",
                                    "lead:create",
                                    "lead:delete",
                                    "lead:export",
                                    "lead:import",
                                    "lead:read",
                                    "lead:update",
                                    "leadList:create",
                                    "leadList:delete",
                                    "leadList:read",
                                    "leadList:update",
                                    "phoneVerification:manage_keys",
                                    "phoneVerification:read",
                                    "phoneVerification:verify",
                                    "replyLabel:create",
                                    "replyLabel:delete",
                                    "replyLabel:read",
                                    "replyLabel:update",
                                    "sequence:create",
                                    "sequence:delete",
                                    "sequence:read",
                                    "sequence:update",
                                    "sql:manage_dashboards",
                                    "sql:query",
                                    "support:create",
                                    "support:read",
                                    "support:update",
                                    "tag:create",
                                    "tag:delete",
                                    "tag:read",
                                    "tag:update",
                                    "task:create",
                                    "task:delete",
                                    "task:read",
                                    "task:update",
                                    "template:create",
                                    "template:delete",
                                    "template:read",
                                    "template:update",
                                    "unibox:archive",
                                    "unibox:label",
                                    "unibox:read",
                                    "unibox:reply",
                                    "webhook:create",
                                    "webhook:delete",
                                    "webhook:read",
                                    "webhook:update",
                                    "whiteLabel:read",
                                    "whiteLabel:update",
                                    "workflow:create",
                                    "workflow:delete",
                                    "workflow:publish",
                                    "workflow:read",
                                    "workflow:run",
                                    "workflow:update",
                                    "workspace:read",
                                    "workspace:update",
                                    "workspaceMember:invite",
                                    "workspaceMember:read",
                                    "workspaceMember:remove",
                                    "workspaceMember:update"
                                  ]
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "roles",
                              "directPermissions"
                            ],
                            "patternProperties": {
                              "^(?!(?:roles|directPermissions)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "roles",
                                "directPermissions"
                              ]
                            }
                          }
                        },
                        "required": [
                          "roles",
                          "directPermissions"
                        ],
                        "patternProperties": {
                          "^(?!(?:roles|directPermissions|allWorkspaces)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "roles",
                            "directPermissions",
                            "allWorkspaces"
                          ]
                        }
                      },
                      "workspaces": {
                        "type": "array",
                        "items": {
                          "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"
                            },
                            "roles": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/RoleId"
                              },
                              "maxItems": 32
                            },
                            "directPermissions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "analytics:export",
                                  "analytics:read",
                                  "apiKey:create",
                                  "apiKey:delete",
                                  "apiKey:read",
                                  "apiKey:update",
                                  "blocklist:create",
                                  "blocklist:delete",
                                  "blocklist:read",
                                  "campaign:archive",
                                  "campaign:create",
                                  "campaign:delete",
                                  "campaign:launch",
                                  "campaign:pause",
                                  "campaign:read",
                                  "campaign:update",
                                  "dialer:assign_numbers",
                                  "dialer:assign_seats",
                                  "dialer:create",
                                  "dialer:delete",
                                  "dialer:dial",
                                  "dialer:manage_billing",
                                  "dialer:manage_number_health",
                                  "dialer:manage_numbers",
                                  "dialer:manage_numbers_self",
                                  "dialer:manage_voicemails",
                                  "dialer:read",
                                  "dialer:read_analytics",
                                  "dialer:read_numbers_all",
                                  "dialer:release_numbers",
                                  "dialer:update",
                                  "domain:manage_dns",
                                  "domain:purchase",
                                  "domain:read",
                                  "domain:transfer",
                                  "emailVerification:manage_credits",
                                  "emailVerification:manage_keys",
                                  "emailVerification:manage_sharing",
                                  "emailVerification:read",
                                  "emailVerification:verify",
                                  "inbox:connect",
                                  "inbox:create",
                                  "inbox:delete",
                                  "inbox:read",
                                  "inbox:update",
                                  "inbox:warmup_manage",
                                  "integration:create",
                                  "integration:delete",
                                  "integration:read",
                                  "integration:update",
                                  "lead:create",
                                  "lead:delete",
                                  "lead:export",
                                  "lead:import",
                                  "lead:read",
                                  "lead:update",
                                  "leadList:create",
                                  "leadList:delete",
                                  "leadList:read",
                                  "leadList:update",
                                  "phoneVerification:manage_keys",
                                  "phoneVerification:read",
                                  "phoneVerification:verify",
                                  "replyLabel:create",
                                  "replyLabel:delete",
                                  "replyLabel:read",
                                  "replyLabel:update",
                                  "sequence:create",
                                  "sequence:delete",
                                  "sequence:read",
                                  "sequence:update",
                                  "sql:manage_dashboards",
                                  "sql:query",
                                  "support:create",
                                  "support:read",
                                  "support:update",
                                  "tag:create",
                                  "tag:delete",
                                  "tag:read",
                                  "tag:update",
                                  "task:create",
                                  "task:delete",
                                  "task:read",
                                  "task:update",
                                  "template:create",
                                  "template:delete",
                                  "template:read",
                                  "template:update",
                                  "unibox:archive",
                                  "unibox:label",
                                  "unibox:read",
                                  "unibox:reply",
                                  "webhook:create",
                                  "webhook:delete",
                                  "webhook:read",
                                  "webhook:update",
                                  "whiteLabel:read",
                                  "whiteLabel:update",
                                  "workflow:create",
                                  "workflow:delete",
                                  "workflow:publish",
                                  "workflow:read",
                                  "workflow:run",
                                  "workflow:update",
                                  "workspace:read",
                                  "workspace:update",
                                  "workspaceMember:invite",
                                  "workspaceMember:read",
                                  "workspaceMember:remove",
                                  "workspaceMember:update"
                                ]
                              },
                              "maxItems": 256
                            }
                          },
                          "required": [
                            "workspaceId",
                            "roles",
                            "directPermissions"
                          ],
                          "patternProperties": {
                            "^(?!(?:workspaceId|roles|directPermissions)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "workspaceId",
                              "roles",
                              "directPermissions"
                            ]
                          }
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "workspaces"
                    ],
                    "patternProperties": {
                      "^(?!(?:organization|workspaces)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "organization",
                        "workspaces"
                      ]
                    }
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "email",
                  "grants"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|email|grants)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "email",
                    "grants"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "list"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "includeExpired": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "action",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|includeExpired)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "includeExpired"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "resend"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "invitationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "invitationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|invitationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "invitationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "revoke"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "invitationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "invitationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|invitationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "invitationId"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "launch_campaign",
      "description": "Launch a draft campaign: preview binds the exact version and input hash, commit activates the campaign in-request and returns an already-succeeded operation handle.\n\nUse to start sending for a draft campaign after inspect_campaign and validate_campaign pass.\n\nNever launch without a preview token, and never reuse one after the campaign changed or the token expired.\n\nUse the native preview first and pass its confirmation token unchanged to commit. A token does not bypass current permissions or Workspace checks.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "preview"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "commit"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "confirmationToken": {
                "type": "string"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "confirmationToken"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|confirmationToken)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "confirmationToken"
              ]
            }
          }
        ]
      },
      "outputSchema": {
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Money": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BOV",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHE",
                  "CHF",
                  "CHW",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "COU",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MXV",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLE",
                  "SOS",
                  "SRD",
                  "SSP",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "USN",
                  "UYI",
                  "UYU",
                  "UYW",
                  "UZS",
                  "VED",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAD",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XBA",
                  "XBB",
                  "XBC",
                  "XBD",
                  "XCD",
                  "XCG",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "XSU",
                  "XTS",
                  "XUA",
                  "XXX",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWG"
                ]
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "patternProperties": {
              "^(?!(?:amountMinor|currency)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "amountMinor",
                "currency"
              ]
            }
          },
          "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$"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "campaignId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "campaignVersion": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "preview": {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "$ref": "#/$defs/Description"
                          },
                          "affected": {
                            "type": "object",
                            "properties": {
                              "resourceCounts": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    "count": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "count"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|count)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "count"
                                    ]
                                  }
                                },
                                "maxItems": 64
                              },
                              "resourceIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "resourceCounts",
                              "resourceIds"
                            ],
                            "patternProperties": {
                              "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "resourceCounts",
                                "resourceIds"
                              ]
                            }
                          },
                          "costEstimate": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "$ref": "#/$defs/Money"
                              },
                              "max": {
                                "$ref": "#/$defs/Money"
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "patternProperties": {
                              "^(?!(?:min|max)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "min",
                                "max"
                              ]
                            }
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "irreversibleFacts": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "inputHash": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "previewVersion": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "summary",
                          "affected",
                          "warnings",
                          "irreversibleFacts",
                          "inputHash",
                          "previewVersion",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "affected",
                            "costEstimate",
                            "warnings",
                            "irreversibleFacts",
                            "inputHash",
                            "previewVersion",
                            "expiresAt"
                          ]
                        }
                      },
                      "confirmationToken": {
                        "$ref": "#/$defs/OpaqueId"
                      }
                    },
                    "required": [
                      "campaignId",
                      "campaignVersion",
                      "preview",
                      "confirmationToken"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaignId|campaignVersion|preview|confirmationToken)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaignId",
                        "campaignVersion",
                        "preview",
                        "confirmationToken"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "statusUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "$ref": "#/$defs/HttpResourcePath"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "waiting_for_user",
                          "succeeded",
                          "partially_succeeded",
                          "failed",
                          "canceled",
                          "canceling"
                        ]
                      },
                      "acceptedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "progress": {
                        "type": "object",
                        "properties": {
                          "completed": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "message": {
                            "$ref": "#/$defs/NonEmptyString"
                          }
                        },
                        "required": [
                          "completed"
                        ],
                        "patternProperties": {
                          "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "completed",
                            "total",
                            "message"
                          ]
                        }
                      },
                      "canCancel": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "statusUrl",
                      "state",
                      "acceptedAt",
                      "canCancel"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "statusUrl",
                        "state",
                        "acceptedAt",
                        "progress",
                        "canCancel"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "campaignVersion": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "preview": {
                            "type": "object",
                            "properties": {
                              "summary": {
                                "$ref": "#/$defs/Description"
                              },
                              "affected": {
                                "type": "object",
                                "properties": {
                                  "resourceCounts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "$ref": "#/$defs/NonEmptyString"
                                        },
                                        "count": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "count"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:type|count)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "type",
                                          "count"
                                        ]
                                      }
                                    },
                                    "maxItems": 64
                                  },
                                  "resourceIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "maxItems": 256
                                  }
                                },
                                "required": [
                                  "resourceCounts",
                                  "resourceIds"
                                ],
                                "patternProperties": {
                                  "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "resourceCounts",
                                    "resourceIds"
                                  ]
                                }
                              },
                              "costEstimate": {
                                "type": "object",
                                "properties": {
                                  "min": {
                                    "$ref": "#/$defs/Money"
                                  },
                                  "max": {
                                    "$ref": "#/$defs/Money"
                                  }
                                },
                                "required": [
                                  "min",
                                  "max"
                                ],
                                "patternProperties": {
                                  "^(?!(?:min|max)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "min",
                                    "max"
                                  ]
                                }
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "irreversibleFacts": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "inputHash": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "previewVersion": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "expiresAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "summary",
                              "affected",
                              "warnings",
                              "irreversibleFacts",
                              "inputHash",
                              "previewVersion",
                              "expiresAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "summary",
                                "affected",
                                "costEstimate",
                                "warnings",
                                "irreversibleFacts",
                                "inputHash",
                                "previewVersion",
                                "expiresAt"
                              ]
                            }
                          },
                          "confirmationToken": {
                            "$ref": "#/$defs/OpaqueId"
                          }
                        },
                        "required": [
                          "campaignId",
                          "campaignVersion",
                          "preview",
                          "confirmationToken"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|campaignVersion|preview|confirmationToken)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "campaignVersion",
                            "preview",
                            "confirmationToken"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "preview_commit",
      "mapping": {
        "kind": "preview_commit",
        "previewOperationId": "campaigns.previewLaunch",
        "commitOperationId": "campaigns.launch"
      },
      "scopes": [
        "campaign:launch"
      ],
      "bundles": [
        "campaigns"
      ],
      "risk": "costly",
      "idempotency": "required",
      "confirmation": "preview_token",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "campaigns.previewLaunch",
        "campaigns.launch"
      ],
      "invocations": [
        {
          "operationId": "campaigns.previewLaunch",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/launch-preview",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.launch",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/launch",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "preview"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "commit"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "confirmationToken": {
                "type": "string"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "confirmationToken"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|confirmationToken)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "confirmationToken"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "feature": "booking",
      "name": "list_booking_event_types",
      "description": "List a connected provider's bookable event types so one can be chosen as the default.\n\nUse before set_booking_default_event_type to obtain a valid `eventTypeRef` and the current connection id.\n\nDo not call it on a provider the workspace has not connected; that is a not-found, not an empty list.",
      "inputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          }
        },
        "required": [
          "workspaceId",
          "provider"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "eventTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string",
                  "enum": [
                    "calendly",
                    "cal_com"
                  ]
                },
                "ref": {
                  "$ref": "#/$defs/OpaqueId"
                },
                "name": {
                  "$ref": "#/$defs/ShortText"
                },
                "durationMinutes": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "schedulingUrl": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/HttpUrl"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "active": {
                  "type": "boolean"
                }
              },
              "required": [
                "provider",
                "ref",
                "name",
                "durationMinutes",
                "schedulingUrl",
                "active"
              ],
              "patternProperties": {
                "^(?!(?:provider|ref|name|durationMinutes|schedulingUrl|active)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "provider",
                  "ref",
                  "name",
                  "durationMinutes",
                  "schedulingUrl",
                  "active"
                ]
              }
            },
            "maxItems": 200
          }
        },
        "required": [
          "provider",
          "connectionId",
          "eventTypes"
        ],
        "patternProperties": {
          "^(?!(?:provider|connectionId|eventTypes)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "provider",
            "connectionId",
            "eventTypes"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_booking_event_types"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "booking"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "booking.eventTypes.list"
      ],
      "invocations": [
        {
          "operationId": "booking.eventTypes.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/booking/:provider/event-types",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          }
        },
        "required": [
          "workspaceId",
          "provider"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider"
          ]
        }
      }
    },
    {
      "feature": "agent-platform",
      "name": "list_capabilities",
      "description": "List capabilities with per-actor availability, scopes, confirmation policy, and bounded hints.\n\nUse to discover what this credential can actually run right now, filtered by feature, risk, or availability.\n\nAvailability is computed per request; do not cache it across credential or consent changes.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "feature": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "risk": {
            "type": "string",
            "enum": [
              "read",
              "write",
              "costly",
              "destructive",
              "security_admin"
            ]
          },
          "availability": {
            "type": "string",
            "enum": [
              "available",
              "scope_required",
              "permission_denied",
              "feature_disabled",
              "subscription_blocked",
              "human_completion_required",
              "temporarily_unavailable"
            ]
          }
        },
        "patternProperties": {
          "^(?!(?:cursor|limit|feature|risk|availability)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "cursor",
            "limit",
            "feature",
            "risk",
            "availability"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_]{0,63}$"
                },
                "feature": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "purpose": {
                  "$ref": "#/$defs/Description"
                },
                "prerequisites": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "direct_tool",
                    "mcp_resource",
                    "async_operation",
                    "preview_commit",
                    "user_completion",
                    "human_only"
                  ]
                },
                "risk": {
                  "type": "string",
                  "enum": [
                    "read",
                    "write",
                    "costly",
                    "destructive",
                    "security_admin"
                  ]
                },
                "scopes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "agent:capabilities",
                      "agent:identity",
                      "agent:operations:cancel",
                      "agent:operations:read",
                      "analytics:export",
                      "analytics:read",
                      "apiKey:create",
                      "apiKey:delete",
                      "apiKey:read",
                      "apiKey:update",
                      "audit:read",
                      "billing:manage",
                      "billing:read",
                      "blocklist:create",
                      "blocklist:delete",
                      "blocklist:read",
                      "campaign:archive",
                      "campaign:create",
                      "campaign:delete",
                      "campaign:launch",
                      "campaign:pause",
                      "campaign:read",
                      "campaign:update",
                      "dialer:assign_numbers",
                      "dialer:assign_seats",
                      "dialer:create",
                      "dialer:delete",
                      "dialer:dial",
                      "dialer:manage_billing",
                      "dialer:manage_number_health",
                      "dialer:manage_numbers",
                      "dialer:manage_numbers_self",
                      "dialer:manage_voicemails",
                      "dialer:read",
                      "dialer:read_analytics",
                      "dialer:read_numbers_all",
                      "dialer:release_numbers",
                      "dialer:update",
                      "domain:manage_dns",
                      "domain:purchase",
                      "domain:read",
                      "domain:transfer",
                      "emailVerification:manage_credits",
                      "emailVerification:manage_keys",
                      "emailVerification:manage_sharing",
                      "emailVerification:read",
                      "emailVerification:verify",
                      "inbox:connect",
                      "inbox:create",
                      "inbox:delete",
                      "inbox:read",
                      "inbox:update",
                      "inbox:warmup_manage",
                      "integration:create",
                      "integration:delete",
                      "integration:read",
                      "integration:update",
                      "lead:create",
                      "lead:delete",
                      "lead:export",
                      "lead:import",
                      "lead:read",
                      "lead:update",
                      "leadList:create",
                      "leadList:delete",
                      "leadList:read",
                      "leadList:update",
                      "org:delete",
                      "orgAnalytics:read",
                      "orgAnalytics:manage",
                      "org:read",
                      "org:update",
                      "orgApiKey:manage",
                      "orgMember:invite",
                      "orgMember:read",
                      "orgMember:remove",
                      "orgMember:update",
                      "phoneVerification:manage_keys",
                      "phoneVerification:read",
                      "phoneVerification:verify",
                      "platform:operate",
                      "replyLabel:create",
                      "replyLabel:delete",
                      "replyLabel:read",
                      "replyLabel:update",
                      "role:manage",
                      "role:read",
                      "sequence:create",
                      "sequence:delete",
                      "sequence:read",
                      "sequence:update",
                      "sql:manage_dashboards",
                      "sql:query",
                      "support:create",
                      "support:read",
                      "support:update",
                      "tag:create",
                      "tag:delete",
                      "tag:read",
                      "tag:update",
                      "task:create",
                      "task:delete",
                      "task:read",
                      "task:update",
                      "template:create",
                      "template:delete",
                      "template:read",
                      "template:update",
                      "unibox:archive",
                      "unibox:label",
                      "unibox:read",
                      "unibox:reply",
                      "usage:read",
                      "webhook:create",
                      "webhook:delete",
                      "webhook:read",
                      "webhook:update",
                      "whiteLabel:read",
                      "whiteLabel:update",
                      "workflow:create",
                      "workflow:delete",
                      "workflow:publish",
                      "workflow:read",
                      "workflow:run",
                      "workflow:update",
                      "workspace:create",
                      "workspace:delete",
                      "workspace:read",
                      "workspace:transfer",
                      "workspace:update",
                      "workspaceMember:invite",
                      "workspaceMember:read",
                      "workspaceMember:remove",
                      "workspaceMember:update"
                    ]
                  }
                },
                "confirmation": {
                  "type": "string",
                  "enum": [
                    "none",
                    "explicit",
                    "preview_token",
                    "human_completion"
                  ]
                },
                "resultMode": {
                  "type": "string",
                  "enum": [
                    "inline",
                    "page",
                    "operation_handle",
                    "stream",
                    "download",
                    "redirect"
                  ]
                },
                "availability": {
                  "type": "object",
                  "properties": {
                    "state": {
                      "type": "string",
                      "enum": [
                        "available",
                        "scope_required",
                        "permission_denied",
                        "feature_disabled",
                        "subscription_blocked",
                        "human_completion_required",
                        "temporarily_unavailable"
                      ]
                    },
                    "reason": {
                      "$ref": "#/$defs/ShortText"
                    }
                  },
                  "required": [
                    "state"
                  ],
                  "patternProperties": {
                    "^(?!(?:state|reason)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "state",
                      "reason"
                    ]
                  }
                },
                "inputFields": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/NonEmptyString"
                  }
                },
                "outputBounds": {
                  "type": "object",
                  "properties": {
                    "maxItems": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxBytes": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "maxItems",
                    "maxBytes"
                  ],
                  "patternProperties": {
                    "^(?!(?:maxItems|maxBytes)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "maxItems",
                      "maxBytes"
                    ]
                  }
                },
                "bundles": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  }
                }
              },
              "required": [
                "id",
                "feature",
                "purpose",
                "prerequisites",
                "kind",
                "risk",
                "scopes",
                "confirmation",
                "resultMode",
                "availability",
                "inputFields",
                "outputBounds",
                "bundles"
              ],
              "patternProperties": {
                "^(?!(?:id|feature|purpose|prerequisites|kind|risk|scopes|confirmation|resultMode|availability|inputFields|outputBounds|bundles)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "feature",
                  "purpose",
                  "prerequisites",
                  "kind",
                  "risk",
                  "scopes",
                  "confirmation",
                  "resultMode",
                  "availability",
                  "inputFields",
                  "outputBounds",
                  "bundles"
                ]
              }
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "$ref": "#/$defs/Cursor"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "patternProperties": {
          "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "items",
            "nextCursor"
          ]
        },
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_capabilities"
      },
      "scopes": [
        "agent:capabilities"
      ],
      "bundles": [
        "platform"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "agent.listCapabilities"
      ],
      "invocations": [
        {
          "operationId": "agent.listCapabilities",
          "method": "GET",
          "path": "/agent/capabilities",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "feature": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "risk": {
            "type": "string",
            "enum": [
              "read",
              "write",
              "costly",
              "destructive",
              "security_admin"
            ]
          },
          "availability": {
            "type": "string",
            "enum": [
              "available",
              "scope_required",
              "permission_denied",
              "feature_disabled",
              "subscription_blocked",
              "human_completion_required",
              "temporarily_unavailable"
            ]
          }
        },
        "patternProperties": {
          "^(?!(?:cursor|limit|feature|risk|availability)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "cursor",
            "limit",
            "feature",
            "risk",
            "availability"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      }
    },
    {
      "feature": "agent-platform",
      "name": "list_capability_bundles",
      "description": "List curated capability bundles so an agent can adopt a focused tool set instead of the whole catalog.\n\nUse at session start to choose the smallest bundle set covering the task at hand.\n\nBundles are discovery metadata; they never grant authority the credential's scopes do not.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "patternProperties": {
          "^(?!(?:cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_]{0,63}$"
                },
                "title": {
                  "$ref": "#/$defs/ShortText"
                },
                "capabilities": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  }
                }
              },
              "required": [
                "id",
                "title",
                "capabilities"
              ],
              "patternProperties": {
                "^(?!(?:id|title|capabilities)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "title",
                  "capabilities"
                ]
              }
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "$ref": "#/$defs/Cursor"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "patternProperties": {
          "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "items",
            "nextCursor"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_capability_bundles"
      },
      "scopes": [
        "agent:capabilities"
      ],
      "bundles": [
        "platform"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "agent.listCapabilityBundles"
      ],
      "invocations": [
        {
          "operationId": "agent.listCapabilityBundles",
          "method": "GET",
          "path": "/agent/capability-bundles",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "patternProperties": {
          "^(?!(?:cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      }
    },
    {
      "feature": "platform-operations",
      "name": "list_dashboards",
      "description": "List the complete saved dashboards and saved queries visible in this Workspace.\n\nUse before creating reporting documents or to find the dashboardId and revision to edit.\n\nRequires the Workspace SQL feature and the stated permission. This does not grant access to another Workspace or execute stored SQL automatically.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "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"
                },
                "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"
                },
                "ownerId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "updatedAt": {
                  "type": "string"
                },
                "document": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "number",
                      "enum": [
                        1
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "dashboard",
                        "query"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "filters": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "string",
                          "maxLength": 40
                        },
                        "to": {
                          "type": "string",
                          "maxLength": 40
                        },
                        "domain": {
                          "type": "string",
                          "maxLength": 253
                        },
                        "ip": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "source": {
                          "type": "string",
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "from",
                        "to",
                        "domain",
                        "ip",
                        "source"
                      ],
                      "patternProperties": {
                        "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      }
                    },
                    "widgets": {
                      "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"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "chart",
                              "text"
                            ]
                          },
                          "title": {
                            "type": "string",
                            "maxLength": 160
                          },
                          "text": {
                            "type": "string",
                            "maxLength": 4000
                          },
                          "query": {
                            "type": "string",
                            "maxLength": 20000
                          },
                          "bindings": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "from",
                                "to",
                                "domain",
                                "ip",
                                "source"
                              ]
                            },
                            "maxItems": 32
                          },
                          "chart": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "table",
                                  "number",
                                  "line",
                                  "area",
                                  "bar"
                                ]
                              },
                              "dimension": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "measures": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 128
                                },
                                "maxItems": 8
                              },
                              "format": {
                                "type": "string",
                                "enum": [
                                  "number",
                                  "percent",
                                  "currency",
                                  "duration",
                                  "bytes"
                                ]
                              },
                              "decimals": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 6
                              },
                              "label": {
                                "type": "string",
                                "maxLength": 128
                              }
                            },
                            "required": [
                              "type",
                              "dimension",
                              "measures",
                              "format",
                              "decimals",
                              "label"
                            ],
                            "patternProperties": {
                              "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "type",
                                "dimension",
                                "measures",
                                "format",
                                "decimals",
                                "label"
                              ]
                            }
                          },
                          "layout": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 11
                              },
                              "y": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "w": {
                                "type": "integer",
                                "minimum": 2,
                                "maximum": 12
                              },
                              "h": {
                                "type": "integer",
                                "minimum": 2,
                                "maximum": 12
                              }
                            },
                            "required": [
                              "x",
                              "y",
                              "w",
                              "h"
                            ],
                            "patternProperties": {
                              "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "x",
                                "y",
                                "w",
                                "h"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "title",
                          "text",
                          "query",
                          "bindings",
                          "chart",
                          "layout"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "kind",
                            "title",
                            "text",
                            "query",
                            "bindings",
                            "chart",
                            "layout"
                          ]
                        }
                      },
                      "maxItems": 30
                    }
                  },
                  "required": [
                    "version",
                    "kind",
                    "name",
                    "description",
                    "filters",
                    "widgets"
                  ],
                  "patternProperties": {
                    "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "version",
                      "kind",
                      "name",
                      "description",
                      "filters",
                      "widgets"
                    ]
                  }
                }
              },
              "required": [
                "id",
                "workspaceId",
                "ownerId",
                "revision",
                "updatedAt",
                "document"
              ],
              "patternProperties": {
                "^(?!(?:id|workspaceId|ownerId|revision|updatedAt|document)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "workspaceId",
                  "ownerId",
                  "revision",
                  "updatedAt",
                  "document"
                ]
              }
            }
          }
        },
        "required": [
          "items"
        ],
        "patternProperties": {
          "^(?!(?:items)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "items"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_dashboards"
      },
      "scopes": [
        "sql:query"
      ],
      "bundles": [
        "workspace_sql"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "dashboards.list"
      ],
      "invocations": [
        {
          "operationId": "dashboards.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dashboards",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "list_integration_connections",
      "description": "List every provider connection in the workspace — CRM, outreach, enrichment, scheduling, and workflow connectors — with status and health.\n\nUse to learn which integrations are connected before choosing a provider-specific capability.\n\nThe catalog never calls a provider; use the provider's own status capability for live detail.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                },
                "displayName": {
                  "$ref": "#/$defs/ShortText"
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "crm",
                    "outreach",
                    "enrichment",
                    "scheduling",
                    "workflow_connector"
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "connected",
                        "needs_reauthorization",
                        "disabled",
                        "disconnected"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "connectionId": {
                  "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"
                    }
                  ]
                },
                "label": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "health": {
                  "type": "string",
                  "enum": [
                    "ok",
                    "degraded",
                    "needs_reauthorization",
                    "disconnected",
                    "unknown"
                  ]
                },
                "capabilities": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "maxItems": 20
                },
                "connectedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastValidatedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "provider",
                "displayName",
                "category",
                "status",
                "connectionId",
                "label",
                "health",
                "capabilities",
                "connectedAt",
                "lastValidatedAt"
              ],
              "patternProperties": {
                "^(?!(?:provider|displayName|category|status|connectionId|label|health|capabilities|connectedAt|lastValidatedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "provider",
                  "displayName",
                  "category",
                  "status",
                  "connectionId",
                  "label",
                  "health",
                  "capabilities",
                  "connectedAt",
                  "lastValidatedAt"
                ]
              }
            },
            "maxItems": 200
          }
        },
        "required": [
          "items"
        ],
        "patternProperties": {
          "^(?!(?:items)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "items"
              ]
            }
          ]
        },
        "$defs": {
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_integration_connections"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "integration_directory"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationCatalog.list"
      ],
      "invocations": [
        {
          "operationId": "integrationCatalog.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "list_integration_shares",
      "description": "List connections this workspace shares with sibling workspaces and connections shared into it.\n\nUse before sharing, detaching, or troubleshooting a connection that came from another workspace.\n\nUse list_integration_connections for connection health; this lists sharing relationships only.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "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"
                },
                "adapter": {
                  "$ref": "#/$defs/IntegrationShareAdapter"
                },
                "provider": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                },
                "displayName": {
                  "$ref": "#/$defs/ShortText"
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "source",
                    "target"
                  ]
                },
                "sourceWorkspaceId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "sourceWorkspaceName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sourceConnectionId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "sourceConnected": {
                  "type": "boolean"
                },
                "includeFutureWorkspaces": {
                  "type": "boolean"
                },
                "createdAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "revokedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "targets": {
                  "type": "array",
                  "items": {
                    "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"
                      },
                      "workspaceName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "attaching",
                          "attached",
                          "detached",
                          "failed"
                        ]
                      },
                      "connectionId": {
                        "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"
                          }
                        ]
                      },
                      "failureReason": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "attachedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "detachedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "workspaceId",
                      "workspaceName",
                      "state",
                      "connectionId",
                      "failureReason",
                      "attachedAt",
                      "detachedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:workspaceId|workspaceName|state|connectionId|failureReason|attachedAt|detachedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "workspaceId",
                        "workspaceName",
                        "state",
                        "connectionId",
                        "failureReason",
                        "attachedAt",
                        "detachedAt"
                      ]
                    }
                  },
                  "maxItems": 500
                }
              },
              "required": [
                "id",
                "adapter",
                "provider",
                "displayName",
                "role",
                "sourceWorkspaceId",
                "sourceWorkspaceName",
                "sourceConnectionId",
                "sourceConnected",
                "includeFutureWorkspaces",
                "createdAt",
                "revokedAt",
                "targets"
              ],
              "patternProperties": {
                "^(?!(?:id|adapter|provider|displayName|role|sourceWorkspaceId|sourceWorkspaceName|sourceConnectionId|sourceConnected|includeFutureWorkspaces|createdAt|revokedAt|targets)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "adapter",
                  "provider",
                  "displayName",
                  "role",
                  "sourceWorkspaceId",
                  "sourceWorkspaceName",
                  "sourceConnectionId",
                  "sourceConnected",
                  "includeFutureWorkspaces",
                  "createdAt",
                  "revokedAt",
                  "targets"
                ]
              }
            },
            "maxItems": 500
          }
        },
        "required": [
          "items"
        ],
        "patternProperties": {
          "^(?!(?:items)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "items"
              ]
            }
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          },
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_integration_shares"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "integration_sharing"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationShares.list"
      ],
      "invocations": [
        {
          "operationId": "integrationShares.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integration-shares",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "platform-operations",
      "name": "list_organization_dashboards",
      "description": "List the complete saved dashboards and saved queries owned by this Organization.\n\nUse before creating reporting documents or to find the dashboardId and revision to edit.\n\nRequires the stated Organization analytics permission. Reading a document never executes its SQL; saving validates every selected child, and execution always requires live child SQL access and feature eligibility.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "organizationId"
        ],
        "patternProperties": {
          "^(?!(?:organizationId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "organizationId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "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"
                },
                "organizationId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "workspaceIds": {
                  "anyOf": [
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "minItems": 1,
                      "maxItems": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ownerId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "Infinity",
                        "-Infinity",
                        "NaN"
                      ]
                    }
                  ]
                },
                "updatedAt": {
                  "type": "string"
                },
                "document": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "number",
                      "enum": [
                        1
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "dashboard",
                        "query"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "filters": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "string",
                          "maxLength": 40
                        },
                        "to": {
                          "type": "string",
                          "maxLength": 40
                        },
                        "domain": {
                          "type": "string",
                          "maxLength": 253
                        },
                        "ip": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "source": {
                          "type": "string",
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "from",
                        "to",
                        "domain",
                        "ip",
                        "source"
                      ],
                      "patternProperties": {
                        "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      }
                    },
                    "widgets": {
                      "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"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "chart",
                              "text"
                            ]
                          },
                          "title": {
                            "type": "string",
                            "maxLength": 160
                          },
                          "text": {
                            "type": "string",
                            "maxLength": 4000
                          },
                          "query": {
                            "type": "string",
                            "maxLength": 20000
                          },
                          "bindings": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "from",
                                "to",
                                "domain",
                                "ip",
                                "source"
                              ]
                            },
                            "maxItems": 32
                          },
                          "chart": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "table",
                                  "number",
                                  "line",
                                  "area",
                                  "bar"
                                ]
                              },
                              "dimension": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "measures": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 128
                                },
                                "maxItems": 8
                              },
                              "format": {
                                "type": "string",
                                "enum": [
                                  "number",
                                  "percent",
                                  "currency",
                                  "duration",
                                  "bytes"
                                ]
                              },
                              "decimals": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 6
                              },
                              "label": {
                                "type": "string",
                                "maxLength": 128
                              }
                            },
                            "required": [
                              "type",
                              "dimension",
                              "measures",
                              "format",
                              "decimals",
                              "label"
                            ],
                            "patternProperties": {
                              "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "type",
                                "dimension",
                                "measures",
                                "format",
                                "decimals",
                                "label"
                              ]
                            }
                          },
                          "layout": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 11
                              },
                              "y": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "w": {
                                "type": "integer",
                                "minimum": 2,
                                "maximum": 12
                              },
                              "h": {
                                "type": "integer",
                                "minimum": 2,
                                "maximum": 12
                              }
                            },
                            "required": [
                              "x",
                              "y",
                              "w",
                              "h"
                            ],
                            "patternProperties": {
                              "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "x",
                                "y",
                                "w",
                                "h"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "title",
                          "text",
                          "query",
                          "bindings",
                          "chart",
                          "layout"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "kind",
                            "title",
                            "text",
                            "query",
                            "bindings",
                            "chart",
                            "layout"
                          ]
                        }
                      },
                      "maxItems": 30
                    }
                  },
                  "required": [
                    "version",
                    "kind",
                    "name",
                    "description",
                    "filters",
                    "widgets"
                  ],
                  "patternProperties": {
                    "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "version",
                      "kind",
                      "name",
                      "description",
                      "filters",
                      "widgets"
                    ]
                  }
                }
              },
              "required": [
                "id",
                "organizationId",
                "workspaceIds",
                "ownerId",
                "revision",
                "updatedAt",
                "document"
              ],
              "patternProperties": {
                "^(?!(?:id|organizationId|workspaceIds|ownerId|revision|updatedAt|document)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "organizationId",
                  "workspaceIds",
                  "ownerId",
                  "revision",
                  "updatedAt",
                  "document"
                ]
              }
            }
          }
        },
        "required": [
          "items"
        ],
        "patternProperties": {
          "^(?!(?:items)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "items"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_organization_dashboards"
      },
      "scopes": [
        "orgAnalytics:read"
      ],
      "bundles": [
        "organization_sql"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationDashboards.list"
      ],
      "invocations": [
        {
          "operationId": "organizationDashboards.list",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/dashboards",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "organizationId"
        ],
        "patternProperties": {
          "^(?!(?:organizationId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "organizationId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "list_permission_requests",
      "description": "List permission requests in a workspace (reviewers see everyone's; others see their own), whether requests are enabled, and which workspace permissions the person could still request.\n\nUse to check the status of a request you filed, to show a reviewer what is waiting, or to find the exact permission slugs before calling request_permissions.\n\nIt does not list members or their current grants; use the member tools for that.",
      "inputSchema": {
        "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"
          },
          "status": {
            "$ref": "#/$defs/PermissionRequestStatus"
          },
          "scope": {
            "$ref": "#/$defs/PermissionRequestListScope"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|status|scope)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "status",
            "scope"
          ]
        },
        "$defs": {
          "PermissionRequestStatus": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "denied",
              "canceled",
              "expired"
            ]
          },
          "PermissionRequestListScope": {
            "type": "string",
            "enum": [
              "mine",
              "all"
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "PermissionRequestStatus": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "denied",
              "canceled",
              "expired"
            ]
          },
          "PermissionRequestPerson": {
            "type": "object",
            "properties": {
              "userId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "userId",
              "name",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "name",
                "email"
              ]
            }
          },
          "PermissionRequestContext": {
            "type": "object",
            "properties": {
              "attemptedOperation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptedTool": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "explanation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:attemptedOperation|attemptedTool|explanation)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attemptedOperation",
                "attemptedTool",
                "explanation"
              ]
            }
          },
          "PermissionRequestSource": {
            "type": "string",
            "enum": [
              "web",
              "api",
              "agent"
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "PermissionRequest": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/PermissionRequestId"
              },
              "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"
              },
              "status": {
                "$ref": "#/$defs/PermissionRequestStatus"
              },
              "requester": {
                "$ref": "#/$defs/PermissionRequestPerson"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "grantedPermissions": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "context": {
                "$ref": "#/$defs/PermissionRequestContext"
              },
              "source": {
                "$ref": "#/$defs/PermissionRequestSource"
              },
              "agentName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "decidedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decidedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestPerson"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decisionNote": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewable": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "requester",
              "permissions",
              "grantedPermissions",
              "reason",
              "context",
              "source",
              "agentName",
              "createdAt",
              "expiresAt",
              "decidedAt",
              "decidedBy",
              "decisionNote",
              "reviewable"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|requester|permissions|grantedPermissions|reason|context|source|agentName|createdAt|expiresAt|decidedAt|decidedBy|decisionNote|reviewable)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "requester",
                "permissions",
                "grantedPermissions",
                "reason",
                "context",
                "source",
                "agentName",
                "createdAt",
                "expiresAt",
                "decidedAt",
                "decidedBy",
                "decisionNote",
                "reviewable"
              ]
            }
          },
          "PermissionRequestOverview": {
            "type": "object",
            "properties": {
              "requests": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/PermissionRequest"
                }
              },
              "requestsEnabled": {
                "type": "boolean"
              },
              "canReview": {
                "type": "boolean"
              },
              "requestablePermissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "pendingCount": {
                "type": "integer"
              }
            },
            "required": [
              "requests",
              "requestsEnabled",
              "canReview",
              "requestablePermissions",
              "pendingCount"
            ],
            "patternProperties": {
              "^(?!(?:requests|requestsEnabled|canReview|requestablePermissions|pendingCount)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "requests",
                "requestsEnabled",
                "canReview",
                "requestablePermissions",
                "pendingCount"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/PermissionRequestOverview"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestOverview"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_permission_requests"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "permission_requests"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "permissionRequests.list"
      ],
      "invocations": [
        {
          "operationId": "permissionRequests.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/permission-requests",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "status": {
            "$ref": "#/$defs/PermissionRequestStatus"
          },
          "scope": {
            "$ref": "#/$defs/PermissionRequestListScope"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|status|scope)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "status",
            "scope"
          ]
        },
        "$defs": {
          "PermissionRequestStatus": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "denied",
              "canceled",
              "expired"
            ]
          },
          "PermissionRequestListScope": {
            "type": "string",
            "enum": [
              "mine",
              "all"
            ]
          }
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "list_reminders",
      "description": "List reminders in a workspace with a cursor page.\n\nUse to inspect pending, sent, or cancelled reminders before changing them.\n\nDo not poll in a tight loop; reminders change on user action.",
      "inputSchema": {
        "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"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "sent",
              "cancelled"
            ]
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|status|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "status",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "outputSchema": {
        "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"
                },
                "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"
                },
                "threadId": {
                  "$ref": "#/$defs/ProviderId"
                },
                "remindAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "isAutomatic": {
                  "type": "boolean"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "sent",
                    "cancelled"
                  ]
                },
                "sentAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "cancelledAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "jobRunId": {
                  "anyOf": [
                    {
                      "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": "string",
                          "pattern": "^run_[a-zA-Z0-9]{1,200}$"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "id",
                "workspaceId",
                "threadId",
                "remindAt",
                "isAutomatic",
                "status",
                "sentAt",
                "cancelledAt",
                "jobRunId",
                "createdAt",
                "updatedAt"
              ],
              "patternProperties": {
                "^(?!(?:id|workspaceId|threadId|remindAt|isAutomatic|status|sentAt|cancelledAt|jobRunId|createdAt|updatedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "workspaceId",
                  "threadId",
                  "remindAt",
                  "isAutomatic",
                  "status",
                  "sentAt",
                  "cancelledAt",
                  "jobRunId",
                  "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"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "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
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_reminders"
      },
      "scopes": [
        "unibox:read"
      ],
      "bundles": [
        "reminders"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "reminders.list"
      ],
      "invocations": [
        {
          "operationId": "reminders.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/reminders",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "sent",
              "cancelled"
            ]
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|status|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "status",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "list_support_access",
      "description": "List a workspace's support-access grants to Scheduler Zero support, the permissions the caller may grant, and the support-access audit trail (granted, used, revoked, expired).\n\nUse before granting or revoking, or to show who at Scheduler Zero support can currently act in the workspace and when they last did.\n\nIt does not list workspace members or their roles; use the member tools for that.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "SupportAccessGrantId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "SupportAccessStatus": {
            "type": "string",
            "enum": [
              "active",
              "expired",
              "revoked"
            ]
          },
          "SupportAccessDurationHours": {
            "type": "number",
            "enum": [
              24,
              72,
              168
            ]
          },
          "SupportAccessPerson": {
            "type": "object",
            "properties": {
              "userId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "userId",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:userId|email)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "email"
              ]
            }
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "SupportAccessGrant": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/SupportAccessGrantId"
              },
              "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"
              },
              "status": {
                "$ref": "#/$defs/SupportAccessStatus"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "agent:capabilities",
                    "agent:identity",
                    "agent:operations:cancel",
                    "agent:operations:read",
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "audit:read",
                    "billing:manage",
                    "billing:read",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "org:delete",
                    "orgAnalytics:read",
                    "orgAnalytics:manage",
                    "org:read",
                    "org:update",
                    "orgApiKey:manage",
                    "orgMember:invite",
                    "orgMember:read",
                    "orgMember:remove",
                    "orgMember:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "platform:operate",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "role:manage",
                    "role:read",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "usage:read",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:create",
                    "workspace:delete",
                    "workspace:read",
                    "workspace:transfer",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "durationHours": {
                "$ref": "#/$defs/SupportAccessDurationHours"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "grantedBy": {
                "$ref": "#/$defs/SupportAccessPerson"
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "revokedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "revokedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/SupportAccessPerson"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastUsedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "permissions",
              "durationHours",
              "reason",
              "grantedBy",
              "createdAt",
              "expiresAt",
              "revokedAt",
              "revokedBy",
              "lastUsedAt"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|permissions|durationHours|reason|grantedBy|createdAt|expiresAt|revokedAt|revokedBy|lastUsedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "permissions",
                "durationHours",
                "reason",
                "grantedBy",
                "createdAt",
                "expiresAt",
                "revokedAt",
                "revokedBy",
                "lastUsedAt"
              ]
            }
          },
          "SupportAccessEventAction": {
            "type": "string",
            "enum": [
              "support_access.granted",
              "support_access.used",
              "support_access.revoked",
              "support_access.expired"
            ]
          },
          "SupportAccessEvent": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "action": {
                "$ref": "#/$defs/SupportAccessEventAction"
              },
              "grantId": {
                "type": "string"
              },
              "actorKind": {
                "type": "string"
              },
              "actorLabel": {
                "type": "string"
              },
              "occurredAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "permission": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "action",
              "grantId",
              "actorKind",
              "actorLabel",
              "occurredAt",
              "permission"
            ],
            "patternProperties": {
              "^(?!(?:id|action|grantId|actorKind|actorLabel|occurredAt|permission)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "action",
                "grantId",
                "actorKind",
                "actorLabel",
                "occurredAt",
                "permission"
              ]
            }
          },
          "SupportAccessOverview": {
            "type": "object",
            "properties": {
              "grants": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/SupportAccessGrant"
                }
              },
              "grantablePermissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "agent:capabilities",
                    "agent:identity",
                    "agent:operations:cancel",
                    "agent:operations:read",
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "audit:read",
                    "billing:manage",
                    "billing:read",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "org:delete",
                    "orgAnalytics:read",
                    "orgAnalytics:manage",
                    "org:read",
                    "org:update",
                    "orgApiKey:manage",
                    "orgMember:invite",
                    "orgMember:read",
                    "orgMember:remove",
                    "orgMember:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "platform:operate",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "role:manage",
                    "role:read",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "usage:read",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:create",
                    "workspace:delete",
                    "workspace:read",
                    "workspace:transfer",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "events": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/SupportAccessEvent"
                }
              }
            },
            "required": [
              "grants",
              "grantablePermissions",
              "events"
            ],
            "patternProperties": {
              "^(?!(?:grants|grantablePermissions|events)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "grants",
                "grantablePermissions",
                "events"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/SupportAccessOverview"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/SupportAccessOverview"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_support_access"
      },
      "scopes": [
        "workspaceMember:read"
      ],
      "bundles": [
        "support_access"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "supportAccess.list"
      ],
      "invocations": [
        {
          "operationId": "supportAccess.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/support-access",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "list_task_assignable_members",
      "description": "List members eligible to hold a task assignment.\n\nUse before assign_task, or while configuring a workflow human-input node, to pick real responders.\n\nDo not treat the list as permission evidence; it is a directory.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                  "$ref": "#/$defs/ShortText"
                },
                "email": {
                  "$ref": "#/$defs/EmailAddress"
                },
                "image": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "role": {
                  "$ref": "#/$defs/NonEmptyString"
                }
              },
              "required": [
                "userId",
                "name",
                "email",
                "image",
                "role"
              ],
              "patternProperties": {
                "^(?!(?:userId|name|email|image|role)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "role"
                ]
              }
            }
          }
        },
        "required": [
          "members"
        ],
        "patternProperties": {
          "^(?!(?:members)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "members"
              ]
            }
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_task_assignable_members"
      },
      "scopes": [
        "task:read"
      ],
      "bundles": [
        "tasks"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "tasks.assignableMembers"
      ],
      "invocations": [
        {
          "operationId": "tasks.assignableMembers",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/tasks/assignable-members",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "list_tasks",
      "description": "List tasks and workflow requests in a workspace.\n\nUse to inspect open work, filter to workflow requests, or page recent activity.\n\nCompleted-task history is bounded; use show_completed only when needed.",
      "inputSchema": {
        "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"
          },
          "kind": {
            "type": "string",
            "enum": [
              "all",
              "tasks",
              "workflow_requests"
            ]
          },
          "showCompleted": {
            "type": "boolean"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|kind|showCompleted|leadId|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "kind",
            "showCompleted",
            "leadId",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "outputSchema": {
        "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"
                },
                "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"
                },
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2000
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 10000
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dueDate": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completedBy": {
                  "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"
                    }
                  ]
                },
                "outcome": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "no_luck",
                        "responded",
                        "bad_info"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "leadId": {
                  "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"
                    }
                  ]
                },
                "campaignContactId": {
                  "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"
                    }
                  ]
                },
                "campaignStepId": {
                  "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"
                    }
                  ]
                },
                "workflowRunId": {
                  "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"
                    }
                  ]
                },
                "workflow": {
                  "anyOf": [
                    {
                      "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": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name"
                        ]
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "humanRequest": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "approval",
                                "text"
                              ]
                            },
                            "question": {
                              "$ref": "#/$defs/Description"
                            }
                          },
                          "required": [
                            "type",
                            "question"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|question)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "question"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "choice"
                                  ]
                                }
                              ]
                            },
                            "question": {
                              "$ref": "#/$defs/Description"
                            },
                            "options": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "maxItems": 20
                            }
                          },
                          "required": [
                            "type",
                            "question",
                            "options"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|question|options)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "question",
                              "options"
                            ]
                          }
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "humanResponse": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "approval"
                                  ]
                                }
                              ]
                            },
                            "approved": {
                              "type": "boolean"
                            },
                            "comment": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "required": [
                            "type",
                            "approved"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|approved|comment)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "approved",
                              "comment"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "text"
                                  ]
                                }
                              ]
                            },
                            "text": {
                              "$ref": "#/$defs/Description"
                            }
                          },
                          "required": [
                            "type",
                            "text"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|text)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "text"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "choice"
                                  ]
                                }
                              ]
                            },
                            "choice": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "required": [
                            "type",
                            "choice"
                          ],
                          "patternProperties": {
                            "^(?!(?:type|choice)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "type",
                              "choice"
                            ]
                          }
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "requestState": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "pending",
                        "answered",
                        "expired",
                        "cancelled"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "responseExpiresAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "requestedByAgentRegistrationId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/OpaqueId"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "operationId": {
                  "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"
                    }
                  ]
                },
                "assignees": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "userId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "email": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "image": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "inOrg": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "userId",
                      "name",
                      "email",
                      "image",
                      "inOrg"
                    ],
                    "patternProperties": {
                      "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "userId",
                        "name",
                        "email",
                        "image",
                        "inOrg"
                      ]
                    }
                  }
                },
                "createdBy": {
                  "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"
                    }
                  ]
                },
                "createdByUser": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "userId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "email": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "image": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "inOrg": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "userId",
                        "name",
                        "email",
                        "image",
                        "inOrg"
                      ],
                      "patternProperties": {
                        "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "userId",
                          "name",
                          "email",
                          "image",
                          "inOrg"
                        ]
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completedByUser": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "userId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "email": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "image": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "inOrg": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "userId",
                        "name",
                        "email",
                        "image",
                        "inOrg"
                      ],
                      "patternProperties": {
                        "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "userId",
                          "name",
                          "email",
                          "image",
                          "inOrg"
                        ]
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lead": {
                  "anyOf": [
                    {
                      "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"
                        },
                        "firstName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "companyName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "emailAddress": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "phoneNumber": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "firstName",
                        "lastName",
                        "companyName",
                        "emailAddress",
                        "phoneNumber"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|firstName|lastName|companyName|emailAddress|phoneNumber)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "firstName",
                          "lastName",
                          "companyName",
                          "emailAddress",
                          "phoneNumber"
                        ]
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "outcomeDetail": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "phoneOutcomes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "leadPhoneId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "outcome": {
                                "type": "string",
                                "enum": [
                                  "no_luck",
                                  "responded",
                                  "bad_info"
                                ]
                              }
                            },
                            "required": [
                              "leadPhoneId",
                              "outcome"
                            ],
                            "patternProperties": {
                              "^(?!(?:leadPhoneId|outcome)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "leadPhoneId",
                                "outcome"
                              ]
                            }
                          },
                          "maxItems": 50
                        }
                      },
                      "required": [
                        "phoneOutcomes"
                      ],
                      "patternProperties": {
                        "^(?!(?:phoneOutcomes)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "phoneOutcomes"
                            ]
                          }
                        ]
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "id",
                "workspaceId",
                "title",
                "description",
                "dueDate",
                "completedAt",
                "completedBy",
                "outcome",
                "leadId",
                "campaignContactId",
                "campaignStepId",
                "workflowRunId",
                "workflow",
                "humanRequest",
                "humanResponse",
                "requestState",
                "responseExpiresAt",
                "requestedByAgentRegistrationId",
                "operationId",
                "assignees",
                "createdBy",
                "createdAt",
                "updatedAt"
              ],
              "patternProperties": {
                "^(?!(?:id|workspaceId|title|description|dueDate|completedAt|completedBy|outcome|leadId|campaignContactId|campaignStepId|workflowRunId|workflow|humanRequest|humanResponse|requestState|responseExpiresAt|requestedByAgentRegistrationId|operationId|assignees|createdBy|createdByUser|completedByUser|lead|outcomeDetail|createdAt|updatedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "workspaceId",
                  "title",
                  "description",
                  "dueDate",
                  "completedAt",
                  "completedBy",
                  "outcome",
                  "leadId",
                  "campaignContactId",
                  "campaignStepId",
                  "workflowRunId",
                  "workflow",
                  "humanRequest",
                  "humanResponse",
                  "requestState",
                  "responseExpiresAt",
                  "requestedByAgentRegistrationId",
                  "operationId",
                  "assignees",
                  "createdBy",
                  "createdByUser",
                  "completedByUser",
                  "lead",
                  "outcomeDetail",
                  "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"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_tasks"
      },
      "scopes": [
        "task:read"
      ],
      "bundles": [
        "tasks"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "tasks.list"
      ],
      "invocations": [
        {
          "operationId": "tasks.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/tasks",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "kind": {
            "type": "string",
            "enum": [
              "all",
              "tasks",
              "workflow_requests"
            ]
          },
          "showCompleted": {
            "type": "boolean"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|kind|showCompleted|leadId|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "kind",
            "showCompleted",
            "leadId",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      }
    },
    {
      "feature": "unibox",
      "name": "list_thread_label_history",
      "description": "Read a conversation's reply-label history, newest first (default 50 events, limit up to 100). Returns added/removed events with snapshotted label names/colors, source, actor and time; multiple labels may coexist, so this is not an atomic from/to status change. Pass nextCursor unchanged for the next page.\n\nUse to audit which labels were added or removed on one conversation. Call list_unibox_threads first, then use the selected item's id as threadId and organizationId as workspaceId (not providerThreadId). The native REST thread list returns the same IDs.\n\nDo not infer unrecorded history or a complete historical label set: events before tracking began were not backfilled. This is conversation history, not a single-valued lead status.",
      "inputSchema": {
        "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"
          },
          "threadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId",
          "threadId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|threadId|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "threadId",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/$defs/OpaqueId"
                },
                "threadId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "labelId": {
                  "$ref": "#/$defs/ThreadLabelId"
                },
                "labelType": {
                  "type": "string",
                  "enum": [
                    "custom",
                    "default"
                  ]
                },
                "labelName": {
                  "$ref": "#/$defs/ShortText"
                },
                "hexColor": {
                  "$ref": "#/$defs/ShortText"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "added",
                    "removed"
                  ]
                },
                "source": {
                  "$ref": "#/$defs/ShortText"
                },
                "actorUserId": {
                  "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"
                    }
                  ]
                },
                "actorName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "occurredAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "id",
                "threadId",
                "labelId",
                "labelType",
                "labelName",
                "hexColor",
                "action",
                "source",
                "actorUserId",
                "actorName",
                "occurredAt"
              ],
              "patternProperties": {
                "^(?!(?:id|threadId|labelId|labelType|labelName|hexColor|action|source|actorUserId|actorName|occurredAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "threadId",
                  "labelId",
                  "labelType",
                  "labelName",
                  "hexColor",
                  "action",
                  "source",
                  "actorUserId",
                  "actorName",
                  "occurredAt"
                ]
              }
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "$ref": "#/$defs/Cursor"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "patternProperties": {
          "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "items",
            "nextCursor"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ThreadLabelId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "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$"
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_thread_label_history"
      },
      "scopes": [
        "unibox:read"
      ],
      "bundles": [
        "unibox_reply_flow",
        "unibox_triage"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "uniboxThreads.listLabelHistory"
      ],
      "invocations": [
        {
          "operationId": "uniboxThreads.listLabelHistory",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId/label-history",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "threadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId",
          "threadId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|threadId|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "threadId",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      }
    },
    {
      "feature": "unibox",
      "name": "list_unibox_threads",
      "description": "Find conversations in a Workspace and obtain their local UUIDs for subsequent tools. Returns a bounded page of thread metadata, default 20 and maximum 100 items, with an opaque nextCursor.\n\nUse before list_thread_label_history. Select a conversation using search or folder. showAllEmails defaults to false (managed inbox conversations); set true to include other inbound inbox mail, including manually labeled conversations. Other folders retain their usual rules. Then pass its id as threadId and its organizationId as workspaceId. Pass nextCursor unchanged for another page.\n\nDoes not return message bodies or label history. Folder defaults to inbox; choose archived, sent, starred, trash, or warmup when appropriate. Never use providerThreadId as the local threadId.",
      "inputSchema": {
        "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"
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "search": {
            "$ref": "#/$defs/ShortText"
          },
          "folder": {
            "type": "string",
            "enum": [
              "inbox",
              "sent",
              "archived",
              "starred",
              "warmup",
              "trash"
            ]
          },
          "showAllEmails": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|cursor|limit|search|folder|showAllEmails)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "cursor",
            "limit",
            "search",
            "folder",
            "showAllEmails"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "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"
                },
                "inboxId": {
                  "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"
                    }
                  ]
                },
                "organizationId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "subject": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/LeadStoredText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "snippet": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/LeadStoredText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "contact": {
                  "type": "object",
                  "properties": {
                    "emailAddress": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/LeadStoredText"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "leadId": {
                      "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"
                        }
                      ]
                    }
                  },
                  "required": [
                    "emailAddress",
                    "name",
                    "leadId"
                  ],
                  "patternProperties": {
                    "^(?!(?:emailAddress|name|leadId)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "emailAddress",
                      "name",
                      "leadId"
                    ]
                  }
                },
                "providerThreadId": {
                  "$ref": "#/$defs/OpaqueId"
                },
                "provider": {
                  "type": "string",
                  "enum": [
                    "google_workspace",
                    "microsoft_365",
                    "other"
                  ]
                },
                "lastMessageAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "messageCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "labels": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/ThreadLabelId"
                      },
                      "name": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "hexColor": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "sentiment": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "positive",
                              "negative",
                              "neutral"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "custom",
                          "default"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "hexColor",
                      "sentiment",
                      "type"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "hexColor",
                        "sentiment",
                        "type"
                      ]
                    }
                  }
                },
                "assignees": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "userId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "image": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isFormerMember": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "userId",
                      "name",
                      "email",
                      "image",
                      "isFormerMember"
                    ],
                    "patternProperties": {
                      "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "userId",
                        "name",
                        "email",
                        "image",
                        "isFormerMember"
                      ]
                    }
                  }
                },
                "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"
                    }
                  ]
                },
                "campaignContactId": {
                  "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"
                    }
                  ]
                },
                "isRead": {
                  "type": "boolean"
                },
                "starredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "archivedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "deletedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "folders": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inbox",
                      "sent",
                      "archived",
                      "starred",
                      "warmup",
                      "trash"
                    ]
                  }
                },
                "recentMessages": {
                  "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"
                      },
                      "providerInternalMessageId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "from": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "to": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "cc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "subject": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "snippet": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "receivedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "isRead": {
                        "type": "boolean"
                      },
                      "isFromInboxSender": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "providerInternalMessageId",
                      "from",
                      "to",
                      "cc",
                      "subject",
                      "snippet",
                      "receivedAt",
                      "isRead",
                      "isFromInboxSender"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|providerInternalMessageId|from|to|cc|subject|snippet|receivedAt|isRead|isFromInboxSender)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "providerInternalMessageId",
                        "from",
                        "to",
                        "cc",
                        "subject",
                        "snippet",
                        "receivedAt",
                        "isRead",
                        "isFromInboxSender"
                      ]
                    }
                  },
                  "maxItems": 20
                }
              },
              "required": [
                "id",
                "inboxId",
                "organizationId",
                "subject",
                "snippet",
                "contact",
                "providerThreadId",
                "provider",
                "lastMessageAt",
                "messageCount",
                "labels",
                "assignees",
                "campaignId",
                "campaignContactId",
                "isRead",
                "starredAt",
                "archivedAt",
                "deletedAt",
                "folders"
              ],
              "patternProperties": {
                "^(?!(?:id|inboxId|organizationId|subject|snippet|contact|providerThreadId|provider|lastMessageAt|messageCount|labels|assignees|campaignId|campaignContactId|isRead|starredAt|archivedAt|deletedAt|folders|recentMessages)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "inboxId",
                  "organizationId",
                  "subject",
                  "snippet",
                  "contact",
                  "providerThreadId",
                  "provider",
                  "lastMessageAt",
                  "messageCount",
                  "labels",
                  "assignees",
                  "campaignId",
                  "campaignContactId",
                  "isRead",
                  "starredAt",
                  "archivedAt",
                  "deletedAt",
                  "folders",
                  "recentMessages"
                ]
              }
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "$ref": "#/$defs/Cursor"
              },
              {
                "type": "null"
              }
            ]
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "patternProperties": {
          "^(?!(?:items|nextCursor|total)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "items",
            "nextCursor",
            "total"
          ]
        },
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ThreadLabelId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_unibox_threads"
      },
      "scopes": [
        "unibox:read"
      ],
      "bundles": [
        "unibox_reply_flow",
        "unibox_triage"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "uniboxThreads.list"
      ],
      "invocations": [
        {
          "operationId": "uniboxThreads.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/threads",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "search": {
            "$ref": "#/$defs/ShortText"
          },
          "folder": {
            "type": "string",
            "enum": [
              "inbox",
              "sent",
              "archived",
              "starred",
              "warmup",
              "trash"
            ]
          },
          "showAllEmails": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|cursor|limit|search|folder|showAllEmails)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "cursor",
            "limit",
            "search",
            "folder",
            "showAllEmails"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "agent-platform",
      "name": "list_workspaces",
      "description": "List the workspaces the authenticated agent can act in with their capability bundles.\n\nUse when the agent needs to discover which workspace handles are available before selecting one.\n\nDo not use to probe for other organizations; the answer is already scoped to the credential's organization.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "patternProperties": {
          "^(?!(?:cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "outputSchema": {
        "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": {
                  "$ref": "#/$defs/ShortText"
                },
                "slug": {
                  "$ref": "#/$defs/ShortText"
                },
                "effectiveRoleLabel": {
                  "$ref": "#/$defs/ShortText"
                },
                "capabilityBundles": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  }
                },
                "accessSource": {
                  "type": "string",
                  "enum": [
                    "membership",
                    "organization",
                    "credential"
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "slug",
                "effectiveRoleLabel",
                "capabilityBundles",
                "accessSource"
              ],
              "patternProperties": {
                "^(?!(?:id|name|slug|effectiveRoleLabel|capabilityBundles|accessSource)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "name",
                  "slug",
                  "effectiveRoleLabel",
                  "capabilityBundles",
                  "accessSource"
                ]
              }
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "$ref": "#/$defs/Cursor"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "patternProperties": {
          "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "items",
            "nextCursor"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "list_workspaces"
      },
      "scopes": [
        "agent:identity"
      ],
      "bundles": [
        "platform"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "agent.listWorkspaces"
      ],
      "invocations": [
        {
          "operationId": "agent.listWorkspaces",
          "method": "GET",
          "path": "/agent/workspaces",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "patternProperties": {
          "^(?!(?:cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "manage_account_security",
      "description": "Initiate private email, password, MFA, sessions or connected sign-in management; give the user the completion URL instead of asking for secrets.\n\nTo change account security. The user completes the same API-backed UI, then reads provider state with read_account_security.\n\nNever send passwords, OTPs, recovery codes or TOTP secrets to a tool or chat. Unsupported provider actions are reported, not emulated.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "intent": {
            "type": "string",
            "enum": [
              "email",
              "password",
              "password-reset",
              "mfa",
              "sessions",
              "connections"
            ]
          }
        },
        "required": [
          "intent"
        ],
        "patternProperties": {
          "^(?!(?:intent)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "intent"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "completionUrl": {
            "$ref": "#/$defs/HttpUrl"
          },
          "intent": {
            "type": "string",
            "enum": [
              "email",
              "password",
              "password-reset",
              "mfa",
              "sessions",
              "connections"
            ]
          },
          "instructions": {
            "$ref": "#/$defs/NonEmptyString"
          }
        },
        "required": [
          "completionUrl",
          "intent",
          "instructions"
        ],
        "patternProperties": {
          "^(?!(?:completionUrl|intent|instructions)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "completionUrl",
            "intent",
            "instructions"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "completionUrl",
        "statusOperationId": "accountSecurity.read"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "account_security"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "accountSecurity.handoff",
        "accountSecurity.read"
      ],
      "invocations": [
        {
          "operationId": "accountSecurity.handoff",
          "method": "POST",
          "path": "/v1/me/security/handoff",
          "workspaceScoped": false
        },
        {
          "operationId": "accountSecurity.read",
          "method": "GET",
          "path": "/v1/me/security",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "intent": {
            "type": "string",
            "enum": [
              "email",
              "password",
              "password-reset",
              "mfa",
              "sessions",
              "connections"
            ]
          }
        },
        "required": [
          "intent"
        ],
        "patternProperties": {
          "^(?!(?:intent)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "intent"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "manage_analytics_shares",
      "description": "Create, list, and revoke the public snapshot links that publish a campaign's frozen results.\n\nUse when a result set has to leave the workspace. Creating one freezes the numbers as they are at that instant, so the link keeps reporting that moment no matter what the campaign does afterwards.\n\nA snapshot is readable by anyone who receives the link and can never be edited — only revoked. Do not use it for live data, for row-level exports, or to work around someone's lack of workspace access.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "create",
              "list",
              "revoke"
            ]
          },
          "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "shareId": {
            "$ref": "#/$defs/AnalyticsShareId"
          },
          "create": {
            "type": "object",
            "properties": {
              "startDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "endDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "senderProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "recipientProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "senderTagIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "maxItems": 100
              },
              "senderDomains": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/DomainNameEncoded"
                },
                "maxItems": 100
              },
              "title": {
                "$ref": "#/$defs/AnalyticsShareTitle"
              },
              "includeCampaignName": {
                "type": "boolean"
              },
              "expiresInDays": {
                "anyOf": [
                  {
                    "type": "number",
                    "enum": [
                      7,
                      30
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:startDate|endDate|senderProviders|recipientProviders|senderTagIds|senderDomains|title|includeCampaignName|expiresInDays)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "startDate",
                "endDate",
                "senderProviders",
                "recipientProviders",
                "senderTagIds",
                "senderDomains",
                "title",
                "includeCampaignName",
                "expiresInDays"
              ]
            }
          }
        },
        "required": [
          "action",
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|campaignId|shareId|create)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "campaignId",
            "shareId",
            "create"
          ]
        },
        "$defs": {
          "AnalyticsShareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "DomainNameEncoded": {
            "type": "string"
          },
          "AnalyticsShareTitle": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "AnalyticsShareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "AnalyticsShareToken": {
            "type": "string",
            "minLength": 32,
            "maxLength": 32,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "AnalyticsShareTitle": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/AnalyticsShareId"
                      },
                      "token": {
                        "$ref": "#/$defs/AnalyticsShareToken"
                      },
                      "title": {
                        "$ref": "#/$defs/AnalyticsShareTitle"
                      },
                      "expiresAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "revokedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "token",
                      "title",
                      "expiresAt",
                      "revokedAt",
                      "createdAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|token|title|expiresAt|revokedAt|createdAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "token",
                        "title",
                        "expiresAt",
                        "revokedAt",
                        "createdAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/AnalyticsShareId"
                            },
                            "token": {
                              "$ref": "#/$defs/AnalyticsShareToken"
                            },
                            "title": {
                              "$ref": "#/$defs/AnalyticsShareTitle"
                            },
                            "expiresAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "revokedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "token",
                            "title",
                            "expiresAt",
                            "revokedAt",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|token|title|expiresAt|revokedAt|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "token",
                              "title",
                              "expiresAt",
                              "revokedAt",
                              "createdAt"
                            ]
                          }
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "shareId": {
                        "$ref": "#/$defs/AnalyticsShareId"
                      },
                      "revokedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "shareId",
                      "revokedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:shareId|revokedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "shareId",
                        "revokedAt"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/AnalyticsShareId"
                          },
                          "token": {
                            "$ref": "#/$defs/AnalyticsShareToken"
                          },
                          "title": {
                            "$ref": "#/$defs/AnalyticsShareTitle"
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "revokedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "token",
                          "title",
                          "expiresAt",
                          "revokedAt",
                          "createdAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|token|title|expiresAt|revokedAt|createdAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "token",
                            "title",
                            "expiresAt",
                            "revokedAt",
                            "createdAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/AnalyticsShareId"
                                },
                                "token": {
                                  "$ref": "#/$defs/AnalyticsShareToken"
                                },
                                "title": {
                                  "$ref": "#/$defs/AnalyticsShareTitle"
                                },
                                "expiresAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "revokedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "token",
                                "title",
                                "expiresAt",
                                "revokedAt",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|token|title|expiresAt|revokedAt|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "token",
                                  "title",
                                  "expiresAt",
                                  "revokedAt",
                                  "createdAt"
                                ]
                              }
                            },
                            "maxItems": 20
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "shareId": {
                            "$ref": "#/$defs/AnalyticsShareId"
                          },
                          "revokedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "shareId",
                          "revokedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:shareId|revokedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "shareId",
                            "revokedAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_analytics_shares"
      },
      "scopes": [
        "analytics:export"
      ],
      "bundles": [
        "campaign_analytics"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignAnalytics.createShare",
        "campaignAnalytics.listShares",
        "campaignAnalytics.revokeShare"
      ],
      "invocations": [
        {
          "operationId": "campaignAnalytics.createShare",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/analytics-shares",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignAnalytics.listShares",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/analytics-shares",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignAnalytics.revokeShare",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/campaigns/analytics-shares/:shareId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "create",
              "list",
              "revoke"
            ]
          },
          "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "shareId": {
            "$ref": "#/$defs/AnalyticsShareId"
          },
          "create": {
            "type": "object",
            "properties": {
              "startDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "endDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "senderProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "recipientProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "senderTagIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "maxItems": 100
              },
              "senderDomains": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/DomainNameEncoded"
                },
                "maxItems": 100
              },
              "title": {
                "$ref": "#/$defs/AnalyticsShareTitle"
              },
              "includeCampaignName": {
                "type": "boolean"
              },
              "expiresInDays": {
                "anyOf": [
                  {
                    "type": "number",
                    "enum": [
                      7,
                      30
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:startDate|endDate|senderProviders|recipientProviders|senderTagIds|senderDomains|title|includeCampaignName|expiresInDays)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "startDate",
                "endDate",
                "senderProviders",
                "recipientProviders",
                "senderTagIds",
                "senderDomains",
                "title",
                "includeCampaignName",
                "expiresInDays"
              ]
            }
          }
        },
        "required": [
          "action",
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|campaignId|shareId|create)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "campaignId",
            "shareId",
            "create"
          ]
        },
        "$defs": {
          "AnalyticsShareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "DomainNameEncoded": {
            "type": "string"
          },
          "AnalyticsShareTitle": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "manage_api_key_grants",
      "description": "Rename one of the caller's personal API keys or replace its access: full account, or a restriction to chosen Organizations with Organization permissions plus selected-Workspace or all-Workspaces permissions.\n\nUse after `read_api_key_issuance` when the person asks to narrow or change what a key can reach. A key never exceeds its owner's current permissions.\n\nDoes not return or rotate the secret. Agents and API keys may only narrow access; widening a key (or making it full-account) needs the person in the web app.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "$ref": "#/$defs/ShortText"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "access": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "full"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "type"
                ],
                "patternProperties": {
                  "^(?!(?:type)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "type"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "restricted"
                        ]
                      }
                    ]
                  },
                  "organizations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "organizationId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "organizationPermissions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "maxItems": 100
                        },
                        "workspaces": {
                          "type": "array",
                          "items": {
                            "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"
                              },
                              "roles": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 512
                                },
                                "maxItems": 20
                              },
                              "permissions": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "maxItems": 400
                              }
                            },
                            "required": [
                              "workspaceId",
                              "permissions"
                            ],
                            "patternProperties": {
                              "^(?!(?:workspaceId|roles|permissions)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "workspaceId",
                                "roles",
                                "permissions"
                              ]
                            }
                          },
                          "maxItems": 500
                        },
                        "allWorkspaces": {
                          "type": "object",
                          "properties": {
                            "roles": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "maxItems": 20
                            },
                            "permissions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "maxItems": 400
                            }
                          },
                          "required": [
                            "permissions"
                          ],
                          "patternProperties": {
                            "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "roles",
                              "permissions"
                            ]
                          }
                        }
                      },
                      "required": [
                        "organizationId"
                      ],
                      "patternProperties": {
                        "^(?!(?:organizationId|organizationPermissions|workspaces|allWorkspaces)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "organizationId",
                          "organizationPermissions",
                          "workspaces",
                          "allWorkspaces"
                        ]
                      }
                    },
                    "minItems": 1,
                    "maxItems": 100
                  }
                },
                "required": [
                  "type",
                  "organizations"
                ],
                "patternProperties": {
                  "^(?!(?:type|organizations)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "organizations"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "apiKeyId"
        ],
        "patternProperties": {
          "^(?!(?:apiKeyId|name|description|access)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "apiKeyId",
            "name",
            "description",
            "access"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "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
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "access": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "full"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "type"
                ],
                "patternProperties": {
                  "^(?!(?:type)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "type"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "restricted"
                        ]
                      }
                    ]
                  },
                  "organizations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "organizationId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "organizationName": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/LeadStoredText"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationPermissions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "allWorkspaces": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "roles": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "permissions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "roles",
                                "permissions"
                              ],
                              "patternProperties": {
                                "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "roles",
                                  "permissions"
                                ]
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "workspaces": {
                          "type": "array",
                          "items": {
                            "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"
                              },
                              "workspaceName": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "roles": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "permissions": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "workspaceId",
                              "workspaceName",
                              "roles",
                              "permissions"
                            ],
                            "patternProperties": {
                              "^(?!(?:workspaceId|workspaceName|roles|permissions)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "workspaceId",
                                "workspaceName",
                                "roles",
                                "permissions"
                              ]
                            }
                          }
                        }
                      },
                      "required": [
                        "organizationId",
                        "organizationName",
                        "organizationPermissions",
                        "allWorkspaces",
                        "workspaces"
                      ],
                      "patternProperties": {
                        "^(?!(?:organizationId|organizationName|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "organizationId",
                          "organizationName",
                          "organizationPermissions",
                          "allWorkspaces",
                          "workspaces"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "type",
                  "organizations"
                ],
                "patternProperties": {
                  "^(?!(?:type|organizations)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "organizations"
                  ]
                }
              }
            ]
          },
          "prefix": {
            "anyOf": [
              {
                "$ref": "#/$defs/LeadStoredText"
              },
              {
                "type": "null"
              }
            ]
          },
          "blockedOrganizations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "organizationId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "organizationName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/LeadStoredText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "blockedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "organizationId",
                "organizationName",
                "blockedAt"
              ],
              "patternProperties": {
                "^(?!(?:organizationId|organizationName|blockedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "organizationId",
                  "organizationName",
                  "blockedAt"
                ]
              }
            }
          },
          "expiresAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastUsedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastRotatedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "access",
          "prefix",
          "blockedOrganizations",
          "expiresAt",
          "lastUsedAt",
          "lastRotatedAt",
          "createdAt"
        ],
        "patternProperties": {
          "^(?!(?:id|name|description|access|prefix|blockedOrganizations|expiresAt|lastUsedAt|lastRotatedAt|createdAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "name",
            "description",
            "access",
            "prefix",
            "blockedOrganizations",
            "expiresAt",
            "lastUsedAt",
            "lastRotatedAt",
            "createdAt"
          ]
        },
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_api_key_grants"
      },
      "scopes": [
        "apiKey:update"
      ],
      "bundles": [
        "security_administration"
      ],
      "risk": "security_admin",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "personalApiKeys.update"
      ],
      "invocations": [
        {
          "operationId": "personalApiKeys.update",
          "method": "PATCH",
          "path": "/v1/me/api-keys/:apiKeyId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "$ref": "#/$defs/ShortText"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "access": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "full"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "type"
                ],
                "patternProperties": {
                  "^(?!(?:type)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "type"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "restricted"
                        ]
                      }
                    ]
                  },
                  "organizations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "organizationId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "organizationPermissions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "maxItems": 100
                        },
                        "workspaces": {
                          "type": "array",
                          "items": {
                            "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"
                              },
                              "roles": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 512
                                },
                                "maxItems": 20
                              },
                              "permissions": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "maxItems": 400
                              }
                            },
                            "required": [
                              "workspaceId",
                              "permissions"
                            ],
                            "patternProperties": {
                              "^(?!(?:workspaceId|roles|permissions)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "workspaceId",
                                "roles",
                                "permissions"
                              ]
                            }
                          },
                          "maxItems": 500
                        },
                        "allWorkspaces": {
                          "type": "object",
                          "properties": {
                            "roles": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "maxItems": 20
                            },
                            "permissions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "maxItems": 400
                            }
                          },
                          "required": [
                            "permissions"
                          ],
                          "patternProperties": {
                            "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "roles",
                              "permissions"
                            ]
                          }
                        }
                      },
                      "required": [
                        "organizationId"
                      ],
                      "patternProperties": {
                        "^(?!(?:organizationId|organizationPermissions|workspaces|allWorkspaces)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "organizationId",
                          "organizationPermissions",
                          "workspaces",
                          "allWorkspaces"
                        ]
                      }
                    },
                    "minItems": 1,
                    "maxItems": 100
                  }
                },
                "required": [
                  "type",
                  "organizations"
                ],
                "patternProperties": {
                  "^(?!(?:type|organizations)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "organizations"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "apiKeyId"
        ],
        "patternProperties": {
          "^(?!(?:apiKeyId|name|description|access)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "apiKeyId",
            "name",
            "description",
            "access"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "manage_attio_mappings",
      "description": "Shape how Attio records import: save, change, or delete a named field mapping, and refresh the local catalog of Attio lists.\n\nUse when an import needs a mapping that does not exist yet, when the default mapping should change, or when a list the customer just created in Attio is missing from the catalog.\n\nMarking a mapping default clears every other default in the workspace. A list sync replaces the whole catalog in one swap; it never imports anything. None of these write into Attio.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": [
              "create_mapping",
              "update_mapping",
              "delete_mapping",
              "sync_lists"
            ]
          },
          "mappingId": {
            "$ref": "#/$defs/AttioFieldMappingId"
          },
          "create": {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "rules": {
                "$ref": "#/$defs/AttioFieldMappingRules"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal",
                  "ask"
                ]
              },
              "duplicateBehavior": {
                "type": "string",
                "enum": [
                  "skip",
                  "update"
                ]
              },
              "isDefault": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "rules"
            ],
            "patternProperties": {
              "^(?!(?:name|rules|emailStrategy|duplicateBehavior|isDefault)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "rules",
                "emailStrategy",
                "duplicateBehavior",
                "isDefault"
              ]
            }
          },
          "update": {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "rules": {
                "$ref": "#/$defs/AttioFieldMappingRules"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal",
                  "ask"
                ]
              },
              "duplicateBehavior": {
                "type": "string",
                "enum": [
                  "skip",
                  "update"
                ]
              },
              "isDefault": {
                "type": "boolean"
              }
            },
            "patternProperties": {
              "^(?!(?:name|rules|emailStrategy|duplicateBehavior|isDefault)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "rules",
                "emailStrategy",
                "duplicateBehavior",
                "isDefault"
              ]
            },
            "minProperties": 1,
            "maxProperties": 5
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|mappingId|create|update)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "mappingId",
            "create",
            "update"
          ]
        },
        "$defs": {
          "AttioFieldMappingId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "AttioFieldMappingRules": {
            "type": "object",
            "additionalProperties": true,
            "minProperties": 0,
            "maxProperties": 200
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "AttioFieldMappingId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "AttioFieldMappingRules": {
            "type": "object",
            "additionalProperties": true,
            "minProperties": 0,
            "maxProperties": 200
          },
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "AttioFieldMapping": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/AttioFieldMappingId"
              },
              "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"
              },
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "rules": {
                "$ref": "#/$defs/AttioFieldMappingRules"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal",
                  "ask"
                ]
              },
              "duplicateBehavior": {
                "type": "string",
                "enum": [
                  "skip",
                  "update"
                ]
              },
              "isDefault": {
                "type": "boolean"
              },
              "providerWorkspaceId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ProviderId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "updatedAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "name",
              "rules",
              "emailStrategy",
              "duplicateBehavior",
              "isDefault",
              "providerWorkspaceId",
              "createdAt",
              "updatedAt"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|name|rules|emailStrategy|duplicateBehavior|isDefault|providerWorkspaceId|createdAt|updatedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "name",
                "rules",
                "emailStrategy",
                "duplicateBehavior",
                "isDefault",
                "providerWorkspaceId",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "AttioCachedList": {
            "type": "object",
            "properties": {
              "listId": {
                "$ref": "#/$defs/ProviderId"
              },
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "parentObject": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ShortText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "entryCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastSyncedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "listId",
              "name",
              "parentObject",
              "entryCount",
              "lastSyncedAt"
            ],
            "patternProperties": {
              "^(?!(?:listId|name|parentObject|entryCount|lastSyncedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "listId",
                "name",
                "parentObject",
                "entryCount",
                "lastSyncedAt"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/$defs/AttioFieldMapping"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/AttioFieldMappingId"
                      },
                      "deleted": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "deleted"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|deleted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "deleted"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "synced": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/AttioCachedList"
                        },
                        "maxItems": 1000
                      }
                    },
                    "required": [
                      "synced",
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:synced|items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "synced",
                        "items"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/AttioFieldMapping"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/AttioFieldMappingId"
                          },
                          "deleted": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "deleted"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|deleted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "deleted"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "synced": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/AttioCachedList"
                            },
                            "maxItems": 1000
                          }
                        },
                        "required": [
                          "synced",
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:synced|items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "synced",
                            "items"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_attio_mappings"
      },
      "scopes": [
        "integration:create",
        "integration:update",
        "integration:delete"
      ],
      "bundles": [
        "attio_crm"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "attioMappings.create",
        "attioMappings.update",
        "attioMappings.delete",
        "attioBrowse.syncLists"
      ],
      "invocations": [
        {
          "operationId": "attioMappings.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/mappings",
          "workspaceScoped": false
        },
        {
          "operationId": "attioMappings.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/mappings/:mappingId",
          "workspaceScoped": false
        },
        {
          "operationId": "attioMappings.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/mappings/:mappingId",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.syncLists",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/lists/sync",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": [
              "create_mapping",
              "update_mapping",
              "delete_mapping",
              "sync_lists"
            ]
          },
          "mappingId": {
            "$ref": "#/$defs/AttioFieldMappingId"
          },
          "create": {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "rules": {
                "$ref": "#/$defs/AttioFieldMappingRules"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal",
                  "ask"
                ]
              },
              "duplicateBehavior": {
                "type": "string",
                "enum": [
                  "skip",
                  "update"
                ]
              },
              "isDefault": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "rules"
            ],
            "patternProperties": {
              "^(?!(?:name|rules|emailStrategy|duplicateBehavior|isDefault)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "rules",
                "emailStrategy",
                "duplicateBehavior",
                "isDefault"
              ]
            }
          },
          "update": {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "rules": {
                "$ref": "#/$defs/AttioFieldMappingRules"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal",
                  "ask"
                ]
              },
              "duplicateBehavior": {
                "type": "string",
                "enum": [
                  "skip",
                  "update"
                ]
              },
              "isDefault": {
                "type": "boolean"
              }
            },
            "patternProperties": {
              "^(?!(?:name|rules|emailStrategy|duplicateBehavior|isDefault)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "rules",
                "emailStrategy",
                "duplicateBehavior",
                "isDefault"
              ]
            },
            "minProperties": 1,
            "maxProperties": 5
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|mappingId|create|update)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "mappingId",
            "create",
            "update"
          ]
        },
        "$defs": {
          "AttioFieldMappingId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "AttioFieldMappingRules": {
            "type": "object",
            "additionalProperties": true,
            "minProperties": 0,
            "maxProperties": 200
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "manage_attio_outbound",
      "description": "Turn the four outbound Attio writes on or off: automatic lead sync, and call, reply, and send activity notes.\n\nUse only when the customer has asked for Scheduler Zero to write into their Attio. Every toggle defaults off.\n\nEnabling a write is refused until the connection holds the matching Attio write grants — the customer must reconnect Attio, which no agent can do for them. Turning a toggle on changes what lands in a paying customer's CRM from then on; it does not backfill.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "settings": {
            "type": "object",
            "properties": {
              "pushLeads": {
                "type": "boolean"
              },
              "pushCallNotes": {
                "type": "boolean"
              },
              "pushReplyNotes": {
                "type": "boolean"
              },
              "pushSendNotes": {
                "type": "boolean"
              }
            },
            "patternProperties": {
              "^(?!(?:pushLeads|pushCallNotes|pushReplyNotes|pushSendNotes)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "pushLeads",
                "pushCallNotes",
                "pushReplyNotes",
                "pushSendNotes"
              ]
            },
            "minProperties": 1,
            "maxProperties": 4
          }
        },
        "required": [
          "workspaceId",
          "settings"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|settings)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "settings"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "AttioOutboundSettings": {
            "type": "object",
            "properties": {
              "pushLeads": {
                "type": "boolean"
              },
              "pushCallNotes": {
                "type": "boolean"
              },
              "pushReplyNotes": {
                "type": "boolean"
              },
              "pushSendNotes": {
                "type": "boolean"
              }
            },
            "required": [
              "pushLeads",
              "pushCallNotes",
              "pushReplyNotes",
              "pushSendNotes"
            ],
            "patternProperties": {
              "^(?!(?:pushLeads|pushCallNotes|pushReplyNotes|pushSendNotes)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "pushLeads",
                "pushCallNotes",
                "pushReplyNotes",
                "pushSendNotes"
              ]
            }
          },
          "AttioOutboundSettingsResult": {
            "type": "object",
            "properties": {
              "connected": {
                "type": "boolean"
              },
              "settings": {
                "$ref": "#/$defs/AttioOutboundSettings"
              }
            },
            "required": [
              "connected",
              "settings"
            ],
            "patternProperties": {
              "^(?!(?:connected|settings)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "connected",
                "settings"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/AttioOutboundSettingsResult"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/AttioOutboundSettingsResult"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_attio_outbound"
      },
      "scopes": [
        "integration:update"
      ],
      "bundles": [
        "attio_crm"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "attioOutbound.updateSettings"
      ],
      "invocations": [
        {
          "operationId": "attioOutbound.updateSettings",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/outbound-settings",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "settings": {
            "type": "object",
            "properties": {
              "pushLeads": {
                "type": "boolean"
              },
              "pushCallNotes": {
                "type": "boolean"
              },
              "pushReplyNotes": {
                "type": "boolean"
              },
              "pushSendNotes": {
                "type": "boolean"
              }
            },
            "patternProperties": {
              "^(?!(?:pushLeads|pushCallNotes|pushReplyNotes|pushSendNotes)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "pushLeads",
                "pushCallNotes",
                "pushReplyNotes",
                "pushSendNotes"
              ]
            },
            "minProperties": 1,
            "maxProperties": 4
          }
        },
        "required": [
          "workspaceId",
          "settings"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|settings)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "settings"
          ]
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "manage_blocklist",
      "description": "List, add, or remove blocked senders for a workspace; entries are normalized to lowercase addresses or bare domains.\n\nUse to audit or edit the suppression list that keeps a workspace from mailing blocked addresses or domains.\n\nEntries must be email addresses or bare DNS domains — URLs, wildcards, and paths are rejected. Removal is destructive.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|search|cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "search",
                "cursor",
                "limit"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "add"
                    ]
                  }
                ]
              },
              "entries": {
                "type": "array",
                "prefixItems": [
                  {
                    "$ref": "#/$defs/BlockedEmailEntryEncoded"
                  }
                ],
                "minItems": 1,
                "items": {
                  "$ref": "#/$defs/BlockedEmailEntryEncoded"
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "entries"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|entries)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "entries"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "remove"
                    ]
                  }
                ]
              },
              "entry": {
                "$ref": "#/$defs/BlockedEmailEntryEncoded"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "entry"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|entry)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "entry"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "BlockedEmailEntryEncoded": {
            "type": "string"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "BlockedEmailEntryEncoded": {
            "type": "string"
          },
          "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
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "entry": {
                              "$ref": "#/$defs/BlockedEmailEntryEncoded"
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "entry",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:entry|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "entry",
                              "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": {
                      "inserted": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "inserted"
                    ],
                    "patternProperties": {
                      "^(?!(?:inserted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "inserted"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "deleted": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "deleted"
                    ],
                    "patternProperties": {
                      "^(?!(?:deleted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "deleted"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "entry": {
                                  "$ref": "#/$defs/BlockedEmailEntryEncoded"
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "entry",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:entry|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "entry",
                                  "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": {
                          "inserted": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "inserted"
                        ],
                        "patternProperties": {
                          "^(?!(?:inserted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "inserted"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "deleted": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "deleted"
                        ],
                        "patternProperties": {
                          "^(?!(?:deleted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "deleted"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_blocklist"
      },
      "scopes": [
        "blocklist:read",
        "blocklist:create",
        "blocklist:delete"
      ],
      "bundles": [
        "workspace_settings"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "blockedEmails.list",
        "blockedEmails.add",
        "blockedEmails.remove"
      ],
      "invocations": [
        {
          "operationId": "blockedEmails.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/settings/blocked-emails",
          "workspaceScoped": false
        },
        {
          "operationId": "blockedEmails.add",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/settings/blocked-emails",
          "workspaceScoped": false
        },
        {
          "operationId": "blockedEmails.remove",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/settings/blocked-emails/:entry",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|search|cursor|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "search",
                    "cursor",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "add"
                    ]
                  }
                ]
              },
              "entries": {
                "type": "array",
                "prefixItems": [
                  {
                    "$ref": "#/$defs/BlockedEmailEntryEncoded"
                  }
                ],
                "minItems": 1,
                "items": {
                  "$ref": "#/$defs/BlockedEmailEntryEncoded"
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "entries"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|entries)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "entries"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "remove"
                    ]
                  }
                ]
              },
              "entry": {
                "$ref": "#/$defs/BlockedEmailEntryEncoded"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "entry"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|entry)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "entry"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "BlockedEmailEntryEncoded": {
            "type": "string"
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "manage_call_lists",
      "description": "Curate the lists a dialing session works through: create one, rename it, copy it, retire it, read the contacts in it, and import more from a CSV payload or an Attio people list.\n\nUse to prepare who a rep will call — build a fresh list for a segment, top one up with new rows, or read back what is queued and how far it has been worked. If the person asks to call this list, resolve its workspace slug with resolve_workspace and hand them `/{workspace.slug}/dialer/lists/{callListId}` in the Scheduler Zero web app. They can review the list, choose session settings, explicitly start dialing, and grant microphone access there; this handoff does not initiate a session or call. After they provide the session id, read progress with read_dialer_history.\n\nDeleting a list destroys every queue row in it, including dialing progress, and is refused while a published workflow or a live run still names it. An import only ever dials the numbers each uploaded row itself carried; it will not discover a matched lead's other numbers, and asking it to is a consent problem, not a missing feature. Lists the campaign engine owns cannot be edited here at all.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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",
              "get",
              "create",
              "update",
              "duplicate",
              "delete",
              "list_contacts",
              "import_csv",
              "import_attio_list"
            ]
          },
          "callListId": {
            "$ref": "#/$defs/CallListId"
          },
          "list": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "sortBy": {
                "type": "string",
                "enum": [
                  "name",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortOrder": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|search|sortBy|sortOrder)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "search",
                "sortBy",
                "sortOrder"
              ]
            }
          },
          "contacts": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "status": {
                "type": "string",
                "enum": [
                  "not_called",
                  "queued",
                  "in_progress",
                  "called",
                  "completed",
                  "skipped",
                  "callback",
                  "dnc",
                  "failed"
                ]
              },
              "search": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|status|search)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "status",
                "search"
              ]
            }
          },
          "create": {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "defaultTimezone": {
                "$ref": "#/$defs/IanaTimeZone"
              },
              "customFieldNames": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ShortText"
                },
                "maxItems": 100
              }
            },
            "required": [
              "name"
            ],
            "patternProperties": {
              "^(?!(?:name|defaultTimezone|customFieldNames)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "defaultTimezone",
                "customFieldNames"
              ]
            }
          },
          "update": {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "customFieldNames": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ShortText"
                },
                "maxItems": 100
              }
            },
            "patternProperties": {
              "^(?!(?:name|customFieldNames)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "customFieldNames"
              ]
            },
            "minProperties": 1,
            "maxProperties": 2
          },
          "importCsv": {
            "type": "object",
            "properties": {
              "contacts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phone": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "phones": {
                      "type": "array",
                      "items": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "maxItems": 9
                    },
                    "firstName": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "lastName": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "email": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "companyName": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "jobTitle": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "companyWebsiteUrl": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "personalLinkedInUrl": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "companyLinkedInUrl": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "city": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "state": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "country": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "timezone": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "customFields": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "required": [
                    "phone"
                  ],
                  "patternProperties": {
                    "^(?!(?:phone|phones|firstName|lastName|email|companyName|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFields)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "phone",
                      "phones",
                      "firstName",
                      "lastName",
                      "email",
                      "companyName",
                      "jobTitle",
                      "companyWebsiteUrl",
                      "personalLinkedInUrl",
                      "companyLinkedInUrl",
                      "city",
                      "state",
                      "country",
                      "timezone",
                      "customFields"
                    ]
                  }
                },
                "minItems": 1,
                "maxItems": 50000
              }
            },
            "required": [
              "contacts"
            ],
            "patternProperties": {
              "^(?!(?:contacts)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "contacts"
                  ]
                }
              ]
            }
          },
          "importAttioList": {
            "type": "object",
            "properties": {
              "attioListId": {
                "$ref": "#/$defs/ProviderId"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal"
                ]
              }
            },
            "required": [
              "attioListId"
            ],
            "patternProperties": {
              "^(?!(?:attioListId|emailStrategy)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attioListId",
                "emailStrategy"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|callListId|list|contacts|create|update|importCsv|importAttioList)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "callListId",
            "list",
            "contacts",
            "create",
            "update",
            "importCsv",
            "importAttioList"
          ]
        },
        "$defs": {
          "CallListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "CallListCustomFieldValue": {
            "type": "string",
            "maxLength": 4096
          },
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "CallListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "CallListContactId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "LeadPhoneId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "CallListCustomFieldValue": {
            "type": "string",
            "maxLength": 4096
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/CallListId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "defaultTimezone": {
                              "$ref": "#/$defs/IanaTimeZone"
                            },
                            "customFieldNames": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/ShortText"
                              }
                            },
                            "systemType": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "sequence_tasks"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "contactCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "defaultTimezone",
                            "customFieldNames",
                            "systemType",
                            "contactCount",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|defaultTimezone|customFieldNames|systemType|contactCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "defaultTimezone",
                              "customFieldNames",
                              "systemType",
                              "contactCount",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalPages": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "currentPage": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "pageSize": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "hasNextPage": {
                            "type": "boolean"
                          },
                          "hasPreviousPage": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "total",
                          "totalPages",
                          "currentPage",
                          "pageSize",
                          "offset",
                          "hasNextPage",
                          "hasPreviousPage"
                        ],
                        "patternProperties": {
                          "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "total",
                            "totalPages",
                            "currentPage",
                            "pageSize",
                            "offset",
                            "hasNextPage",
                            "hasPreviousPage"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/CallListId"
                      },
                      "name": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "defaultTimezone": {
                        "$ref": "#/$defs/IanaTimeZone"
                      },
                      "customFieldNames": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "systemType": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "sequence_tasks"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contactCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "defaultTimezone",
                      "customFieldNames",
                      "systemType",
                      "contactCount",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|defaultTimezone|customFieldNames|systemType|contactCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "defaultTimezone",
                        "customFieldNames",
                        "systemType",
                        "contactCount",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/CallListContactId"
                            },
                            "callListId": {
                              "$ref": "#/$defs/CallListId"
                            },
                            "leadId": {
                              "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"
                                }
                              ]
                            },
                            "leadPhoneId": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadPhoneId"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "not_called",
                                "queued",
                                "in_progress",
                                "called",
                                "completed",
                                "skipped",
                                "callback",
                                "dnc",
                                "failed"
                              ]
                            },
                            "phoneNumber": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "firstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "emailAddress": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyWebsiteUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "jobTitle": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "personalLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "locality": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "region": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "country": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/IanaTimeZone"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "customFieldValues": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "assignedUserId": {
                              "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"
                                }
                              ]
                            },
                            "callAttempts": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "lastCallId": {
                              "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"
                                }
                              ]
                            },
                            "lastDisposition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "booked_meeting",
                                    "connected",
                                    "voicemail",
                                    "no_answer",
                                    "not_interested",
                                    "callback",
                                    "wrong_number",
                                    "dnc",
                                    "gatekeeper",
                                    "ai_gatekeeper",
                                    "busy",
                                    "failed"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastAttemptAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "nextEligibleAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "callListId",
                            "leadId",
                            "leadPhoneId",
                            "status",
                            "phoneNumber",
                            "firstName",
                            "lastName",
                            "emailAddress",
                            "companyName",
                            "companyWebsiteUrl",
                            "jobTitle",
                            "personalLinkedInUrl",
                            "companyLinkedInUrl",
                            "locality",
                            "region",
                            "country",
                            "timezone",
                            "customFieldValues",
                            "assignedUserId",
                            "callAttempts",
                            "lastCallId",
                            "lastDisposition",
                            "lastAttemptAt",
                            "nextEligibleAt",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|callListId|leadId|leadPhoneId|status|phoneNumber|firstName|lastName|emailAddress|companyName|companyWebsiteUrl|jobTitle|personalLinkedInUrl|companyLinkedInUrl|locality|region|country|timezone|customFieldValues|assignedUserId|callAttempts|lastCallId|lastDisposition|lastAttemptAt|nextEligibleAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "callListId",
                              "leadId",
                              "leadPhoneId",
                              "status",
                              "phoneNumber",
                              "firstName",
                              "lastName",
                              "emailAddress",
                              "companyName",
                              "companyWebsiteUrl",
                              "jobTitle",
                              "personalLinkedInUrl",
                              "companyLinkedInUrl",
                              "locality",
                              "region",
                              "country",
                              "timezone",
                              "customFieldValues",
                              "assignedUserId",
                              "callAttempts",
                              "lastCallId",
                              "lastDisposition",
                              "lastAttemptAt",
                              "nextEligibleAt",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalPages": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "currentPage": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "pageSize": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "hasNextPage": {
                            "type": "boolean"
                          },
                          "hasPreviousPage": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "total",
                          "totalPages",
                          "currentPage",
                          "pageSize",
                          "offset",
                          "hasNextPage",
                          "hasPreviousPage"
                        ],
                        "patternProperties": {
                          "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "total",
                            "totalPages",
                            "currentPage",
                            "pageSize",
                            "offset",
                            "hasNextPage",
                            "hasPreviousPage"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "imported": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "numbersImported": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "skipped": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "imported",
                      "numbersImported",
                      "skipped"
                    ],
                    "patternProperties": {
                      "^(?!(?:imported|numbersImported|skipped)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "imported",
                        "numbersImported",
                        "skipped"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "imported": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "numbersImported": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "skipped": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "totalRecords": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "sourceName": {
                        "$ref": "#/$defs/ShortText"
                      }
                    },
                    "required": [
                      "imported",
                      "numbersImported",
                      "skipped",
                      "totalRecords",
                      "sourceName"
                    ],
                    "patternProperties": {
                      "^(?!(?:imported|numbersImported|skipped|totalRecords|sourceName)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "imported",
                        "numbersImported",
                        "skipped",
                        "totalRecords",
                        "sourceName"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "callListId": {
                        "$ref": "#/$defs/CallListId"
                      },
                      "deletedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "callListId",
                      "deletedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:callListId|deletedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "callListId",
                        "deletedAt"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/CallListId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "defaultTimezone": {
                                  "$ref": "#/$defs/IanaTimeZone"
                                },
                                "customFieldNames": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "systemType": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "sequence_tasks"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "contactCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "defaultTimezone",
                                "customFieldNames",
                                "systemType",
                                "contactCount",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|defaultTimezone|customFieldNames|systemType|contactCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "defaultTimezone",
                                  "customFieldNames",
                                  "systemType",
                                  "contactCount",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalPages": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "currentPage": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pageSize": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "hasNextPage": {
                                "type": "boolean"
                              },
                              "hasPreviousPage": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "total",
                              "totalPages",
                              "currentPage",
                              "pageSize",
                              "offset",
                              "hasNextPage",
                              "hasPreviousPage"
                            ],
                            "patternProperties": {
                              "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "total",
                                "totalPages",
                                "currentPage",
                                "pageSize",
                                "offset",
                                "hasNextPage",
                                "hasPreviousPage"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/CallListId"
                          },
                          "name": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "defaultTimezone": {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          "customFieldNames": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "systemType": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "sequence_tasks"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contactCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "defaultTimezone",
                          "customFieldNames",
                          "systemType",
                          "contactCount",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|defaultTimezone|customFieldNames|systemType|contactCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "defaultTimezone",
                            "customFieldNames",
                            "systemType",
                            "contactCount",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/CallListContactId"
                                },
                                "callListId": {
                                  "$ref": "#/$defs/CallListId"
                                },
                                "leadId": {
                                  "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"
                                    }
                                  ]
                                },
                                "leadPhoneId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadPhoneId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "not_called",
                                    "queued",
                                    "in_progress",
                                    "called",
                                    "completed",
                                    "skipped",
                                    "callback",
                                    "dnc",
                                    "failed"
                                  ]
                                },
                                "phoneNumber": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "firstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "emailAddress": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyWebsiteUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "jobTitle": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personalLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "locality": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "region": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "country": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "timezone": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/IanaTimeZone"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "customFieldValues": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "assignedUserId": {
                                  "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"
                                    }
                                  ]
                                },
                                "callAttempts": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "lastCallId": {
                                  "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"
                                    }
                                  ]
                                },
                                "lastDisposition": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "booked_meeting",
                                        "connected",
                                        "voicemail",
                                        "no_answer",
                                        "not_interested",
                                        "callback",
                                        "wrong_number",
                                        "dnc",
                                        "gatekeeper",
                                        "ai_gatekeeper",
                                        "busy",
                                        "failed"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastAttemptAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "nextEligibleAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "callListId",
                                "leadId",
                                "leadPhoneId",
                                "status",
                                "phoneNumber",
                                "firstName",
                                "lastName",
                                "emailAddress",
                                "companyName",
                                "companyWebsiteUrl",
                                "jobTitle",
                                "personalLinkedInUrl",
                                "companyLinkedInUrl",
                                "locality",
                                "region",
                                "country",
                                "timezone",
                                "customFieldValues",
                                "assignedUserId",
                                "callAttempts",
                                "lastCallId",
                                "lastDisposition",
                                "lastAttemptAt",
                                "nextEligibleAt",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|callListId|leadId|leadPhoneId|status|phoneNumber|firstName|lastName|emailAddress|companyName|companyWebsiteUrl|jobTitle|personalLinkedInUrl|companyLinkedInUrl|locality|region|country|timezone|customFieldValues|assignedUserId|callAttempts|lastCallId|lastDisposition|lastAttemptAt|nextEligibleAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "callListId",
                                  "leadId",
                                  "leadPhoneId",
                                  "status",
                                  "phoneNumber",
                                  "firstName",
                                  "lastName",
                                  "emailAddress",
                                  "companyName",
                                  "companyWebsiteUrl",
                                  "jobTitle",
                                  "personalLinkedInUrl",
                                  "companyLinkedInUrl",
                                  "locality",
                                  "region",
                                  "country",
                                  "timezone",
                                  "customFieldValues",
                                  "assignedUserId",
                                  "callAttempts",
                                  "lastCallId",
                                  "lastDisposition",
                                  "lastAttemptAt",
                                  "nextEligibleAt",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalPages": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "currentPage": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pageSize": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "hasNextPage": {
                                "type": "boolean"
                              },
                              "hasPreviousPage": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "total",
                              "totalPages",
                              "currentPage",
                              "pageSize",
                              "offset",
                              "hasNextPage",
                              "hasPreviousPage"
                            ],
                            "patternProperties": {
                              "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "total",
                                "totalPages",
                                "currentPage",
                                "pageSize",
                                "offset",
                                "hasNextPage",
                                "hasPreviousPage"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "imported": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "numbersImported": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "skipped": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "imported",
                          "numbersImported",
                          "skipped"
                        ],
                        "patternProperties": {
                          "^(?!(?:imported|numbersImported|skipped)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "imported",
                            "numbersImported",
                            "skipped"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "imported": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "numbersImported": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "skipped": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalRecords": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "sourceName": {
                            "$ref": "#/$defs/ShortText"
                          }
                        },
                        "required": [
                          "imported",
                          "numbersImported",
                          "skipped",
                          "totalRecords",
                          "sourceName"
                        ],
                        "patternProperties": {
                          "^(?!(?:imported|numbersImported|skipped|totalRecords|sourceName)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "imported",
                            "numbersImported",
                            "skipped",
                            "totalRecords",
                            "sourceName"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "callListId": {
                            "$ref": "#/$defs/CallListId"
                          },
                          "deletedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "callListId",
                          "deletedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:callListId|deletedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "callListId",
                            "deletedAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_call_lists"
      },
      "scopes": [
        "dialer:read",
        "dialer:create",
        "dialer:update",
        "dialer:delete",
        "lead:import",
        "integration:read"
      ],
      "bundles": [
        "dialer_media_operations"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerCallLists.list",
        "dialerCallLists.get",
        "dialerCallLists.create",
        "dialerCallLists.update",
        "dialerCallLists.duplicate",
        "dialerCallLists.delete",
        "dialerCallContacts.list",
        "dialerCallContacts.importCsv",
        "dialerCallContacts.importAttioList"
      ],
      "invocations": [
        {
          "operationId": "dialerCallLists.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/call-lists",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCallLists.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/call-lists/:callListId",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCallLists.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/call-lists",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCallLists.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/dialer/call-lists/:callListId",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCallLists.duplicate",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/call-lists/:callListId/duplicate",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCallLists.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/dialer/call-lists/:callListId",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCallContacts.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/call-lists/:callListId/contacts",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCallContacts.importCsv",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/call-lists/:callListId/contacts/import",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCallContacts.importAttioList",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/call-lists/:callListId/contacts/import-attio",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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",
              "get",
              "create",
              "update",
              "duplicate",
              "delete",
              "list_contacts",
              "import_csv",
              "import_attio_list"
            ]
          },
          "callListId": {
            "$ref": "#/$defs/CallListId"
          },
          "list": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "sortBy": {
                "type": "string",
                "enum": [
                  "name",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortOrder": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|search|sortBy|sortOrder)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "search",
                "sortBy",
                "sortOrder"
              ]
            }
          },
          "contacts": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "status": {
                "type": "string",
                "enum": [
                  "not_called",
                  "queued",
                  "in_progress",
                  "called",
                  "completed",
                  "skipped",
                  "callback",
                  "dnc",
                  "failed"
                ]
              },
              "search": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|status|search)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "status",
                "search"
              ]
            }
          },
          "create": {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "defaultTimezone": {
                "$ref": "#/$defs/IanaTimeZone"
              },
              "customFieldNames": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ShortText"
                },
                "maxItems": 100
              }
            },
            "required": [
              "name"
            ],
            "patternProperties": {
              "^(?!(?:name|defaultTimezone|customFieldNames)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "defaultTimezone",
                "customFieldNames"
              ]
            }
          },
          "update": {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "customFieldNames": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ShortText"
                },
                "maxItems": 100
              }
            },
            "patternProperties": {
              "^(?!(?:name|customFieldNames)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "customFieldNames"
              ]
            },
            "minProperties": 1,
            "maxProperties": 2
          },
          "importCsv": {
            "type": "object",
            "properties": {
              "contacts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phone": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "phones": {
                      "type": "array",
                      "items": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "maxItems": 9
                    },
                    "firstName": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "lastName": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "email": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "companyName": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "jobTitle": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "companyWebsiteUrl": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "personalLinkedInUrl": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "companyLinkedInUrl": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "city": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "state": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "country": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "timezone": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "customFields": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "required": [
                    "phone"
                  ],
                  "patternProperties": {
                    "^(?!(?:phone|phones|firstName|lastName|email|companyName|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFields)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "phone",
                      "phones",
                      "firstName",
                      "lastName",
                      "email",
                      "companyName",
                      "jobTitle",
                      "companyWebsiteUrl",
                      "personalLinkedInUrl",
                      "companyLinkedInUrl",
                      "city",
                      "state",
                      "country",
                      "timezone",
                      "customFields"
                    ]
                  }
                },
                "minItems": 1,
                "maxItems": 50000
              }
            },
            "required": [
              "contacts"
            ],
            "patternProperties": {
              "^(?!(?:contacts)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "contacts"
                  ]
                }
              ]
            }
          },
          "importAttioList": {
            "type": "object",
            "properties": {
              "attioListId": {
                "$ref": "#/$defs/ProviderId"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal"
                ]
              }
            },
            "required": [
              "attioListId"
            ],
            "patternProperties": {
              "^(?!(?:attioListId|emailStrategy)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attioListId",
                "emailStrategy"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|callListId|list|contacts|create|update|importCsv|importAttioList)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "callListId",
            "list",
            "contacts",
            "create",
            "update",
            "importCsv",
            "importAttioList"
          ]
        },
        "$defs": {
          "CallListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "CallListCustomFieldValue": {
            "type": "string",
            "maxLength": 4096
          },
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "manage_campaign_delivery",
      "description": "Resume future steps or stop a currently held campaign enrollment after a delivery delay.\n\nUse only after inspecting the delivery record and explicitly choosing the action; both actions target the historical send that holds the current enrollment.\n\nDo not use this to resend the delayed message or to override an unrelated reply, unsubscribe, manual stop, or newer enrollment pass.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sendHistoryId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "resume",
              "stop"
            ]
          }
        },
        "required": [
          "workspaceId",
          "campaignId",
          "sendHistoryId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|campaignId|sendHistoryId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "campaignId",
            "sendHistoryId",
            "action"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "delivery": {
            "type": "object",
            "properties": {
              "sendHistoryId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "campaignContactId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "recipientEmail": {
                "$ref": "#/$defs/EmailAddress"
              },
              "pass": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "pending",
                  "delivered",
                  "failed",
                  "unconfirmed"
                ]
              },
              "cause": {
                "type": "string",
                "enum": [
                  "sender",
                  "recipient",
                  "unclassified"
                ]
              },
              "failureCharacter": {
                "type": "string",
                "enum": [
                  "temporary",
                  "permanent",
                  "unknown"
                ]
              },
              "sequenceDisposition": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "held",
                      "continued",
                      "resumed",
                      "stopped"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstDelayedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastEvidenceAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "monitoringEndsAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "providerRetryUntil": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "confirmedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "outcomeAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "conflictingEvidence": {
                "type": "boolean"
              },
              "canResume": {
                "type": "boolean"
              },
              "canStop": {
                "type": "boolean"
              }
            },
            "required": [
              "sendHistoryId",
              "campaignId",
              "campaignContactId",
              "recipientEmail",
              "pass",
              "outcome",
              "cause",
              "failureCharacter",
              "sequenceDisposition",
              "firstDelayedAt",
              "lastEvidenceAt",
              "monitoringEndsAt",
              "providerRetryUntil",
              "confirmedAt",
              "outcomeAt",
              "conflictingEvidence",
              "canResume",
              "canStop"
            ],
            "patternProperties": {
              "^(?!(?:sendHistoryId|campaignId|campaignContactId|recipientEmail|pass|outcome|cause|failureCharacter|sequenceDisposition|firstDelayedAt|lastEvidenceAt|monitoringEndsAt|providerRetryUntil|confirmedAt|outcomeAt|conflictingEvidence|canResume|canStop)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "sendHistoryId",
                "campaignId",
                "campaignContactId",
                "recipientEmail",
                "pass",
                "outcome",
                "cause",
                "failureCharacter",
                "sequenceDisposition",
                "firstDelayedAt",
                "lastEvidenceAt",
                "monitoringEndsAt",
                "providerRetryUntil",
                "confirmedAt",
                "outcomeAt",
                "conflictingEvidence",
                "canResume",
                "canStop"
              ]
            }
          }
        },
        "required": [
          "delivery"
        ],
        "patternProperties": {
          "^(?!(?:delivery)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "delivery"
              ]
            }
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_campaign_delivery"
      },
      "scopes": [
        "campaign:update"
      ],
      "bundles": [
        "campaign_delivery"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignDelivery.resume",
        "campaignDelivery.stop"
      ],
      "invocations": [
        {
          "operationId": "campaignDelivery.resume",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/delivery/:sendHistoryId/resume",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignDelivery.stop",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/delivery/:sendHistoryId/stop",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sendHistoryId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "resume",
              "stop"
            ]
          }
        },
        "required": [
          "workspaceId",
          "campaignId",
          "sendHistoryId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|campaignId|sendHistoryId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "campaignId",
            "sendHistoryId",
            "action"
          ]
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "manage_campaign_notes",
      "description": "Read and write the titled markdown notes attached to a campaign — briefs, strategy, retros.\n\nUse to record the reasoning behind a campaign change where the team will find it later.\n\nNotes are visible to everyone who can read the campaign; do not put credentials or personal data in them.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "list",
              "get",
              "create",
              "update",
              "delete"
            ]
          },
          "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "note": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "title": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "content": {
                    "$ref": "#/$defs/CampaignNoteContent"
                  }
                },
                "patternProperties": {
                  "^(?!(?:title|content)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "title",
                    "content"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "title": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "content": {
                    "$ref": "#/$defs/CampaignNoteContent"
                  }
                },
                "patternProperties": {
                  "^(?!(?:title|content)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "title",
                    "content"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 2
              }
            ]
          },
          "noteId": {
            "type": "string"
          }
        },
        "required": [
          "action",
          "workspaceId",
          "campaignId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|campaignId|note|noteId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "campaignId",
            "note",
            "noteId"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "CampaignNoteContent": {
            "type": "string",
            "maxLength": 100000
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "CampaignNoteContent": {
            "type": "string",
            "maxLength": 100000
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "campaignId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "title": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "content": {
                        "$ref": "#/$defs/CampaignNoteContent"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "campaignId",
                      "title",
                      "content",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|campaignId|title|content|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "campaignId",
                        "title",
                        "content",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "campaignId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "title": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "content": {
                              "$ref": "#/$defs/CampaignNoteContent"
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "campaignId",
                            "title",
                            "content",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|campaignId|title|content|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "campaignId",
                              "title",
                              "content",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "noteId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "deleted": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "noteId",
                      "deleted"
                    ],
                    "patternProperties": {
                      "^(?!(?:noteId|deleted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "noteId",
                        "deleted"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "title": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "content": {
                            "$ref": "#/$defs/CampaignNoteContent"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "campaignId",
                          "title",
                          "content",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|campaignId|title|content|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "campaignId",
                            "title",
                            "content",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "campaignId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "title": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "content": {
                                  "$ref": "#/$defs/CampaignNoteContent"
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "campaignId",
                                "title",
                                "content",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|campaignId|title|content|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "campaignId",
                                  "title",
                                  "content",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "noteId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "deleted": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "noteId",
                          "deleted"
                        ],
                        "patternProperties": {
                          "^(?!(?:noteId|deleted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "noteId",
                            "deleted"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_campaign_notes"
      },
      "scopes": [
        "campaign:read",
        "campaign:update"
      ],
      "bundles": [
        "campaign_authoring"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignNotes.list",
        "campaignNotes.get",
        "campaignNotes.create",
        "campaignNotes.update",
        "campaignNotes.delete"
      ],
      "invocations": [
        {
          "operationId": "campaignNotes.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/notes",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignNotes.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/notes/:noteId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignNotes.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/notes",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignNotes.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/notes/:noteId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignNotes.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/notes/:noteId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "list",
              "get",
              "create",
              "update",
              "delete"
            ]
          },
          "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "note": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "title": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "content": {
                    "$ref": "#/$defs/CampaignNoteContent"
                  }
                },
                "patternProperties": {
                  "^(?!(?:title|content)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "title",
                    "content"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "title": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "content": {
                    "$ref": "#/$defs/CampaignNoteContent"
                  }
                },
                "patternProperties": {
                  "^(?!(?:title|content)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "title",
                    "content"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 2
              }
            ]
          },
          "noteId": {
            "type": "string"
          }
        },
        "required": [
          "action",
          "workspaceId",
          "campaignId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|campaignId|note|noteId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "campaignId",
            "note",
            "noteId"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "CampaignNoteContent": {
            "type": "string",
            "maxLength": 100000
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "manage_campaign_schedule",
      "description": "Read and save a campaign's sending schedule, and manage the reusable schedule presets a campaign can follow.\n\nUse after reading the schedule, echoing back the schedule version it returned so a concurrent propagation cannot be silently swallowed.\n\nEditing a preset never changes a campaign; propagating is a separate, explicit act that reaches only the campaigns still following it. Deleting a preset only unlinks — it never deletes or blanks a campaign's schedule.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "get",
              "update",
              "profiles",
              "create_profile",
              "update_profile",
              "propagate",
              "set_default",
              "delete_profile"
            ]
          },
          "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "schedule": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "defaultTimezone": {
                    "$ref": "#/$defs/IanaTimeZone"
                  },
                  "daysOfWeek": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "monday",
                            "tuesday",
                            "wednesday",
                            "thursday",
                            "friday",
                            "saturday",
                            "sunday"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "startDate": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "endDate": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unixStartTime": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unixEndTime": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "useAdvancedSchedule": {
                    "type": "boolean"
                  },
                  "weeklySchedule": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "monday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "tuesday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "wednesday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "thursday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "friday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "saturday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "sunday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "monday",
                            "tuesday",
                            "wednesday",
                            "thursday",
                            "friday",
                            "saturday",
                            "sunday"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "skipHolidays": {
                    "type": "boolean"
                  },
                  "holidayCalendar": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HolidayCalendarCode"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "respectLeadTimezone": {
                    "type": "boolean"
                  },
                  "timezoneFallbackPolicy": {
                    "type": "string",
                    "enum": [
                      "campaign_default",
                      "hold"
                    ]
                  },
                  "maxEmailsPerDay": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "maxNewLeadsPerDay": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "rampUpEnabled": {
                    "type": "boolean"
                  },
                  "rampUpInitialDailyLimit": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "rampUpDailyIncrement": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "scheduleProfileId": {
                    "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"
                      }
                    ]
                  },
                  "expectedScheduleVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "patternProperties": {
                  "^(?!(?:defaultTimezone|daysOfWeek|startDate|endDate|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay|rampUpEnabled|rampUpInitialDailyLimit|rampUpDailyIncrement|scheduleProfileId|expectedScheduleVersion)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "defaultTimezone",
                    "daysOfWeek",
                    "startDate",
                    "endDate",
                    "unixStartTime",
                    "unixEndTime",
                    "useAdvancedSchedule",
                    "weeklySchedule",
                    "skipHolidays",
                    "holidayCalendar",
                    "respectLeadTimezone",
                    "timezoneFallbackPolicy",
                    "maxEmailsPerDay",
                    "maxNewLeadsPerDay",
                    "rampUpEnabled",
                    "rampUpInitialDailyLimit",
                    "rampUpDailyIncrement",
                    "scheduleProfileId",
                    "expectedScheduleVersion"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 19
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "defaultTimezone": {
                        "$ref": "#/$defs/IanaTimeZone"
                      },
                      "daysOfWeek": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixStartTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixEndTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "useAdvancedSchedule": {
                        "type": "boolean"
                      },
                      "weeklySchedule": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "monday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "tuesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "wednesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "thursday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "friday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "saturday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "sunday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "skipHolidays": {
                        "type": "boolean"
                      },
                      "holidayCalendar": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HolidayCalendarCode"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "respectLeadTimezone": {
                        "type": "boolean"
                      },
                      "timezoneFallbackPolicy": {
                        "type": "string",
                        "enum": [
                          "campaign_default",
                          "hold"
                        ]
                      },
                      "maxEmailsPerDay": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maxNewLeadsPerDay": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "defaultTimezone",
                      "daysOfWeek",
                      "unixStartTime",
                      "unixEndTime",
                      "useAdvancedSchedule",
                      "weeklySchedule",
                      "skipHolidays",
                      "holidayCalendar",
                      "respectLeadTimezone",
                      "timezoneFallbackPolicy",
                      "maxEmailsPerDay",
                      "maxNewLeadsPerDay"
                    ],
                    "patternProperties": {
                      "^(?!(?:defaultTimezone|daysOfWeek|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "defaultTimezone",
                        "daysOfWeek",
                        "unixStartTime",
                        "unixEndTime",
                        "useAdvancedSchedule",
                        "weeklySchedule",
                        "skipHolidays",
                        "holidayCalendar",
                        "respectLeadTimezone",
                        "timezoneFallbackPolicy",
                        "maxEmailsPerDay",
                        "maxNewLeadsPerDay"
                      ]
                    }
                  }
                },
                "required": [
                  "name",
                  "settings"
                ],
                "patternProperties": {
                  "^(?!(?:name|isDefault|settings)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "isDefault",
                    "settings"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "defaultTimezone": {
                        "$ref": "#/$defs/IanaTimeZone"
                      },
                      "daysOfWeek": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixStartTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixEndTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "useAdvancedSchedule": {
                        "type": "boolean"
                      },
                      "weeklySchedule": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "monday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "tuesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "wednesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "thursday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "friday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "saturday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "sunday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "skipHolidays": {
                        "type": "boolean"
                      },
                      "holidayCalendar": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HolidayCalendarCode"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "respectLeadTimezone": {
                        "type": "boolean"
                      },
                      "timezoneFallbackPolicy": {
                        "type": "string",
                        "enum": [
                          "campaign_default",
                          "hold"
                        ]
                      },
                      "maxEmailsPerDay": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maxNewLeadsPerDay": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "defaultTimezone",
                      "daysOfWeek",
                      "unixStartTime",
                      "unixEndTime",
                      "useAdvancedSchedule",
                      "weeklySchedule",
                      "skipHolidays",
                      "holidayCalendar",
                      "respectLeadTimezone",
                      "timezoneFallbackPolicy",
                      "maxEmailsPerDay",
                      "maxNewLeadsPerDay"
                    ],
                    "patternProperties": {
                      "^(?!(?:defaultTimezone|daysOfWeek|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "defaultTimezone",
                        "daysOfWeek",
                        "unixStartTime",
                        "unixEndTime",
                        "useAdvancedSchedule",
                        "weeklySchedule",
                        "skipHolidays",
                        "holidayCalendar",
                        "respectLeadTimezone",
                        "timezoneFallbackPolicy",
                        "maxEmailsPerDay",
                        "maxNewLeadsPerDay"
                      ]
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|isDefault|settings)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "isDefault",
                    "settings"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "parentId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "parentId"
                ],
                "patternProperties": {
                  "^(?!(?:parentId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "parentId"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "campaignIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "folderId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "campaignIds",
                  "folderId"
                ],
                "patternProperties": {
                  "^(?!(?:campaignIds|folderId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "campaignIds",
                    "folderId"
                  ]
                }
              }
            ]
          },
          "profileId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "action",
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|campaignId|schedule|profileId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "campaignId",
            "schedule",
            "profileId"
          ]
        },
        "$defs": {
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "HolidayCalendarCode": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "HolidayCalendarCode": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "campaignId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "scheduleVersion": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "scheduleProfileId": {
                        "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"
                          }
                        ]
                      },
                      "defaultTimezone": {
                        "$ref": "#/$defs/IanaTimeZone"
                      },
                      "daysOfWeek": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "startDate": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "endDate": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixStartTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixEndTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "useAdvancedSchedule": {
                        "type": "boolean"
                      },
                      "weeklySchedule": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "monday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "tuesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "wednesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "thursday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "friday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "saturday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "sunday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "skipHolidays": {
                        "type": "boolean"
                      },
                      "holidayCalendar": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HolidayCalendarCode"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "respectLeadTimezone": {
                        "type": "boolean"
                      },
                      "timezoneFallbackPolicy": {
                        "type": "string",
                        "enum": [
                          "campaign_default",
                          "hold"
                        ]
                      },
                      "maxEmailsPerDay": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "maxNewLeadsPerDay": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "rampUpEnabled": {
                        "type": "boolean"
                      },
                      "rampUpInitialDailyLimit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "rampUpDailyIncrement": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "rampUpCompletedSendingDays": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "effectiveMaxEmailsPerDay": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "campaignId",
                      "scheduleVersion",
                      "scheduleProfileId",
                      "defaultTimezone",
                      "daysOfWeek",
                      "startDate",
                      "endDate",
                      "unixStartTime",
                      "unixEndTime",
                      "useAdvancedSchedule",
                      "weeklySchedule",
                      "skipHolidays",
                      "holidayCalendar",
                      "respectLeadTimezone",
                      "timezoneFallbackPolicy",
                      "maxEmailsPerDay",
                      "maxNewLeadsPerDay",
                      "rampUpEnabled",
                      "rampUpInitialDailyLimit",
                      "rampUpDailyIncrement",
                      "rampUpCompletedSendingDays",
                      "effectiveMaxEmailsPerDay"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaignId|scheduleVersion|scheduleProfileId|defaultTimezone|daysOfWeek|startDate|endDate|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay|rampUpEnabled|rampUpInitialDailyLimit|rampUpDailyIncrement|rampUpCompletedSendingDays|effectiveMaxEmailsPerDay)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaignId",
                        "scheduleVersion",
                        "scheduleProfileId",
                        "defaultTimezone",
                        "daysOfWeek",
                        "startDate",
                        "endDate",
                        "unixStartTime",
                        "unixEndTime",
                        "useAdvancedSchedule",
                        "weeklySchedule",
                        "skipHolidays",
                        "holidayCalendar",
                        "respectLeadTimezone",
                        "timezoneFallbackPolicy",
                        "maxEmailsPerDay",
                        "maxNewLeadsPerDay",
                        "rampUpEnabled",
                        "rampUpInitialDailyLimit",
                        "rampUpDailyIncrement",
                        "rampUpCompletedSendingDays",
                        "effectiveMaxEmailsPerDay"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "schedule": {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "scheduleVersion": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "scheduleProfileId": {
                            "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"
                              }
                            ]
                          },
                          "defaultTimezone": {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          "daysOfWeek": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "monday",
                                    "tuesday",
                                    "wednesday",
                                    "thursday",
                                    "friday",
                                    "saturday",
                                    "sunday"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unixStartTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86400
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unixEndTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86400
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "useAdvancedSchedule": {
                            "type": "boolean"
                          },
                          "weeklySchedule": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "monday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "tuesday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "wednesday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "thursday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "friday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "saturday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "sunday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  }
                                },
                                "patternProperties": {
                                  "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "monday",
                                    "tuesday",
                                    "wednesday",
                                    "thursday",
                                    "friday",
                                    "saturday",
                                    "sunday"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "skipHolidays": {
                            "type": "boolean"
                          },
                          "holidayCalendar": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HolidayCalendarCode"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "respectLeadTimezone": {
                            "type": "boolean"
                          },
                          "timezoneFallbackPolicy": {
                            "type": "string",
                            "enum": [
                              "campaign_default",
                              "hold"
                            ]
                          },
                          "maxEmailsPerDay": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxNewLeadsPerDay": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rampUpEnabled": {
                            "type": "boolean"
                          },
                          "rampUpInitialDailyLimit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rampUpDailyIncrement": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rampUpCompletedSendingDays": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "effectiveMaxEmailsPerDay": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "campaignId",
                          "scheduleVersion",
                          "scheduleProfileId",
                          "defaultTimezone",
                          "daysOfWeek",
                          "startDate",
                          "endDate",
                          "unixStartTime",
                          "unixEndTime",
                          "useAdvancedSchedule",
                          "weeklySchedule",
                          "skipHolidays",
                          "holidayCalendar",
                          "respectLeadTimezone",
                          "timezoneFallbackPolicy",
                          "maxEmailsPerDay",
                          "maxNewLeadsPerDay",
                          "rampUpEnabled",
                          "rampUpInitialDailyLimit",
                          "rampUpDailyIncrement",
                          "rampUpCompletedSendingDays",
                          "effectiveMaxEmailsPerDay"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|scheduleVersion|scheduleProfileId|defaultTimezone|daysOfWeek|startDate|endDate|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay|rampUpEnabled|rampUpInitialDailyLimit|rampUpDailyIncrement|rampUpCompletedSendingDays|effectiveMaxEmailsPerDay)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "scheduleVersion",
                            "scheduleProfileId",
                            "defaultTimezone",
                            "daysOfWeek",
                            "startDate",
                            "endDate",
                            "unixStartTime",
                            "unixEndTime",
                            "useAdvancedSchedule",
                            "weeklySchedule",
                            "skipHolidays",
                            "holidayCalendar",
                            "respectLeadTimezone",
                            "timezoneFallbackPolicy",
                            "maxEmailsPerDay",
                            "maxNewLeadsPerDay",
                            "rampUpEnabled",
                            "rampUpInitialDailyLimit",
                            "rampUpDailyIncrement",
                            "rampUpCompletedSendingDays",
                            "effectiveMaxEmailsPerDay"
                          ]
                        }
                      },
                      "unlinkedFrom": {
                        "anyOf": [
                          {
                            "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": {
                                "$ref": "#/$defs/ShortText"
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|name)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "name"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "schedule",
                      "unlinkedFrom"
                    ],
                    "patternProperties": {
                      "^(?!(?:schedule|unlinkedFrom)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "schedule",
                        "unlinkedFrom"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "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"
                      },
                      "name": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "isDefault": {
                        "type": "boolean"
                      },
                      "linkedCampaignCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "settings": {
                        "type": "object",
                        "properties": {
                          "defaultTimezone": {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          "daysOfWeek": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "monday",
                                    "tuesday",
                                    "wednesday",
                                    "thursday",
                                    "friday",
                                    "saturday",
                                    "sunday"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unixStartTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86400
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unixEndTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86400
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "useAdvancedSchedule": {
                            "type": "boolean"
                          },
                          "weeklySchedule": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "monday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "tuesday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "wednesday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "thursday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "friday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "saturday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "sunday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  }
                                },
                                "patternProperties": {
                                  "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "monday",
                                    "tuesday",
                                    "wednesday",
                                    "thursday",
                                    "friday",
                                    "saturday",
                                    "sunday"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "skipHolidays": {
                            "type": "boolean"
                          },
                          "holidayCalendar": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HolidayCalendarCode"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "respectLeadTimezone": {
                            "type": "boolean"
                          },
                          "timezoneFallbackPolicy": {
                            "type": "string",
                            "enum": [
                              "campaign_default",
                              "hold"
                            ]
                          },
                          "maxEmailsPerDay": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxNewLeadsPerDay": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "defaultTimezone",
                          "daysOfWeek",
                          "unixStartTime",
                          "unixEndTime",
                          "useAdvancedSchedule",
                          "weeklySchedule",
                          "skipHolidays",
                          "holidayCalendar",
                          "respectLeadTimezone",
                          "timezoneFallbackPolicy",
                          "maxEmailsPerDay",
                          "maxNewLeadsPerDay"
                        ],
                        "patternProperties": {
                          "^(?!(?:defaultTimezone|daysOfWeek|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "defaultTimezone",
                            "daysOfWeek",
                            "unixStartTime",
                            "unixEndTime",
                            "useAdvancedSchedule",
                            "weeklySchedule",
                            "skipHolidays",
                            "holidayCalendar",
                            "respectLeadTimezone",
                            "timezoneFallbackPolicy",
                            "maxEmailsPerDay",
                            "maxNewLeadsPerDay"
                          ]
                        }
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "workspaceId",
                      "name",
                      "isDefault",
                      "linkedCampaignCount",
                      "settings",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|workspaceId|name|isDefault|linkedCampaignCount|settings|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "workspaceId",
                        "name",
                        "isDefault",
                        "linkedCampaignCount",
                        "settings",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "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"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "isDefault": {
                              "type": "boolean"
                            },
                            "linkedCampaignCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "defaultTimezone": {
                                  "$ref": "#/$defs/IanaTimeZone"
                                },
                                "daysOfWeek": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "enum": [
                                          "monday",
                                          "tuesday",
                                          "wednesday",
                                          "thursday",
                                          "friday",
                                          "saturday",
                                          "sunday"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unixStartTime": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unixEndTime": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "useAdvancedSchedule": {
                                  "type": "boolean"
                                },
                                "weeklySchedule": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "monday": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "start": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              },
                                              "end": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              }
                                            },
                                            "required": [
                                              "start",
                                              "end"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:start|end)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "start",
                                                "end"
                                              ]
                                            }
                                          },
                                          "maxItems": 12
                                        },
                                        "tuesday": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "start": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              },
                                              "end": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              }
                                            },
                                            "required": [
                                              "start",
                                              "end"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:start|end)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "start",
                                                "end"
                                              ]
                                            }
                                          },
                                          "maxItems": 12
                                        },
                                        "wednesday": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "start": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              },
                                              "end": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              }
                                            },
                                            "required": [
                                              "start",
                                              "end"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:start|end)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "start",
                                                "end"
                                              ]
                                            }
                                          },
                                          "maxItems": 12
                                        },
                                        "thursday": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "start": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              },
                                              "end": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              }
                                            },
                                            "required": [
                                              "start",
                                              "end"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:start|end)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "start",
                                                "end"
                                              ]
                                            }
                                          },
                                          "maxItems": 12
                                        },
                                        "friday": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "start": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              },
                                              "end": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              }
                                            },
                                            "required": [
                                              "start",
                                              "end"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:start|end)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "start",
                                                "end"
                                              ]
                                            }
                                          },
                                          "maxItems": 12
                                        },
                                        "saturday": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "start": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              },
                                              "end": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              }
                                            },
                                            "required": [
                                              "start",
                                              "end"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:start|end)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "start",
                                                "end"
                                              ]
                                            }
                                          },
                                          "maxItems": 12
                                        },
                                        "sunday": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "start": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              },
                                              "end": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 86400
                                              }
                                            },
                                            "required": [
                                              "start",
                                              "end"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:start|end)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "start",
                                                "end"
                                              ]
                                            }
                                          },
                                          "maxItems": 12
                                        }
                                      },
                                      "patternProperties": {
                                        "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "monday",
                                          "tuesday",
                                          "wednesday",
                                          "thursday",
                                          "friday",
                                          "saturday",
                                          "sunday"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "skipHolidays": {
                                  "type": "boolean"
                                },
                                "holidayCalendar": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/HolidayCalendarCode"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "respectLeadTimezone": {
                                  "type": "boolean"
                                },
                                "timezoneFallbackPolicy": {
                                  "type": "string",
                                  "enum": [
                                    "campaign_default",
                                    "hold"
                                  ]
                                },
                                "maxEmailsPerDay": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "maxNewLeadsPerDay": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "defaultTimezone",
                                "daysOfWeek",
                                "unixStartTime",
                                "unixEndTime",
                                "useAdvancedSchedule",
                                "weeklySchedule",
                                "skipHolidays",
                                "holidayCalendar",
                                "respectLeadTimezone",
                                "timezoneFallbackPolicy",
                                "maxEmailsPerDay",
                                "maxNewLeadsPerDay"
                              ],
                              "patternProperties": {
                                "^(?!(?:defaultTimezone|daysOfWeek|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "defaultTimezone",
                                  "daysOfWeek",
                                  "unixStartTime",
                                  "unixEndTime",
                                  "useAdvancedSchedule",
                                  "weeklySchedule",
                                  "skipHolidays",
                                  "holidayCalendar",
                                  "respectLeadTimezone",
                                  "timezoneFallbackPolicy",
                                  "maxEmailsPerDay",
                                  "maxNewLeadsPerDay"
                                ]
                              }
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "workspaceId",
                            "name",
                            "isDefault",
                            "linkedCampaignCount",
                            "settings",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|workspaceId|name|isDefault|linkedCampaignCount|settings|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "workspaceId",
                              "name",
                              "isDefault",
                              "linkedCampaignCount",
                              "settings",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "profileId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "profileName": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "reached": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "profileId",
                      "profileName",
                      "reached"
                    ],
                    "patternProperties": {
                      "^(?!(?:profileId|profileName|reached)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "profileId",
                        "profileName",
                        "reached"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "profileId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "unlinkedCampaigns": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "profileId",
                      "unlinkedCampaigns"
                    ],
                    "patternProperties": {
                      "^(?!(?:profileId|unlinkedCampaigns)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "profileId",
                        "unlinkedCampaigns"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "scheduleVersion": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "scheduleProfileId": {
                            "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"
                              }
                            ]
                          },
                          "defaultTimezone": {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          "daysOfWeek": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "monday",
                                    "tuesday",
                                    "wednesday",
                                    "thursday",
                                    "friday",
                                    "saturday",
                                    "sunday"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unixStartTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86400
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unixEndTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86400
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "useAdvancedSchedule": {
                            "type": "boolean"
                          },
                          "weeklySchedule": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "monday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "tuesday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "wednesday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "thursday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "friday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "saturday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "sunday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  }
                                },
                                "patternProperties": {
                                  "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "monday",
                                    "tuesday",
                                    "wednesday",
                                    "thursday",
                                    "friday",
                                    "saturday",
                                    "sunday"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "skipHolidays": {
                            "type": "boolean"
                          },
                          "holidayCalendar": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HolidayCalendarCode"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "respectLeadTimezone": {
                            "type": "boolean"
                          },
                          "timezoneFallbackPolicy": {
                            "type": "string",
                            "enum": [
                              "campaign_default",
                              "hold"
                            ]
                          },
                          "maxEmailsPerDay": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxNewLeadsPerDay": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rampUpEnabled": {
                            "type": "boolean"
                          },
                          "rampUpInitialDailyLimit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rampUpDailyIncrement": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rampUpCompletedSendingDays": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "effectiveMaxEmailsPerDay": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "campaignId",
                          "scheduleVersion",
                          "scheduleProfileId",
                          "defaultTimezone",
                          "daysOfWeek",
                          "startDate",
                          "endDate",
                          "unixStartTime",
                          "unixEndTime",
                          "useAdvancedSchedule",
                          "weeklySchedule",
                          "skipHolidays",
                          "holidayCalendar",
                          "respectLeadTimezone",
                          "timezoneFallbackPolicy",
                          "maxEmailsPerDay",
                          "maxNewLeadsPerDay",
                          "rampUpEnabled",
                          "rampUpInitialDailyLimit",
                          "rampUpDailyIncrement",
                          "rampUpCompletedSendingDays",
                          "effectiveMaxEmailsPerDay"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|scheduleVersion|scheduleProfileId|defaultTimezone|daysOfWeek|startDate|endDate|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay|rampUpEnabled|rampUpInitialDailyLimit|rampUpDailyIncrement|rampUpCompletedSendingDays|effectiveMaxEmailsPerDay)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "scheduleVersion",
                            "scheduleProfileId",
                            "defaultTimezone",
                            "daysOfWeek",
                            "startDate",
                            "endDate",
                            "unixStartTime",
                            "unixEndTime",
                            "useAdvancedSchedule",
                            "weeklySchedule",
                            "skipHolidays",
                            "holidayCalendar",
                            "respectLeadTimezone",
                            "timezoneFallbackPolicy",
                            "maxEmailsPerDay",
                            "maxNewLeadsPerDay",
                            "rampUpEnabled",
                            "rampUpInitialDailyLimit",
                            "rampUpDailyIncrement",
                            "rampUpCompletedSendingDays",
                            "effectiveMaxEmailsPerDay"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "schedule": {
                            "type": "object",
                            "properties": {
                              "campaignId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "scheduleVersion": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "scheduleProfileId": {
                                "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"
                                  }
                                ]
                              },
                              "defaultTimezone": {
                                "$ref": "#/$defs/IanaTimeZone"
                              },
                              "daysOfWeek": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "monday",
                                        "tuesday",
                                        "wednesday",
                                        "thursday",
                                        "friday",
                                        "saturday",
                                        "sunday"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "startDate": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "endDate": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unixStartTime": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 86400
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unixEndTime": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 86400
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "useAdvancedSchedule": {
                                "type": "boolean"
                              },
                              "weeklySchedule": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "monday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "tuesday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "wednesday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "thursday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "friday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "saturday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "sunday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      }
                                    },
                                    "patternProperties": {
                                      "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "monday",
                                        "tuesday",
                                        "wednesday",
                                        "thursday",
                                        "friday",
                                        "saturday",
                                        "sunday"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "skipHolidays": {
                                "type": "boolean"
                              },
                              "holidayCalendar": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HolidayCalendarCode"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "respectLeadTimezone": {
                                "type": "boolean"
                              },
                              "timezoneFallbackPolicy": {
                                "type": "string",
                                "enum": [
                                  "campaign_default",
                                  "hold"
                                ]
                              },
                              "maxEmailsPerDay": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "maxNewLeadsPerDay": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "rampUpEnabled": {
                                "type": "boolean"
                              },
                              "rampUpInitialDailyLimit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "rampUpDailyIncrement": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "rampUpCompletedSendingDays": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "effectiveMaxEmailsPerDay": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "campaignId",
                              "scheduleVersion",
                              "scheduleProfileId",
                              "defaultTimezone",
                              "daysOfWeek",
                              "startDate",
                              "endDate",
                              "unixStartTime",
                              "unixEndTime",
                              "useAdvancedSchedule",
                              "weeklySchedule",
                              "skipHolidays",
                              "holidayCalendar",
                              "respectLeadTimezone",
                              "timezoneFallbackPolicy",
                              "maxEmailsPerDay",
                              "maxNewLeadsPerDay",
                              "rampUpEnabled",
                              "rampUpInitialDailyLimit",
                              "rampUpDailyIncrement",
                              "rampUpCompletedSendingDays",
                              "effectiveMaxEmailsPerDay"
                            ],
                            "patternProperties": {
                              "^(?!(?:campaignId|scheduleVersion|scheduleProfileId|defaultTimezone|daysOfWeek|startDate|endDate|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay|rampUpEnabled|rampUpInitialDailyLimit|rampUpDailyIncrement|rampUpCompletedSendingDays|effectiveMaxEmailsPerDay)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "campaignId",
                                "scheduleVersion",
                                "scheduleProfileId",
                                "defaultTimezone",
                                "daysOfWeek",
                                "startDate",
                                "endDate",
                                "unixStartTime",
                                "unixEndTime",
                                "useAdvancedSchedule",
                                "weeklySchedule",
                                "skipHolidays",
                                "holidayCalendar",
                                "respectLeadTimezone",
                                "timezoneFallbackPolicy",
                                "maxEmailsPerDay",
                                "maxNewLeadsPerDay",
                                "rampUpEnabled",
                                "rampUpInitialDailyLimit",
                                "rampUpDailyIncrement",
                                "rampUpCompletedSendingDays",
                                "effectiveMaxEmailsPerDay"
                              ]
                            }
                          },
                          "unlinkedFrom": {
                            "anyOf": [
                              {
                                "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": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|name)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "name"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "schedule",
                          "unlinkedFrom"
                        ],
                        "patternProperties": {
                          "^(?!(?:schedule|unlinkedFrom)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "schedule",
                            "unlinkedFrom"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "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"
                          },
                          "name": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "isDefault": {
                            "type": "boolean"
                          },
                          "linkedCampaignCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "settings": {
                            "type": "object",
                            "properties": {
                              "defaultTimezone": {
                                "$ref": "#/$defs/IanaTimeZone"
                              },
                              "daysOfWeek": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "monday",
                                        "tuesday",
                                        "wednesday",
                                        "thursday",
                                        "friday",
                                        "saturday",
                                        "sunday"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unixStartTime": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 86400
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unixEndTime": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 86400
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "useAdvancedSchedule": {
                                "type": "boolean"
                              },
                              "weeklySchedule": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "monday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "tuesday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "wednesday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "thursday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "friday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "saturday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "sunday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      }
                                    },
                                    "patternProperties": {
                                      "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "monday",
                                        "tuesday",
                                        "wednesday",
                                        "thursday",
                                        "friday",
                                        "saturday",
                                        "sunday"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "skipHolidays": {
                                "type": "boolean"
                              },
                              "holidayCalendar": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HolidayCalendarCode"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "respectLeadTimezone": {
                                "type": "boolean"
                              },
                              "timezoneFallbackPolicy": {
                                "type": "string",
                                "enum": [
                                  "campaign_default",
                                  "hold"
                                ]
                              },
                              "maxEmailsPerDay": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "maxNewLeadsPerDay": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "defaultTimezone",
                              "daysOfWeek",
                              "unixStartTime",
                              "unixEndTime",
                              "useAdvancedSchedule",
                              "weeklySchedule",
                              "skipHolidays",
                              "holidayCalendar",
                              "respectLeadTimezone",
                              "timezoneFallbackPolicy",
                              "maxEmailsPerDay",
                              "maxNewLeadsPerDay"
                            ],
                            "patternProperties": {
                              "^(?!(?:defaultTimezone|daysOfWeek|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "defaultTimezone",
                                "daysOfWeek",
                                "unixStartTime",
                                "unixEndTime",
                                "useAdvancedSchedule",
                                "weeklySchedule",
                                "skipHolidays",
                                "holidayCalendar",
                                "respectLeadTimezone",
                                "timezoneFallbackPolicy",
                                "maxEmailsPerDay",
                                "maxNewLeadsPerDay"
                              ]
                            }
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "workspaceId",
                          "name",
                          "isDefault",
                          "linkedCampaignCount",
                          "settings",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|workspaceId|name|isDefault|linkedCampaignCount|settings|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "workspaceId",
                            "name",
                            "isDefault",
                            "linkedCampaignCount",
                            "settings",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "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"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "isDefault": {
                                  "type": "boolean"
                                },
                                "linkedCampaignCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "settings": {
                                  "type": "object",
                                  "properties": {
                                    "defaultTimezone": {
                                      "$ref": "#/$defs/IanaTimeZone"
                                    },
                                    "daysOfWeek": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "enum": [
                                              "monday",
                                              "tuesday",
                                              "wednesday",
                                              "thursday",
                                              "friday",
                                              "saturday",
                                              "sunday"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "unixStartTime": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "unixEndTime": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "useAdvancedSchedule": {
                                      "type": "boolean"
                                    },
                                    "weeklySchedule": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "monday": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "start": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  },
                                                  "end": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  }
                                                },
                                                "required": [
                                                  "start",
                                                  "end"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:start|end)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "start",
                                                    "end"
                                                  ]
                                                }
                                              },
                                              "maxItems": 12
                                            },
                                            "tuesday": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "start": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  },
                                                  "end": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  }
                                                },
                                                "required": [
                                                  "start",
                                                  "end"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:start|end)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "start",
                                                    "end"
                                                  ]
                                                }
                                              },
                                              "maxItems": 12
                                            },
                                            "wednesday": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "start": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  },
                                                  "end": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  }
                                                },
                                                "required": [
                                                  "start",
                                                  "end"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:start|end)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "start",
                                                    "end"
                                                  ]
                                                }
                                              },
                                              "maxItems": 12
                                            },
                                            "thursday": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "start": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  },
                                                  "end": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  }
                                                },
                                                "required": [
                                                  "start",
                                                  "end"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:start|end)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "start",
                                                    "end"
                                                  ]
                                                }
                                              },
                                              "maxItems": 12
                                            },
                                            "friday": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "start": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  },
                                                  "end": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  }
                                                },
                                                "required": [
                                                  "start",
                                                  "end"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:start|end)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "start",
                                                    "end"
                                                  ]
                                                }
                                              },
                                              "maxItems": 12
                                            },
                                            "saturday": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "start": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  },
                                                  "end": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  }
                                                },
                                                "required": [
                                                  "start",
                                                  "end"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:start|end)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "start",
                                                    "end"
                                                  ]
                                                }
                                              },
                                              "maxItems": 12
                                            },
                                            "sunday": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "start": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  },
                                                  "end": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 86400
                                                  }
                                                },
                                                "required": [
                                                  "start",
                                                  "end"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:start|end)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "start",
                                                    "end"
                                                  ]
                                                }
                                              },
                                              "maxItems": 12
                                            }
                                          },
                                          "patternProperties": {
                                            "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "monday",
                                              "tuesday",
                                              "wednesday",
                                              "thursday",
                                              "friday",
                                              "saturday",
                                              "sunday"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "skipHolidays": {
                                      "type": "boolean"
                                    },
                                    "holidayCalendar": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/HolidayCalendarCode"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "respectLeadTimezone": {
                                      "type": "boolean"
                                    },
                                    "timezoneFallbackPolicy": {
                                      "type": "string",
                                      "enum": [
                                        "campaign_default",
                                        "hold"
                                      ]
                                    },
                                    "maxEmailsPerDay": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxNewLeadsPerDay": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "defaultTimezone",
                                    "daysOfWeek",
                                    "unixStartTime",
                                    "unixEndTime",
                                    "useAdvancedSchedule",
                                    "weeklySchedule",
                                    "skipHolidays",
                                    "holidayCalendar",
                                    "respectLeadTimezone",
                                    "timezoneFallbackPolicy",
                                    "maxEmailsPerDay",
                                    "maxNewLeadsPerDay"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:defaultTimezone|daysOfWeek|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "defaultTimezone",
                                      "daysOfWeek",
                                      "unixStartTime",
                                      "unixEndTime",
                                      "useAdvancedSchedule",
                                      "weeklySchedule",
                                      "skipHolidays",
                                      "holidayCalendar",
                                      "respectLeadTimezone",
                                      "timezoneFallbackPolicy",
                                      "maxEmailsPerDay",
                                      "maxNewLeadsPerDay"
                                    ]
                                  }
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "workspaceId",
                                "name",
                                "isDefault",
                                "linkedCampaignCount",
                                "settings",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|workspaceId|name|isDefault|linkedCampaignCount|settings|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "workspaceId",
                                  "name",
                                  "isDefault",
                                  "linkedCampaignCount",
                                  "settings",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "profileId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "profileName": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "reached": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "profileId",
                          "profileName",
                          "reached"
                        ],
                        "patternProperties": {
                          "^(?!(?:profileId|profileName|reached)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "profileId",
                            "profileName",
                            "reached"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "profileId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "unlinkedCampaigns": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "profileId",
                          "unlinkedCampaigns"
                        ],
                        "patternProperties": {
                          "^(?!(?:profileId|unlinkedCampaigns)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "profileId",
                            "unlinkedCampaigns"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_campaign_schedule"
      },
      "scopes": [
        "campaign:read",
        "campaign:create",
        "campaign:update",
        "campaign:delete"
      ],
      "bundles": [
        "campaign_authoring"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaigns.getSchedule",
        "campaigns.updateSchedule",
        "campaignScheduleProfiles.list",
        "campaignScheduleProfiles.create",
        "campaignScheduleProfiles.update",
        "campaignScheduleProfiles.propagate",
        "campaignScheduleProfiles.setDefault",
        "campaignScheduleProfiles.delete"
      ],
      "invocations": [
        {
          "operationId": "campaigns.getSchedule",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/schedule",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.updateSchedule",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/schedule",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignScheduleProfiles.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaign-schedule-profiles",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignScheduleProfiles.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaign-schedule-profiles",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignScheduleProfiles.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaign-schedule-profiles/:profileId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignScheduleProfiles.propagate",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaign-schedule-profiles/:profileId/propagate",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignScheduleProfiles.setDefault",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaign-schedule-profiles/:profileId/default",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignScheduleProfiles.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/campaign-schedule-profiles/:profileId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "get",
              "update",
              "profiles",
              "create_profile",
              "update_profile",
              "propagate",
              "set_default",
              "delete_profile"
            ]
          },
          "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "schedule": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "defaultTimezone": {
                    "$ref": "#/$defs/IanaTimeZone"
                  },
                  "daysOfWeek": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "monday",
                            "tuesday",
                            "wednesday",
                            "thursday",
                            "friday",
                            "saturday",
                            "sunday"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "startDate": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "endDate": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unixStartTime": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unixEndTime": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "useAdvancedSchedule": {
                    "type": "boolean"
                  },
                  "weeklySchedule": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "monday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "tuesday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "wednesday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "thursday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "friday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "saturday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          },
                          "sunday": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "end": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 86400
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ],
                              "patternProperties": {
                                "^(?!(?:start|end)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "start",
                                  "end"
                                ]
                              }
                            },
                            "maxItems": 12
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "monday",
                            "tuesday",
                            "wednesday",
                            "thursday",
                            "friday",
                            "saturday",
                            "sunday"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "skipHolidays": {
                    "type": "boolean"
                  },
                  "holidayCalendar": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HolidayCalendarCode"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "respectLeadTimezone": {
                    "type": "boolean"
                  },
                  "timezoneFallbackPolicy": {
                    "type": "string",
                    "enum": [
                      "campaign_default",
                      "hold"
                    ]
                  },
                  "maxEmailsPerDay": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "maxNewLeadsPerDay": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "rampUpEnabled": {
                    "type": "boolean"
                  },
                  "rampUpInitialDailyLimit": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "rampUpDailyIncrement": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "scheduleProfileId": {
                    "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"
                      }
                    ]
                  },
                  "expectedScheduleVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "patternProperties": {
                  "^(?!(?:defaultTimezone|daysOfWeek|startDate|endDate|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay|rampUpEnabled|rampUpInitialDailyLimit|rampUpDailyIncrement|scheduleProfileId|expectedScheduleVersion)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "defaultTimezone",
                    "daysOfWeek",
                    "startDate",
                    "endDate",
                    "unixStartTime",
                    "unixEndTime",
                    "useAdvancedSchedule",
                    "weeklySchedule",
                    "skipHolidays",
                    "holidayCalendar",
                    "respectLeadTimezone",
                    "timezoneFallbackPolicy",
                    "maxEmailsPerDay",
                    "maxNewLeadsPerDay",
                    "rampUpEnabled",
                    "rampUpInitialDailyLimit",
                    "rampUpDailyIncrement",
                    "scheduleProfileId",
                    "expectedScheduleVersion"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 19
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "defaultTimezone": {
                        "$ref": "#/$defs/IanaTimeZone"
                      },
                      "daysOfWeek": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixStartTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixEndTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "useAdvancedSchedule": {
                        "type": "boolean"
                      },
                      "weeklySchedule": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "monday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "tuesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "wednesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "thursday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "friday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "saturday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "sunday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "skipHolidays": {
                        "type": "boolean"
                      },
                      "holidayCalendar": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HolidayCalendarCode"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "respectLeadTimezone": {
                        "type": "boolean"
                      },
                      "timezoneFallbackPolicy": {
                        "type": "string",
                        "enum": [
                          "campaign_default",
                          "hold"
                        ]
                      },
                      "maxEmailsPerDay": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maxNewLeadsPerDay": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "defaultTimezone",
                      "daysOfWeek",
                      "unixStartTime",
                      "unixEndTime",
                      "useAdvancedSchedule",
                      "weeklySchedule",
                      "skipHolidays",
                      "holidayCalendar",
                      "respectLeadTimezone",
                      "timezoneFallbackPolicy",
                      "maxEmailsPerDay",
                      "maxNewLeadsPerDay"
                    ],
                    "patternProperties": {
                      "^(?!(?:defaultTimezone|daysOfWeek|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "defaultTimezone",
                        "daysOfWeek",
                        "unixStartTime",
                        "unixEndTime",
                        "useAdvancedSchedule",
                        "weeklySchedule",
                        "skipHolidays",
                        "holidayCalendar",
                        "respectLeadTimezone",
                        "timezoneFallbackPolicy",
                        "maxEmailsPerDay",
                        "maxNewLeadsPerDay"
                      ]
                    }
                  }
                },
                "required": [
                  "name",
                  "settings"
                ],
                "patternProperties": {
                  "^(?!(?:name|isDefault|settings)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "isDefault",
                    "settings"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "defaultTimezone": {
                        "$ref": "#/$defs/IanaTimeZone"
                      },
                      "daysOfWeek": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixStartTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unixEndTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86400
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "useAdvancedSchedule": {
                        "type": "boolean"
                      },
                      "weeklySchedule": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "monday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "tuesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "wednesday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "thursday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "friday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "saturday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              },
                              "sunday": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    },
                                    "end": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 86400
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "end"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:start|end)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "start",
                                      "end"
                                    ]
                                  }
                                },
                                "maxItems": 12
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday",
                                "sunday"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "skipHolidays": {
                        "type": "boolean"
                      },
                      "holidayCalendar": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HolidayCalendarCode"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "respectLeadTimezone": {
                        "type": "boolean"
                      },
                      "timezoneFallbackPolicy": {
                        "type": "string",
                        "enum": [
                          "campaign_default",
                          "hold"
                        ]
                      },
                      "maxEmailsPerDay": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maxNewLeadsPerDay": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "defaultTimezone",
                      "daysOfWeek",
                      "unixStartTime",
                      "unixEndTime",
                      "useAdvancedSchedule",
                      "weeklySchedule",
                      "skipHolidays",
                      "holidayCalendar",
                      "respectLeadTimezone",
                      "timezoneFallbackPolicy",
                      "maxEmailsPerDay",
                      "maxNewLeadsPerDay"
                    ],
                    "patternProperties": {
                      "^(?!(?:defaultTimezone|daysOfWeek|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "defaultTimezone",
                        "daysOfWeek",
                        "unixStartTime",
                        "unixEndTime",
                        "useAdvancedSchedule",
                        "weeklySchedule",
                        "skipHolidays",
                        "holidayCalendar",
                        "respectLeadTimezone",
                        "timezoneFallbackPolicy",
                        "maxEmailsPerDay",
                        "maxNewLeadsPerDay"
                      ]
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|isDefault|settings)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "isDefault",
                    "settings"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "parentId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "parentId"
                ],
                "patternProperties": {
                  "^(?!(?:parentId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "parentId"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "campaignIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "folderId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "campaignIds",
                  "folderId"
                ],
                "patternProperties": {
                  "^(?!(?:campaignIds|folderId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "campaignIds",
                    "folderId"
                  ]
                }
              }
            ]
          },
          "profileId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "action",
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|campaignId|schedule|profileId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "campaignId",
            "schedule",
            "profileId"
          ]
        },
        "$defs": {
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "HolidayCalendarCode": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "manage_campaigns",
      "description": "Create, duplicate, rename, retag, file, transition, configure, and delete campaigns. A requested pause records manual intent, including when already bounce-paused.\n\nUse to set a campaign up or change how it sends, after read_campaign_setup has shown what is already there.\n\nActivating a campaign enforces the send prerequisites and the subscription gate; do not use this to work around either. Turning the contact waterfall off is refused while contacts sit on a later address, and that refusal must be reported, not retried.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "create",
              "duplicate",
              "update",
              "update_settings",
              "delete"
            ]
          },
          "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "create": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "folderId": {
                    "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"
                      }
                    ]
                  },
                  "parentCampaignId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|folderId|parentCampaignId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "folderId",
                    "parentCampaignId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "patternProperties": {
                  "^(?!(?:name)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "name"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "draft",
                      "active",
                      "paused",
                      "archived",
                      "completed"
                    ]
                  },
                  "folderId": {
                    "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"
                      }
                    ]
                  },
                  "newLeadPriority": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "espMatchMode": {
                    "type": "string",
                    "enum": [
                      "off",
                      "match_then_spill",
                      "match_only"
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|status|folderId|newLeadPriority|espMatchMode)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "status",
                    "folderId",
                    "newLeadPriority",
                    "espMatchMode"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 5
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 500
                  },
                  "tagIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 50
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "newLeadPriority": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "espMatchMode": {
                        "type": "string",
                        "enum": [
                          "off",
                          "match_then_spill",
                          "match_only"
                        ]
                      },
                      "opportunityValue": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "stopSendingOnReply": {
                        "type": "boolean"
                      },
                      "continueSendingOnAutomaticReply": {
                        "type": "boolean"
                      },
                      "defaultDelayDaysForAutomaticReply": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "stopSendingOnSameDomainReply": {
                        "type": "boolean"
                      },
                      "openRateTracking": {
                        "type": "boolean"
                      },
                      "unsubscribeLink": {
                        "type": "boolean"
                      },
                      "addUnsubscribedLeadsToBlockList": {
                        "type": "boolean"
                      },
                      "sendAsPlainText": {
                        "type": "boolean"
                      },
                      "sendRiskyEmails": {
                        "type": "boolean"
                      },
                      "skipSegEmails": {
                        "type": "boolean"
                      },
                      "autoPauseOnHighBounceRate": {
                        "type": "boolean"
                      },
                      "continueOnSoftBounce": {
                        "type": "boolean"
                      },
                      "softBounceMonitoringDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 30
                      },
                      "highBounceRateThreshold": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "fallbackSendingForRemovedInboxes": {
                        "type": "boolean"
                      },
                      "fallbackSendingForErroredInboxes": {
                        "type": "boolean"
                      },
                      "dailyCapPerRecipientDomain": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "waterfallEnabled": {
                        "type": "boolean"
                      },
                      "waterfallPassGapDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 90
                      },
                      "waterfallResponseFreeze": {
                        "type": "string",
                        "enum": [
                          "freeze_ladder",
                          "contact_only"
                        ]
                      },
                      "quotedChainAttribution": {
                        "type": "string",
                        "enum": [
                          "current_sender",
                          "original"
                        ]
                      },
                      "ignoreInboxSendLimits": {
                        "type": "boolean"
                      },
                      "ccEmails": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "maxItems": 5
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "initialDelayMinutes": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 43200
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:newLeadPriority|espMatchMode|opportunityValue|stopSendingOnReply|continueSendingOnAutomaticReply|defaultDelayDaysForAutomaticReply|stopSendingOnSameDomainReply|openRateTracking|unsubscribeLink|addUnsubscribedLeadsToBlockList|sendAsPlainText|sendRiskyEmails|skipSegEmails|autoPauseOnHighBounceRate|continueOnSoftBounce|softBounceMonitoringDays|highBounceRateThreshold|fallbackSendingForRemovedInboxes|fallbackSendingForErroredInboxes|dailyCapPerRecipientDomain|waterfallEnabled|waterfallPassGapDays|waterfallResponseFreeze|quotedChainAttribution|ignoreInboxSendLimits|ccEmails|initialDelayMinutes)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "newLeadPriority",
                        "espMatchMode",
                        "opportunityValue",
                        "stopSendingOnReply",
                        "continueSendingOnAutomaticReply",
                        "defaultDelayDaysForAutomaticReply",
                        "stopSendingOnSameDomainReply",
                        "openRateTracking",
                        "unsubscribeLink",
                        "addUnsubscribedLeadsToBlockList",
                        "sendAsPlainText",
                        "sendRiskyEmails",
                        "skipSegEmails",
                        "autoPauseOnHighBounceRate",
                        "continueOnSoftBounce",
                        "softBounceMonitoringDays",
                        "highBounceRateThreshold",
                        "fallbackSendingForRemovedInboxes",
                        "fallbackSendingForErroredInboxes",
                        "dailyCapPerRecipientDomain",
                        "waterfallEnabled",
                        "waterfallPassGapDays",
                        "waterfallResponseFreeze",
                        "quotedChainAttribution",
                        "ignoreInboxSendLimits",
                        "ccEmails",
                        "initialDelayMinutes"
                      ]
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|inboxIds|tagIds|settings)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "inboxIds",
                    "tagIds",
                    "settings"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 4
              }
            ]
          }
        },
        "required": [
          "action",
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|campaignId|create)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "campaignId",
            "create"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "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$"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "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"
                      },
                      "name": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "active",
                          "paused",
                          "archived",
                          "completed"
                        ]
                      },
                      "pauseContext": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "manual"
                                        ]
                                      }
                                    ]
                                  },
                                  "pausedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "source": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "user"
                                        ]
                                      }
                                    ]
                                  },
                                  "evidence": {
                                    "type": "null"
                                  }
                                },
                                "required": [
                                  "reason",
                                  "pausedAt",
                                  "source",
                                  "evidence"
                                ],
                                "patternProperties": {
                                  "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "reason",
                                    "pausedAt",
                                    "source",
                                    "evidence"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "bounce_threshold"
                                        ]
                                      }
                                    ]
                                  },
                                  "pausedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "source": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "system"
                                        ]
                                      }
                                    ]
                                  },
                                  "evidence": {
                                    "type": "object",
                                    "properties": {
                                      "thresholdPercent": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "bounceRatePercent": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "sentCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "bouncedCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "recipientBounceCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "senderBounceCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "unclassifiedBounceCount": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "scope": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "campaign_lifetime"
                                            ]
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "thresholdPercent",
                                      "bounceRatePercent",
                                      "sentCount",
                                      "bouncedCount",
                                      "recipientBounceCount",
                                      "senderBounceCount",
                                      "unclassifiedBounceCount",
                                      "scope"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "thresholdPercent",
                                        "bounceRatePercent",
                                        "sentCount",
                                        "bouncedCount",
                                        "recipientBounceCount",
                                        "senderBounceCount",
                                        "unclassifiedBounceCount",
                                        "scope"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "reason",
                                  "pausedAt",
                                  "source",
                                  "evidence"
                                ],
                                "patternProperties": {
                                  "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "reason",
                                    "pausedAt",
                                    "source",
                                    "evidence"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "unknown"
                                        ]
                                      }
                                    ]
                                  },
                                  "pausedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "source": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "unknown"
                                        ]
                                      }
                                    ]
                                  },
                                  "evidence": {
                                    "type": "null"
                                  }
                                },
                                "required": [
                                  "reason",
                                  "pausedAt",
                                  "source",
                                  "evidence"
                                ],
                                "patternProperties": {
                                  "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "reason",
                                    "pausedAt",
                                    "source",
                                    "evidence"
                                  ]
                                }
                              }
                            ],
                            "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "campaign",
                          "subsequence",
                          "sequence"
                        ]
                      },
                      "folderId": {
                        "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"
                          }
                        ]
                      },
                      "parentCampaignId": {
                        "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"
                          }
                        ]
                      },
                      "scheduleProfileId": {
                        "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"
                          }
                        ]
                      },
                      "tags": {
                        "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": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "color": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "color"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "color"
                            ]
                          }
                        }
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "workspaceId",
                      "name",
                      "status",
                      "kind",
                      "folderId",
                      "parentCampaignId",
                      "scheduleProfileId",
                      "tags",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|workspaceId|name|status|pauseContext|kind|folderId|parentCampaignId|scheduleProfileId|tags|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "workspaceId",
                        "name",
                        "status",
                        "pauseContext",
                        "kind",
                        "folderId",
                        "parentCampaignId",
                        "scheduleProfileId",
                        "tags",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "campaign": {
                        "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"
                          },
                          "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"
                          },
                          "name": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "archived",
                              "completed"
                            ]
                          },
                          "pauseContext": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "manual"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "user"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "null"
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "bounce_threshold"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "system"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "object",
                                        "properties": {
                                          "thresholdPercent": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "bounceRatePercent": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "sentCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "bouncedCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "recipientBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "senderBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "unclassifiedBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "scope": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "campaign_lifetime"
                                                ]
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "thresholdPercent",
                                          "bounceRatePercent",
                                          "sentCount",
                                          "bouncedCount",
                                          "recipientBounceCount",
                                          "senderBounceCount",
                                          "unclassifiedBounceCount",
                                          "scope"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "thresholdPercent",
                                            "bounceRatePercent",
                                            "sentCount",
                                            "bouncedCount",
                                            "recipientBounceCount",
                                            "senderBounceCount",
                                            "unclassifiedBounceCount",
                                            "scope"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "unknown"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "unknown"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "null"
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  }
                                ],
                                "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "campaign",
                              "subsequence",
                              "sequence"
                            ]
                          },
                          "folderId": {
                            "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"
                              }
                            ]
                          },
                          "parentCampaignId": {
                            "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"
                              }
                            ]
                          },
                          "scheduleProfileId": {
                            "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"
                              }
                            ]
                          },
                          "tags": {
                            "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": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "color": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "color"
                                ]
                              }
                            }
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "workspaceId",
                          "name",
                          "status",
                          "kind",
                          "folderId",
                          "parentCampaignId",
                          "scheduleProfileId",
                          "tags",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|workspaceId|name|status|pauseContext|kind|folderId|parentCampaignId|scheduleProfileId|tags|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "workspaceId",
                            "name",
                            "status",
                            "pauseContext",
                            "kind",
                            "folderId",
                            "parentCampaignId",
                            "scheduleProfileId",
                            "tags",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      "settings": {
                        "type": "object",
                        "properties": {
                          "newLeadPriority": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "espMatchMode": {
                            "type": "string",
                            "enum": [
                              "off",
                              "match_then_spill",
                              "match_only"
                            ]
                          },
                          "opportunityValue": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "stopSendingOnReply": {
                            "type": "boolean"
                          },
                          "continueSendingOnAutomaticReply": {
                            "type": "boolean"
                          },
                          "defaultDelayDaysForAutomaticReply": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "stopSendingOnSameDomainReply": {
                            "type": "boolean"
                          },
                          "openRateTracking": {
                            "type": "boolean"
                          },
                          "unsubscribeLink": {
                            "type": "boolean"
                          },
                          "addUnsubscribedLeadsToBlockList": {
                            "type": "boolean"
                          },
                          "sendAsPlainText": {
                            "type": "boolean"
                          },
                          "sendRiskyEmails": {
                            "type": "boolean"
                          },
                          "skipSegEmails": {
                            "type": "boolean"
                          },
                          "autoPauseOnHighBounceRate": {
                            "type": "boolean"
                          },
                          "continueOnSoftBounce": {
                            "type": "boolean"
                          },
                          "softBounceMonitoringDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 30
                          },
                          "highBounceRateThreshold": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "fallbackSendingForRemovedInboxes": {
                            "type": "boolean"
                          },
                          "fallbackSendingForErroredInboxes": {
                            "type": "boolean"
                          },
                          "dailyCapPerRecipientDomain": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "waterfallEnabled": {
                            "type": "boolean"
                          },
                          "waterfallPassGapDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 90
                          },
                          "waterfallResponseFreeze": {
                            "type": "string",
                            "enum": [
                              "freeze_ladder",
                              "contact_only"
                            ]
                          },
                          "quotedChainAttribution": {
                            "type": "string",
                            "enum": [
                              "current_sender",
                              "original"
                            ]
                          },
                          "ignoreInboxSendLimits": {
                            "type": "boolean"
                          },
                          "ccEmails": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "maxItems": 5
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "initialDelayMinutes": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 43200
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "newLeadPriority",
                          "espMatchMode",
                          "opportunityValue",
                          "stopSendingOnReply",
                          "continueSendingOnAutomaticReply",
                          "defaultDelayDaysForAutomaticReply",
                          "stopSendingOnSameDomainReply",
                          "openRateTracking",
                          "unsubscribeLink",
                          "addUnsubscribedLeadsToBlockList",
                          "sendAsPlainText",
                          "sendRiskyEmails",
                          "skipSegEmails",
                          "autoPauseOnHighBounceRate",
                          "continueOnSoftBounce",
                          "softBounceMonitoringDays",
                          "highBounceRateThreshold",
                          "fallbackSendingForRemovedInboxes",
                          "fallbackSendingForErroredInboxes",
                          "dailyCapPerRecipientDomain",
                          "waterfallEnabled",
                          "waterfallPassGapDays",
                          "waterfallResponseFreeze",
                          "quotedChainAttribution",
                          "ignoreInboxSendLimits",
                          "ccEmails",
                          "initialDelayMinutes"
                        ],
                        "patternProperties": {
                          "^(?!(?:newLeadPriority|espMatchMode|opportunityValue|stopSendingOnReply|continueSendingOnAutomaticReply|defaultDelayDaysForAutomaticReply|stopSendingOnSameDomainReply|openRateTracking|unsubscribeLink|addUnsubscribedLeadsToBlockList|sendAsPlainText|sendRiskyEmails|skipSegEmails|autoPauseOnHighBounceRate|continueOnSoftBounce|softBounceMonitoringDays|highBounceRateThreshold|fallbackSendingForRemovedInboxes|fallbackSendingForErroredInboxes|dailyCapPerRecipientDomain|waterfallEnabled|waterfallPassGapDays|waterfallResponseFreeze|quotedChainAttribution|ignoreInboxSendLimits|ccEmails|initialDelayMinutes)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "newLeadPriority",
                            "espMatchMode",
                            "opportunityValue",
                            "stopSendingOnReply",
                            "continueSendingOnAutomaticReply",
                            "defaultDelayDaysForAutomaticReply",
                            "stopSendingOnSameDomainReply",
                            "openRateTracking",
                            "unsubscribeLink",
                            "addUnsubscribedLeadsToBlockList",
                            "sendAsPlainText",
                            "sendRiskyEmails",
                            "skipSegEmails",
                            "autoPauseOnHighBounceRate",
                            "continueOnSoftBounce",
                            "softBounceMonitoringDays",
                            "highBounceRateThreshold",
                            "fallbackSendingForRemovedInboxes",
                            "fallbackSendingForErroredInboxes",
                            "dailyCapPerRecipientDomain",
                            "waterfallEnabled",
                            "waterfallPassGapDays",
                            "waterfallResponseFreeze",
                            "quotedChainAttribution",
                            "ignoreInboxSendLimits",
                            "ccEmails",
                            "initialDelayMinutes"
                          ]
                        }
                      }
                    },
                    "required": [
                      "campaign",
                      "settings"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaign|settings)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaign",
                        "settings"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "campaignId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "deleted": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "campaignId",
                      "deleted"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaignId|deleted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaignId",
                        "deleted"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "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"
                          },
                          "name": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "archived",
                              "completed"
                            ]
                          },
                          "pauseContext": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "manual"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "user"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "null"
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "bounce_threshold"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "system"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "object",
                                        "properties": {
                                          "thresholdPercent": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "bounceRatePercent": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "sentCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "bouncedCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "recipientBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "senderBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "unclassifiedBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "scope": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "campaign_lifetime"
                                                ]
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "thresholdPercent",
                                          "bounceRatePercent",
                                          "sentCount",
                                          "bouncedCount",
                                          "recipientBounceCount",
                                          "senderBounceCount",
                                          "unclassifiedBounceCount",
                                          "scope"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "thresholdPercent",
                                            "bounceRatePercent",
                                            "sentCount",
                                            "bouncedCount",
                                            "recipientBounceCount",
                                            "senderBounceCount",
                                            "unclassifiedBounceCount",
                                            "scope"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "unknown"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "unknown"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "null"
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  }
                                ],
                                "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "campaign",
                              "subsequence",
                              "sequence"
                            ]
                          },
                          "folderId": {
                            "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"
                              }
                            ]
                          },
                          "parentCampaignId": {
                            "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"
                              }
                            ]
                          },
                          "scheduleProfileId": {
                            "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"
                              }
                            ]
                          },
                          "tags": {
                            "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": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "color": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "color"
                                ]
                              }
                            }
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "workspaceId",
                          "name",
                          "status",
                          "kind",
                          "folderId",
                          "parentCampaignId",
                          "scheduleProfileId",
                          "tags",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|workspaceId|name|status|pauseContext|kind|folderId|parentCampaignId|scheduleProfileId|tags|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "workspaceId",
                            "name",
                            "status",
                            "pauseContext",
                            "kind",
                            "folderId",
                            "parentCampaignId",
                            "scheduleProfileId",
                            "tags",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "campaign": {
                            "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"
                              },
                              "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"
                              },
                              "name": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "draft",
                                  "active",
                                  "paused",
                                  "archived",
                                  "completed"
                                ]
                              },
                              "pauseContext": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "reason": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "manual"
                                                ]
                                              }
                                            ]
                                          },
                                          "pausedAt": {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          "source": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "user"
                                                ]
                                              }
                                            ]
                                          },
                                          "evidence": {
                                            "type": "null"
                                          }
                                        },
                                        "required": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ]
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "reason": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "bounce_threshold"
                                                ]
                                              }
                                            ]
                                          },
                                          "pausedAt": {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          "source": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "system"
                                                ]
                                              }
                                            ]
                                          },
                                          "evidence": {
                                            "type": "object",
                                            "properties": {
                                              "thresholdPercent": {
                                                "anyOf": [
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "string",
                                                    "enum": [
                                                      "Infinity",
                                                      "-Infinity",
                                                      "NaN"
                                                    ]
                                                  }
                                                ]
                                              },
                                              "bounceRatePercent": {
                                                "anyOf": [
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "string",
                                                    "enum": [
                                                      "Infinity",
                                                      "-Infinity",
                                                      "NaN"
                                                    ]
                                                  }
                                                ]
                                              },
                                              "sentCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "bouncedCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "recipientBounceCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "senderBounceCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "unclassifiedBounceCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "scope": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "enum": [
                                                      "campaign_lifetime"
                                                    ]
                                                  }
                                                ]
                                              }
                                            },
                                            "required": [
                                              "thresholdPercent",
                                              "bounceRatePercent",
                                              "sentCount",
                                              "bouncedCount",
                                              "recipientBounceCount",
                                              "senderBounceCount",
                                              "unclassifiedBounceCount",
                                              "scope"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "thresholdPercent",
                                                "bounceRatePercent",
                                                "sentCount",
                                                "bouncedCount",
                                                "recipientBounceCount",
                                                "senderBounceCount",
                                                "unclassifiedBounceCount",
                                                "scope"
                                              ]
                                            }
                                          }
                                        },
                                        "required": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ]
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "reason": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "unknown"
                                                ]
                                              }
                                            ]
                                          },
                                          "pausedAt": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/$defs/UtcDateTimeEncoded"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "source": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "unknown"
                                                ]
                                              }
                                            ]
                                          },
                                          "evidence": {
                                            "type": "null"
                                          }
                                        },
                                        "required": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ]
                                        }
                                      }
                                    ],
                                    "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "campaign",
                                  "subsequence",
                                  "sequence"
                                ]
                              },
                              "folderId": {
                                "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"
                                  }
                                ]
                              },
                              "parentCampaignId": {
                                "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"
                                  }
                                ]
                              },
                              "scheduleProfileId": {
                                "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"
                                  }
                                ]
                              },
                              "tags": {
                                "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": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "color": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "name",
                                    "color"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "name",
                                      "color"
                                    ]
                                  }
                                }
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "id",
                              "workspaceId",
                              "name",
                              "status",
                              "kind",
                              "folderId",
                              "parentCampaignId",
                              "scheduleProfileId",
                              "tags",
                              "createdAt",
                              "updatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|workspaceId|name|status|pauseContext|kind|folderId|parentCampaignId|scheduleProfileId|tags|createdAt|updatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "workspaceId",
                                "name",
                                "status",
                                "pauseContext",
                                "kind",
                                "folderId",
                                "parentCampaignId",
                                "scheduleProfileId",
                                "tags",
                                "createdAt",
                                "updatedAt"
                              ]
                            }
                          },
                          "settings": {
                            "type": "object",
                            "properties": {
                              "newLeadPriority": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "espMatchMode": {
                                "type": "string",
                                "enum": [
                                  "off",
                                  "match_then_spill",
                                  "match_only"
                                ]
                              },
                              "opportunityValue": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "stopSendingOnReply": {
                                "type": "boolean"
                              },
                              "continueSendingOnAutomaticReply": {
                                "type": "boolean"
                              },
                              "defaultDelayDaysForAutomaticReply": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "stopSendingOnSameDomainReply": {
                                "type": "boolean"
                              },
                              "openRateTracking": {
                                "type": "boolean"
                              },
                              "unsubscribeLink": {
                                "type": "boolean"
                              },
                              "addUnsubscribedLeadsToBlockList": {
                                "type": "boolean"
                              },
                              "sendAsPlainText": {
                                "type": "boolean"
                              },
                              "sendRiskyEmails": {
                                "type": "boolean"
                              },
                              "skipSegEmails": {
                                "type": "boolean"
                              },
                              "autoPauseOnHighBounceRate": {
                                "type": "boolean"
                              },
                              "continueOnSoftBounce": {
                                "type": "boolean"
                              },
                              "softBounceMonitoringDays": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 30
                              },
                              "highBounceRateThreshold": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "fallbackSendingForRemovedInboxes": {
                                "type": "boolean"
                              },
                              "fallbackSendingForErroredInboxes": {
                                "type": "boolean"
                              },
                              "dailyCapPerRecipientDomain": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "waterfallEnabled": {
                                "type": "boolean"
                              },
                              "waterfallPassGapDays": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 90
                              },
                              "waterfallResponseFreeze": {
                                "type": "string",
                                "enum": [
                                  "freeze_ladder",
                                  "contact_only"
                                ]
                              },
                              "quotedChainAttribution": {
                                "type": "string",
                                "enum": [
                                  "current_sender",
                                  "original"
                                ]
                              },
                              "ignoreInboxSendLimits": {
                                "type": "boolean"
                              },
                              "ccEmails": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    "maxItems": 5
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "initialDelayMinutes": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 43200
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "newLeadPriority",
                              "espMatchMode",
                              "opportunityValue",
                              "stopSendingOnReply",
                              "continueSendingOnAutomaticReply",
                              "defaultDelayDaysForAutomaticReply",
                              "stopSendingOnSameDomainReply",
                              "openRateTracking",
                              "unsubscribeLink",
                              "addUnsubscribedLeadsToBlockList",
                              "sendAsPlainText",
                              "sendRiskyEmails",
                              "skipSegEmails",
                              "autoPauseOnHighBounceRate",
                              "continueOnSoftBounce",
                              "softBounceMonitoringDays",
                              "highBounceRateThreshold",
                              "fallbackSendingForRemovedInboxes",
                              "fallbackSendingForErroredInboxes",
                              "dailyCapPerRecipientDomain",
                              "waterfallEnabled",
                              "waterfallPassGapDays",
                              "waterfallResponseFreeze",
                              "quotedChainAttribution",
                              "ignoreInboxSendLimits",
                              "ccEmails",
                              "initialDelayMinutes"
                            ],
                            "patternProperties": {
                              "^(?!(?:newLeadPriority|espMatchMode|opportunityValue|stopSendingOnReply|continueSendingOnAutomaticReply|defaultDelayDaysForAutomaticReply|stopSendingOnSameDomainReply|openRateTracking|unsubscribeLink|addUnsubscribedLeadsToBlockList|sendAsPlainText|sendRiskyEmails|skipSegEmails|autoPauseOnHighBounceRate|continueOnSoftBounce|softBounceMonitoringDays|highBounceRateThreshold|fallbackSendingForRemovedInboxes|fallbackSendingForErroredInboxes|dailyCapPerRecipientDomain|waterfallEnabled|waterfallPassGapDays|waterfallResponseFreeze|quotedChainAttribution|ignoreInboxSendLimits|ccEmails|initialDelayMinutes)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "newLeadPriority",
                                "espMatchMode",
                                "opportunityValue",
                                "stopSendingOnReply",
                                "continueSendingOnAutomaticReply",
                                "defaultDelayDaysForAutomaticReply",
                                "stopSendingOnSameDomainReply",
                                "openRateTracking",
                                "unsubscribeLink",
                                "addUnsubscribedLeadsToBlockList",
                                "sendAsPlainText",
                                "sendRiskyEmails",
                                "skipSegEmails",
                                "autoPauseOnHighBounceRate",
                                "continueOnSoftBounce",
                                "softBounceMonitoringDays",
                                "highBounceRateThreshold",
                                "fallbackSendingForRemovedInboxes",
                                "fallbackSendingForErroredInboxes",
                                "dailyCapPerRecipientDomain",
                                "waterfallEnabled",
                                "waterfallPassGapDays",
                                "waterfallResponseFreeze",
                                "quotedChainAttribution",
                                "ignoreInboxSendLimits",
                                "ccEmails",
                                "initialDelayMinutes"
                              ]
                            }
                          }
                        },
                        "required": [
                          "campaign",
                          "settings"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaign|settings)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaign",
                            "settings"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "deleted": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "campaignId",
                          "deleted"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|deleted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "deleted"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_campaigns"
      },
      "scopes": [
        "campaign:create",
        "campaign:update",
        "campaign:delete"
      ],
      "bundles": [
        "campaign_authoring"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaigns.create",
        "campaigns.duplicate",
        "campaigns.update",
        "campaigns.updateSettings",
        "campaigns.delete"
      ],
      "invocations": [
        {
          "operationId": "campaigns.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.duplicate",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/duplicate",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.updateSettings",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/settings",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "create",
              "duplicate",
              "update",
              "update_settings",
              "delete"
            ]
          },
          "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "create": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "folderId": {
                    "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"
                      }
                    ]
                  },
                  "parentCampaignId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|folderId|parentCampaignId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "folderId",
                    "parentCampaignId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "patternProperties": {
                  "^(?!(?:name)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "name"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "draft",
                      "active",
                      "paused",
                      "archived",
                      "completed"
                    ]
                  },
                  "folderId": {
                    "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"
                      }
                    ]
                  },
                  "newLeadPriority": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "espMatchMode": {
                    "type": "string",
                    "enum": [
                      "off",
                      "match_then_spill",
                      "match_only"
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|status|folderId|newLeadPriority|espMatchMode)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "status",
                    "folderId",
                    "newLeadPriority",
                    "espMatchMode"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 5
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 500
                  },
                  "tagIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 50
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "newLeadPriority": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "espMatchMode": {
                        "type": "string",
                        "enum": [
                          "off",
                          "match_then_spill",
                          "match_only"
                        ]
                      },
                      "opportunityValue": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "stopSendingOnReply": {
                        "type": "boolean"
                      },
                      "continueSendingOnAutomaticReply": {
                        "type": "boolean"
                      },
                      "defaultDelayDaysForAutomaticReply": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "stopSendingOnSameDomainReply": {
                        "type": "boolean"
                      },
                      "openRateTracking": {
                        "type": "boolean"
                      },
                      "unsubscribeLink": {
                        "type": "boolean"
                      },
                      "addUnsubscribedLeadsToBlockList": {
                        "type": "boolean"
                      },
                      "sendAsPlainText": {
                        "type": "boolean"
                      },
                      "sendRiskyEmails": {
                        "type": "boolean"
                      },
                      "skipSegEmails": {
                        "type": "boolean"
                      },
                      "autoPauseOnHighBounceRate": {
                        "type": "boolean"
                      },
                      "continueOnSoftBounce": {
                        "type": "boolean"
                      },
                      "softBounceMonitoringDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 30
                      },
                      "highBounceRateThreshold": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "fallbackSendingForRemovedInboxes": {
                        "type": "boolean"
                      },
                      "fallbackSendingForErroredInboxes": {
                        "type": "boolean"
                      },
                      "dailyCapPerRecipientDomain": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "waterfallEnabled": {
                        "type": "boolean"
                      },
                      "waterfallPassGapDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 90
                      },
                      "waterfallResponseFreeze": {
                        "type": "string",
                        "enum": [
                          "freeze_ladder",
                          "contact_only"
                        ]
                      },
                      "quotedChainAttribution": {
                        "type": "string",
                        "enum": [
                          "current_sender",
                          "original"
                        ]
                      },
                      "ignoreInboxSendLimits": {
                        "type": "boolean"
                      },
                      "ccEmails": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "maxItems": 5
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "initialDelayMinutes": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 43200
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:newLeadPriority|espMatchMode|opportunityValue|stopSendingOnReply|continueSendingOnAutomaticReply|defaultDelayDaysForAutomaticReply|stopSendingOnSameDomainReply|openRateTracking|unsubscribeLink|addUnsubscribedLeadsToBlockList|sendAsPlainText|sendRiskyEmails|skipSegEmails|autoPauseOnHighBounceRate|continueOnSoftBounce|softBounceMonitoringDays|highBounceRateThreshold|fallbackSendingForRemovedInboxes|fallbackSendingForErroredInboxes|dailyCapPerRecipientDomain|waterfallEnabled|waterfallPassGapDays|waterfallResponseFreeze|quotedChainAttribution|ignoreInboxSendLimits|ccEmails|initialDelayMinutes)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "newLeadPriority",
                        "espMatchMode",
                        "opportunityValue",
                        "stopSendingOnReply",
                        "continueSendingOnAutomaticReply",
                        "defaultDelayDaysForAutomaticReply",
                        "stopSendingOnSameDomainReply",
                        "openRateTracking",
                        "unsubscribeLink",
                        "addUnsubscribedLeadsToBlockList",
                        "sendAsPlainText",
                        "sendRiskyEmails",
                        "skipSegEmails",
                        "autoPauseOnHighBounceRate",
                        "continueOnSoftBounce",
                        "softBounceMonitoringDays",
                        "highBounceRateThreshold",
                        "fallbackSendingForRemovedInboxes",
                        "fallbackSendingForErroredInboxes",
                        "dailyCapPerRecipientDomain",
                        "waterfallEnabled",
                        "waterfallPassGapDays",
                        "waterfallResponseFreeze",
                        "quotedChainAttribution",
                        "ignoreInboxSendLimits",
                        "ccEmails",
                        "initialDelayMinutes"
                      ]
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|inboxIds|tagIds|settings)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "inboxIds",
                    "tagIds",
                    "settings"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 4
              }
            ]
          }
        },
        "required": [
          "action",
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|campaignId|create)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "campaignId",
            "create"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "manage_custom_fields",
      "description": "List, create, update, or delete the custom lead fields a workspace collects.\n\nUse to inspect or extend the workspace's lead schema before imports or enrichment rely on a field.\n\nReserved lead property names are rejected; deleting a field drops its stored values.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|search|cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "search",
                "cursor",
                "limit"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/CustomFieldName"
                  },
                  "fieldType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "date",
                      "boolean",
                      "url"
                    ]
                  },
                  "defaultValue": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|fieldType|defaultValue)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "fieldType",
                    "defaultValue"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|input)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "input"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "customFieldId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/CustomFieldName"
                  },
                  "fieldType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "date",
                      "boolean",
                      "url"
                    ]
                  },
                  "defaultValue": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|fieldType|defaultValue)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "fieldType",
                    "defaultValue"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 3
              }
            },
            "required": [
              "workspaceId",
              "action",
              "customFieldId",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|customFieldId|input)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "customFieldId",
                "input"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "customFieldId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "required": [
              "workspaceId",
              "action",
              "customFieldId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|customFieldId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "customFieldId"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "CustomFieldName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z][a-z0-9_]*$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "CustomFieldName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z][a-z0-9_]*$"
          },
          "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
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "name": {
                              "$ref": "#/$defs/CustomFieldName"
                            },
                            "fieldType": {
                              "type": "string",
                              "enum": [
                                "text",
                                "number",
                                "date",
                                "boolean",
                                "url"
                              ]
                            },
                            "defaultValue": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "fieldType",
                            "defaultValue",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|fieldType|defaultValue|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "fieldType",
                              "defaultValue",
                              "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",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "name": {
                        "$ref": "#/$defs/CustomFieldName"
                      },
                      "fieldType": {
                        "type": "string",
                        "enum": [
                          "text",
                          "number",
                          "date",
                          "boolean",
                          "url"
                        ]
                      },
                      "defaultValue": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "fieldType",
                      "defaultValue",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|fieldType|defaultValue|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "fieldType",
                        "defaultValue",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "deleted": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "deleted"
                    ],
                    "patternProperties": {
                      "^(?!(?:deleted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "deleted"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "name": {
                                  "$ref": "#/$defs/CustomFieldName"
                                },
                                "fieldType": {
                                  "type": "string",
                                  "enum": [
                                    "text",
                                    "number",
                                    "date",
                                    "boolean",
                                    "url"
                                  ]
                                },
                                "defaultValue": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 1000
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "fieldType",
                                "defaultValue",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|fieldType|defaultValue|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "fieldType",
                                  "defaultValue",
                                  "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",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "name": {
                            "$ref": "#/$defs/CustomFieldName"
                          },
                          "fieldType": {
                            "type": "string",
                            "enum": [
                              "text",
                              "number",
                              "date",
                              "boolean",
                              "url"
                            ]
                          },
                          "defaultValue": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1000
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "fieldType",
                          "defaultValue",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|fieldType|defaultValue|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "fieldType",
                            "defaultValue",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "deleted": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "deleted"
                        ],
                        "patternProperties": {
                          "^(?!(?:deleted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "deleted"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_custom_fields"
      },
      "scopes": [
        "workspace:read",
        "workspace:update"
      ],
      "bundles": [
        "workspace_settings"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "customFields.list",
        "customFields.create",
        "customFields.update",
        "customFields.delete"
      ],
      "invocations": [
        {
          "operationId": "customFields.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/settings/custom-fields",
          "workspaceScoped": false
        },
        {
          "operationId": "customFields.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/settings/custom-fields",
          "workspaceScoped": false
        },
        {
          "operationId": "customFields.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/settings/custom-fields/:customFieldId",
          "workspaceScoped": false
        },
        {
          "operationId": "customFields.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/settings/custom-fields/:customFieldId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|search|cursor|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "search",
                    "cursor",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/CustomFieldName"
                  },
                  "fieldType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "date",
                      "boolean",
                      "url"
                    ]
                  },
                  "defaultValue": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|fieldType|defaultValue)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "fieldType",
                    "defaultValue"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|input)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "input"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "customFieldId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/CustomFieldName"
                  },
                  "fieldType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "date",
                      "boolean",
                      "url"
                    ]
                  },
                  "defaultValue": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|fieldType|defaultValue)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "fieldType",
                    "defaultValue"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 3
              }
            },
            "required": [
              "workspaceId",
              "action",
              "customFieldId",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|customFieldId|input)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "customFieldId",
                    "input"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "customFieldId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "required": [
              "workspaceId",
              "action",
              "customFieldId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|customFieldId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "customFieldId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "CustomFieldName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z][a-z0-9_]*$"
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "manage_dialer_billing",
      "description": "Read the dialer add-on's plan, seats, and metered minutes, and start a hosted checkout when more are needed.\n\nUse to report what the workspace is paying for and how much it has used, and to hand a human the checkout link when seats run out.\n\nThe payment itself is completed by a person on the provider's hosted page; no card details pass through this API. Do not use it to cancel — that is its own capability.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "status"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "usage"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "checkout"
                    ]
                  },
                  "checkout": {
                    "type": "object",
                    "properties": {
                      "plan": {
                        "type": "string",
                        "enum": [
                          "dialer_5",
                          "dialer_10"
                        ]
                      },
                      "seatCount": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 500
                      },
                      "successUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "cancelUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      }
                    },
                    "required": [
                      "plan",
                      "seatCount",
                      "successUrl",
                      "cancelUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:plan|seatCount|successUrl|cancelUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "plan",
                        "seatCount",
                        "successUrl",
                        "cancelUrl"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "checkout"
                ],
                "patternProperties": {
                  "^(?!(?:kind|checkout)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "checkout"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "active": {
                        "type": "boolean"
                      },
                      "cancelAtPeriodEnd": {
                        "type": "boolean"
                      },
                      "plan": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "dialer_5",
                              "dialer_10"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "purchasedSeats": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "assignedSeats": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "numbersPerSeat": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "active",
                      "cancelAtPeriodEnd",
                      "plan",
                      "purchasedSeats",
                      "assignedSeats",
                      "numbersPerSeat"
                    ],
                    "patternProperties": {
                      "^(?!(?:active|cancelAtPeriodEnd|plan|purchasedSeats|assignedSeats|numbersPerSeat)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "active",
                        "cancelAtPeriodEnd",
                        "plan",
                        "purchasedSeats",
                        "assignedSeats",
                        "numbersPerSeat"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "minutesUsed": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "periodStart": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "periodEnd": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "minutesUsed",
                      "periodStart",
                      "periodEnd"
                    ],
                    "patternProperties": {
                      "^(?!(?:minutesUsed|periodStart|periodEnd)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "minutesUsed",
                        "periodStart",
                        "periodEnd"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "checkoutUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      }
                    },
                    "required": [
                      "checkoutUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:checkoutUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "checkoutUrl"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "active": {
                            "type": "boolean"
                          },
                          "cancelAtPeriodEnd": {
                            "type": "boolean"
                          },
                          "plan": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dialer_5",
                                  "dialer_10"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "purchasedSeats": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "assignedSeats": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "numbersPerSeat": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "active",
                          "cancelAtPeriodEnd",
                          "plan",
                          "purchasedSeats",
                          "assignedSeats",
                          "numbersPerSeat"
                        ],
                        "patternProperties": {
                          "^(?!(?:active|cancelAtPeriodEnd|plan|purchasedSeats|assignedSeats|numbersPerSeat)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "active",
                            "cancelAtPeriodEnd",
                            "plan",
                            "purchasedSeats",
                            "assignedSeats",
                            "numbersPerSeat"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "minutesUsed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "periodStart": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "periodEnd": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "minutesUsed",
                          "periodStart",
                          "periodEnd"
                        ],
                        "patternProperties": {
                          "^(?!(?:minutesUsed|periodStart|periodEnd)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "minutesUsed",
                            "periodStart",
                            "periodEnd"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "checkoutUrl": {
                            "$ref": "#/$defs/HttpUrl"
                          }
                        },
                        "required": [
                          "checkoutUrl"
                        ],
                        "patternProperties": {
                          "^(?!(?:checkoutUrl)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "checkoutUrl"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "checkoutUrl",
        "statusOperationId": "dialerBilling.status"
      },
      "scopes": [
        "dialer:manage_billing"
      ],
      "bundles": [
        "dialer_operations"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerBilling.status",
        "dialerBilling.usage",
        "dialerBilling.checkout"
      ],
      "invocations": [
        {
          "operationId": "dialerBilling.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/billing/status",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerBilling.usage",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/billing/usage",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerBilling.checkout",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/billing/checkout",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "status"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "usage"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "checkout"
                    ]
                  },
                  "checkout": {
                    "type": "object",
                    "properties": {
                      "plan": {
                        "type": "string",
                        "enum": [
                          "dialer_5",
                          "dialer_10"
                        ]
                      },
                      "seatCount": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 500
                      },
                      "successUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "cancelUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      }
                    },
                    "required": [
                      "plan",
                      "seatCount",
                      "successUrl",
                      "cancelUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:plan|seatCount|successUrl|cancelUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "plan",
                        "seatCount",
                        "successUrl",
                        "cancelUrl"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "checkout"
                ],
                "patternProperties": {
                  "^(?!(?:kind|checkout)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "checkout"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "manage_dialer_numbers",
      "description": "Inspect the workspace's dialing numbers, search the carrier for purchasable ones, assign a number to a rep, change its health or forwarding, and give one back.\n\nUse to keep the number fleet correct: park a flagged number, move a DID to the rep who needs it, or retire one nobody uses.\n\nReleasing is permanent — the carrier may reissue the number to someone else, and any campaign or forwarding that depended on it stops. Reassigning a number away from a rep mid-session removes it from their next dial.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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",
              "get",
              "search_available",
              "provisioning_options",
              "assign",
              "update",
              "release"
            ]
          },
          "numberId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "list": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "assignedUserId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "warming",
                  "inactive",
                  "error",
                  "alert",
                  "flagged",
                  "retired"
                ]
              },
              "dialableOnly": {
                "type": "string",
                "enum": [
                  "true",
                  "false"
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|assignedUserId|status|dialableOnly)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "assignedUserId",
                "status",
                "dialableOnly"
              ]
            }
          },
          "search": {
            "type": "object",
            "properties": {
              "countryCode": {
                "type": "string",
                "enum": [
                  "US",
                  "CA",
                  "GB",
                  "AU",
                  "NZ"
                ]
              },
              "search": {
                "type": "string",
                "maxLength": 32
              },
              "areaCode": {
                "$ref": "#/$defs/AreaCode"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20
              }
            },
            "patternProperties": {
              "^(?!(?:countryCode|search|areaCode|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "countryCode",
                "search",
                "areaCode",
                "limit"
              ]
            }
          },
          "assign": {
            "type": "object",
            "properties": {
              "assignedUserId": {
                "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"
                  }
                ]
              },
              "confirmedSessionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "assignedUserId"
            ],
            "patternProperties": {
              "^(?!(?:assignedUserId|confirmedSessionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "assignedUserId",
                "confirmedSessionId"
              ]
            }
          },
          "update": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "warming",
                  "inactive",
                  "error",
                  "alert",
                  "flagged",
                  "retired"
                ]
              },
              "dailyCallCap": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "inboundEnabled": {
                "type": "boolean"
              },
              "inboundForwardE164": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/E164PhoneNumber"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:status|dailyCallCap|inboundEnabled|inboundForwardE164)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "status",
                "dailyCallCap",
                "inboundEnabled",
                "inboundForwardE164"
              ]
            },
            "minProperties": 1,
            "maxProperties": 4
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|numberId|list|search|assign|update)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "numberId",
            "list",
            "search",
            "assign",
            "update"
          ]
        },
        "$defs": {
          "AreaCode": {
            "type": "string",
            "pattern": "^\\d{3}$"
          },
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "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$"
          }
        },
        "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"
                            },
                            "phoneE164": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "warming",
                                "inactive",
                                "error",
                                "alert",
                                "flagged",
                                "retired"
                              ]
                            },
                            "statusDetail": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "voiceProvider": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "twilio"
                                  ]
                                }
                              ]
                            },
                            "messagingProvider": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "twilio"
                                  ]
                                }
                              ]
                            },
                            "assignedUserId": {
                              "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"
                                }
                              ]
                            },
                            "countryCode": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "US",
                                    "CA",
                                    "GB",
                                    "AU",
                                    "NZ"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "numberType": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "local",
                                    "mobile",
                                    "tollFree"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "areaCode": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "region": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "capabilities": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "voice": {
                                      "type": "boolean"
                                    },
                                    "sms": {
                                      "type": "boolean"
                                    },
                                    "mms": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "voice",
                                    "sms",
                                    "mms"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:voice|sms|mms)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "voice",
                                      "sms",
                                      "mms"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attestation": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "spamScore": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spamCategory": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reputationScore": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "lastReputationCheckAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dailyCallCap": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "nextAvailableCallAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "lastCallAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "provisionedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "retiredAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cooldownUntil": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "inboundEnabled": {
                              "type": "boolean"
                            },
                            "inboundForwardE164": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "phoneE164",
                            "status",
                            "statusDetail",
                            "voiceProvider",
                            "messagingProvider",
                            "assignedUserId",
                            "countryCode",
                            "numberType",
                            "areaCode",
                            "region",
                            "capabilities",
                            "attestation",
                            "spamScore",
                            "spamCategory",
                            "reputationScore",
                            "lastReputationCheckAt",
                            "dailyCallCap",
                            "nextAvailableCallAt",
                            "lastCallAt",
                            "provisionedAt",
                            "retiredAt",
                            "cooldownUntil",
                            "inboundEnabled",
                            "inboundForwardE164",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|phoneE164|status|statusDetail|voiceProvider|messagingProvider|assignedUserId|countryCode|numberType|areaCode|region|capabilities|attestation|spamScore|spamCategory|reputationScore|lastReputationCheckAt|dailyCallCap|nextAvailableCallAt|lastCallAt|provisionedAt|retiredAt|cooldownUntil|inboundEnabled|inboundForwardE164|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "phoneE164",
                              "status",
                              "statusDetail",
                              "voiceProvider",
                              "messagingProvider",
                              "assignedUserId",
                              "countryCode",
                              "numberType",
                              "areaCode",
                              "region",
                              "capabilities",
                              "attestation",
                              "spamScore",
                              "spamCategory",
                              "reputationScore",
                              "lastReputationCheckAt",
                              "dailyCallCap",
                              "nextAvailableCallAt",
                              "lastCallAt",
                              "provisionedAt",
                              "retiredAt",
                              "cooldownUntil",
                              "inboundEnabled",
                              "inboundForwardE164",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalPages": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "currentPage": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "pageSize": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "hasNextPage": {
                            "type": "boolean"
                          },
                          "hasPreviousPage": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "total",
                          "totalPages",
                          "currentPage",
                          "pageSize",
                          "offset",
                          "hasNextPage",
                          "hasPreviousPage"
                        ],
                        "patternProperties": {
                          "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "total",
                            "totalPages",
                            "currentPage",
                            "pageSize",
                            "offset",
                            "hasNextPage",
                            "hasPreviousPage"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "phoneE164": {
                        "$ref": "#/$defs/E164PhoneNumber"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "active",
                          "warming",
                          "inactive",
                          "error",
                          "alert",
                          "flagged",
                          "retired"
                        ]
                      },
                      "statusDetail": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "voiceProvider": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "twilio"
                            ]
                          }
                        ]
                      },
                      "messagingProvider": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "twilio"
                            ]
                          }
                        ]
                      },
                      "assignedUserId": {
                        "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"
                          }
                        ]
                      },
                      "countryCode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "US",
                              "CA",
                              "GB",
                              "AU",
                              "NZ"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "numberType": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "local",
                              "mobile",
                              "tollFree"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "areaCode": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "region": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "capabilities": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "voice": {
                                "type": "boolean"
                              },
                              "sms": {
                                "type": "boolean"
                              },
                              "mms": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "voice",
                              "sms",
                              "mms"
                            ],
                            "patternProperties": {
                              "^(?!(?:voice|sms|mms)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "voice",
                                "sms",
                                "mms"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "attestation": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "spamScore": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "spamCategory": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reputationScore": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "lastReputationCheckAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dailyCallCap": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "nextAvailableCallAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "lastCallAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "provisionedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "retiredAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "cooldownUntil": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "inboundEnabled": {
                        "type": "boolean"
                      },
                      "inboundForwardE164": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "phoneE164",
                      "status",
                      "statusDetail",
                      "voiceProvider",
                      "messagingProvider",
                      "assignedUserId",
                      "countryCode",
                      "numberType",
                      "areaCode",
                      "region",
                      "capabilities",
                      "attestation",
                      "spamScore",
                      "spamCategory",
                      "reputationScore",
                      "lastReputationCheckAt",
                      "dailyCallCap",
                      "nextAvailableCallAt",
                      "lastCallAt",
                      "provisionedAt",
                      "retiredAt",
                      "cooldownUntil",
                      "inboundEnabled",
                      "inboundForwardE164",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|phoneE164|status|statusDetail|voiceProvider|messagingProvider|assignedUserId|countryCode|numberType|areaCode|region|capabilities|attestation|spamScore|spamCategory|reputationScore|lastReputationCheckAt|dailyCallCap|nextAvailableCallAt|lastCallAt|provisionedAt|retiredAt|cooldownUntil|inboundEnabled|inboundForwardE164|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "phoneE164",
                        "status",
                        "statusDetail",
                        "voiceProvider",
                        "messagingProvider",
                        "assignedUserId",
                        "countryCode",
                        "numberType",
                        "areaCode",
                        "region",
                        "capabilities",
                        "attestation",
                        "spamScore",
                        "spamCategory",
                        "reputationScore",
                        "lastReputationCheckAt",
                        "dailyCallCap",
                        "nextAvailableCallAt",
                        "lastCallAt",
                        "provisionedAt",
                        "retiredAt",
                        "cooldownUntil",
                        "inboundEnabled",
                        "inboundForwardE164",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "phoneNumber": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "countryCode": {
                              "type": "string",
                              "enum": [
                                "US",
                                "CA",
                                "GB",
                                "AU",
                                "NZ"
                              ]
                            },
                            "locality": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "administrativeArea": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "features": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/ShortText"
                              }
                            },
                            "addressRequirement": {
                              "type": "string",
                              "enum": [
                                "none",
                                "any",
                                "local",
                                "foreign"
                              ]
                            },
                            "voiceProvider": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "twilio"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "phoneNumber",
                            "countryCode",
                            "locality",
                            "administrativeArea",
                            "features",
                            "addressRequirement",
                            "voiceProvider"
                          ],
                          "patternProperties": {
                            "^(?!(?:phoneNumber|countryCode|locality|administrativeArea|features|addressRequirement|voiceProvider)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "phoneNumber",
                              "countryCode",
                              "locality",
                              "administrativeArea",
                              "features",
                              "addressRequirement",
                              "voiceProvider"
                            ]
                          }
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "countryCode": {
                              "type": "string",
                              "enum": [
                                "US",
                                "CA",
                                "GB",
                                "AU",
                                "NZ"
                              ]
                            },
                            "countryName": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "numberType": {
                              "type": "string",
                              "enum": [
                                "local",
                                "mobile",
                                "tollFree"
                              ]
                            },
                            "numberTypeName": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "messaging": {
                              "type": "string",
                              "enum": [
                                "sms_mms",
                                "sms",
                                "voice_only"
                              ]
                            },
                            "searchKind": {
                              "type": "string",
                              "enum": [
                                "nanp",
                                "international"
                              ]
                            },
                            "requiresRegulatoryBundle": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "countryCode",
                            "countryName",
                            "numberType",
                            "numberTypeName",
                            "messaging",
                            "searchKind",
                            "requiresRegulatoryBundle"
                          ],
                          "patternProperties": {
                            "^(?!(?:countryCode|countryName|numberType|numberTypeName|messaging|searchKind|requiresRegulatoryBundle)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "countryCode",
                              "countryName",
                              "numberType",
                              "numberTypeName",
                              "messaging",
                              "searchKind",
                              "requiresRegulatoryBundle"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "numberId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "phoneE164": {
                        "$ref": "#/$defs/E164PhoneNumber"
                      },
                      "releasedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "numberId",
                      "phoneE164",
                      "releasedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:numberId|phoneE164|releasedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "numberId",
                        "phoneE164",
                        "releasedAt"
                      ]
                    }
                  }
                ]
              },
              {
                "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"
                                },
                                "phoneE164": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "warming",
                                    "inactive",
                                    "error",
                                    "alert",
                                    "flagged",
                                    "retired"
                                  ]
                                },
                                "statusDetail": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "voiceProvider": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "twilio"
                                      ]
                                    }
                                  ]
                                },
                                "messagingProvider": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "twilio"
                                      ]
                                    }
                                  ]
                                },
                                "assignedUserId": {
                                  "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"
                                    }
                                  ]
                                },
                                "countryCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "US",
                                        "CA",
                                        "GB",
                                        "AU",
                                        "NZ"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "numberType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "local",
                                        "mobile",
                                        "tollFree"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "areaCode": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "region": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "capabilities": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "voice": {
                                          "type": "boolean"
                                        },
                                        "sms": {
                                          "type": "boolean"
                                        },
                                        "mms": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "voice",
                                        "sms",
                                        "mms"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:voice|sms|mms)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "voice",
                                          "sms",
                                          "mms"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attestation": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "spamScore": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "spamCategory": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "reputationScore": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "lastReputationCheckAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dailyCallCap": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "nextAvailableCallAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "lastCallAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "provisionedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "retiredAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "cooldownUntil": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "inboundEnabled": {
                                  "type": "boolean"
                                },
                                "inboundForwardE164": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/E164PhoneNumber"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "phoneE164",
                                "status",
                                "statusDetail",
                                "voiceProvider",
                                "messagingProvider",
                                "assignedUserId",
                                "countryCode",
                                "numberType",
                                "areaCode",
                                "region",
                                "capabilities",
                                "attestation",
                                "spamScore",
                                "spamCategory",
                                "reputationScore",
                                "lastReputationCheckAt",
                                "dailyCallCap",
                                "nextAvailableCallAt",
                                "lastCallAt",
                                "provisionedAt",
                                "retiredAt",
                                "cooldownUntil",
                                "inboundEnabled",
                                "inboundForwardE164",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|phoneE164|status|statusDetail|voiceProvider|messagingProvider|assignedUserId|countryCode|numberType|areaCode|region|capabilities|attestation|spamScore|spamCategory|reputationScore|lastReputationCheckAt|dailyCallCap|nextAvailableCallAt|lastCallAt|provisionedAt|retiredAt|cooldownUntil|inboundEnabled|inboundForwardE164|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "phoneE164",
                                  "status",
                                  "statusDetail",
                                  "voiceProvider",
                                  "messagingProvider",
                                  "assignedUserId",
                                  "countryCode",
                                  "numberType",
                                  "areaCode",
                                  "region",
                                  "capabilities",
                                  "attestation",
                                  "spamScore",
                                  "spamCategory",
                                  "reputationScore",
                                  "lastReputationCheckAt",
                                  "dailyCallCap",
                                  "nextAvailableCallAt",
                                  "lastCallAt",
                                  "provisionedAt",
                                  "retiredAt",
                                  "cooldownUntil",
                                  "inboundEnabled",
                                  "inboundForwardE164",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalPages": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "currentPage": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pageSize": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "hasNextPage": {
                                "type": "boolean"
                              },
                              "hasPreviousPage": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "total",
                              "totalPages",
                              "currentPage",
                              "pageSize",
                              "offset",
                              "hasNextPage",
                              "hasPreviousPage"
                            ],
                            "patternProperties": {
                              "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "total",
                                "totalPages",
                                "currentPage",
                                "pageSize",
                                "offset",
                                "hasNextPage",
                                "hasPreviousPage"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "phoneE164": {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "warming",
                              "inactive",
                              "error",
                              "alert",
                              "flagged",
                              "retired"
                            ]
                          },
                          "statusDetail": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "voiceProvider": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "twilio"
                                ]
                              }
                            ]
                          },
                          "messagingProvider": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "twilio"
                                ]
                              }
                            ]
                          },
                          "assignedUserId": {
                            "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"
                              }
                            ]
                          },
                          "countryCode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "US",
                                  "CA",
                                  "GB",
                                  "AU",
                                  "NZ"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "numberType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "local",
                                  "mobile",
                                  "tollFree"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "areaCode": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "region": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "capabilities": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "voice": {
                                    "type": "boolean"
                                  },
                                  "sms": {
                                    "type": "boolean"
                                  },
                                  "mms": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "voice",
                                  "sms",
                                  "mms"
                                ],
                                "patternProperties": {
                                  "^(?!(?:voice|sms|mms)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "voice",
                                    "sms",
                                    "mms"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attestation": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "spamScore": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "spamCategory": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "reputationScore": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "lastReputationCheckAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dailyCallCap": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "nextAvailableCallAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "lastCallAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "provisionedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "retiredAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cooldownUntil": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inboundEnabled": {
                            "type": "boolean"
                          },
                          "inboundForwardE164": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "phoneE164",
                          "status",
                          "statusDetail",
                          "voiceProvider",
                          "messagingProvider",
                          "assignedUserId",
                          "countryCode",
                          "numberType",
                          "areaCode",
                          "region",
                          "capabilities",
                          "attestation",
                          "spamScore",
                          "spamCategory",
                          "reputationScore",
                          "lastReputationCheckAt",
                          "dailyCallCap",
                          "nextAvailableCallAt",
                          "lastCallAt",
                          "provisionedAt",
                          "retiredAt",
                          "cooldownUntil",
                          "inboundEnabled",
                          "inboundForwardE164",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|phoneE164|status|statusDetail|voiceProvider|messagingProvider|assignedUserId|countryCode|numberType|areaCode|region|capabilities|attestation|spamScore|spamCategory|reputationScore|lastReputationCheckAt|dailyCallCap|nextAvailableCallAt|lastCallAt|provisionedAt|retiredAt|cooldownUntil|inboundEnabled|inboundForwardE164|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "phoneE164",
                            "status",
                            "statusDetail",
                            "voiceProvider",
                            "messagingProvider",
                            "assignedUserId",
                            "countryCode",
                            "numberType",
                            "areaCode",
                            "region",
                            "capabilities",
                            "attestation",
                            "spamScore",
                            "spamCategory",
                            "reputationScore",
                            "lastReputationCheckAt",
                            "dailyCallCap",
                            "nextAvailableCallAt",
                            "lastCallAt",
                            "provisionedAt",
                            "retiredAt",
                            "cooldownUntil",
                            "inboundEnabled",
                            "inboundForwardE164",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "phoneNumber": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "countryCode": {
                                  "type": "string",
                                  "enum": [
                                    "US",
                                    "CA",
                                    "GB",
                                    "AU",
                                    "NZ"
                                  ]
                                },
                                "locality": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "administrativeArea": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "features": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "addressRequirement": {
                                  "type": "string",
                                  "enum": [
                                    "none",
                                    "any",
                                    "local",
                                    "foreign"
                                  ]
                                },
                                "voiceProvider": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "twilio"
                                      ]
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "phoneNumber",
                                "countryCode",
                                "locality",
                                "administrativeArea",
                                "features",
                                "addressRequirement",
                                "voiceProvider"
                              ],
                              "patternProperties": {
                                "^(?!(?:phoneNumber|countryCode|locality|administrativeArea|features|addressRequirement|voiceProvider)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "phoneNumber",
                                  "countryCode",
                                  "locality",
                                  "administrativeArea",
                                  "features",
                                  "addressRequirement",
                                  "voiceProvider"
                                ]
                              }
                            },
                            "maxItems": 20
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "countryCode": {
                                  "type": "string",
                                  "enum": [
                                    "US",
                                    "CA",
                                    "GB",
                                    "AU",
                                    "NZ"
                                  ]
                                },
                                "countryName": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "numberType": {
                                  "type": "string",
                                  "enum": [
                                    "local",
                                    "mobile",
                                    "tollFree"
                                  ]
                                },
                                "numberTypeName": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "messaging": {
                                  "type": "string",
                                  "enum": [
                                    "sms_mms",
                                    "sms",
                                    "voice_only"
                                  ]
                                },
                                "searchKind": {
                                  "type": "string",
                                  "enum": [
                                    "nanp",
                                    "international"
                                  ]
                                },
                                "requiresRegulatoryBundle": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "countryCode",
                                "countryName",
                                "numberType",
                                "numberTypeName",
                                "messaging",
                                "searchKind",
                                "requiresRegulatoryBundle"
                              ],
                              "patternProperties": {
                                "^(?!(?:countryCode|countryName|numberType|numberTypeName|messaging|searchKind|requiresRegulatoryBundle)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "countryCode",
                                  "countryName",
                                  "numberType",
                                  "numberTypeName",
                                  "messaging",
                                  "searchKind",
                                  "requiresRegulatoryBundle"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "numberId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "phoneE164": {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          "releasedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "numberId",
                          "phoneE164",
                          "releasedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:numberId|phoneE164|releasedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "numberId",
                            "phoneE164",
                            "releasedAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_dialer_numbers"
      },
      "scopes": [
        "dialer:read",
        "dialer:manage_numbers",
        "dialer:manage_number_health",
        "dialer:assign_numbers",
        "dialer:release_numbers"
      ],
      "bundles": [
        "dialer_operations"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerNumbers.list",
        "dialerNumbers.get",
        "dialerNumbers.searchAvailable",
        "dialerNumbers.provisioningOptions",
        "dialerNumbers.assign",
        "dialerNumbers.update",
        "dialerNumbers.release"
      ],
      "invocations": [
        {
          "operationId": "dialerNumbers.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/numbers",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerNumbers.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/numbers/:numberId",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerNumbers.searchAvailable",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/numbers/search-available",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerNumbers.provisioningOptions",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/numbers/provisioning-options",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerNumbers.assign",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/dialer/numbers/:numberId/assign",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerNumbers.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/dialer/numbers/:numberId",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerNumbers.release",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/dialer/numbers/:numberId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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",
              "get",
              "search_available",
              "provisioning_options",
              "assign",
              "update",
              "release"
            ]
          },
          "numberId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "list": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "assignedUserId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "warming",
                  "inactive",
                  "error",
                  "alert",
                  "flagged",
                  "retired"
                ]
              },
              "dialableOnly": {
                "type": "string",
                "enum": [
                  "true",
                  "false"
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|assignedUserId|status|dialableOnly)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "assignedUserId",
                "status",
                "dialableOnly"
              ]
            }
          },
          "search": {
            "type": "object",
            "properties": {
              "countryCode": {
                "type": "string",
                "enum": [
                  "US",
                  "CA",
                  "GB",
                  "AU",
                  "NZ"
                ]
              },
              "search": {
                "type": "string",
                "maxLength": 32
              },
              "areaCode": {
                "$ref": "#/$defs/AreaCode"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20
              }
            },
            "patternProperties": {
              "^(?!(?:countryCode|search|areaCode|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "countryCode",
                "search",
                "areaCode",
                "limit"
              ]
            }
          },
          "assign": {
            "type": "object",
            "properties": {
              "assignedUserId": {
                "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"
                  }
                ]
              },
              "confirmedSessionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "assignedUserId"
            ],
            "patternProperties": {
              "^(?!(?:assignedUserId|confirmedSessionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "assignedUserId",
                "confirmedSessionId"
              ]
            }
          },
          "update": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "warming",
                  "inactive",
                  "error",
                  "alert",
                  "flagged",
                  "retired"
                ]
              },
              "dailyCallCap": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "inboundEnabled": {
                "type": "boolean"
              },
              "inboundForwardE164": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/E164PhoneNumber"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:status|dailyCallCap|inboundEnabled|inboundForwardE164)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "status",
                "dailyCallCap",
                "inboundEnabled",
                "inboundForwardE164"
              ]
            },
            "minProperties": 1,
            "maxProperties": 4
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|numberId|list|search|assign|update)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "numberId",
            "list",
            "search",
            "assign",
            "update"
          ]
        },
        "$defs": {
          "AreaCode": {
            "type": "string",
            "pattern": "^\\d{3}$"
          },
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "manage_dialer_seats",
      "description": "Grant or revoke a member's dialer seat, and set where the caller's own inbound dialer calls forward.\n\nUse to give a new rep the ability to dial, to take a seat back from someone who has left the team, or to point inbound calls at the right handset.\n\nSeats are billable: granting one consumes a purchased seat and granting past the purchased count is refused. Revoking a seat does not release the rep's numbers or turn off their forwarding.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "assign"
                    ]
                  },
                  "seat": {
                    "type": "object",
                    "properties": {
                      "userId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "enabled": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "userId",
                      "enabled"
                    ],
                    "patternProperties": {
                      "^(?!(?:userId|enabled)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "userId",
                        "enabled"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "seat"
                ],
                "patternProperties": {
                  "^(?!(?:kind|seat)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "seat"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "set_forwarding"
                    ]
                  },
                  "forwarding": {
                    "type": "object",
                    "properties": {
                      "forwardE164": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "enabled": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "forwardE164",
                      "enabled"
                    ],
                    "patternProperties": {
                      "^(?!(?:forwardE164|enabled)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "forwardE164",
                        "enabled"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "forwarding"
                ],
                "patternProperties": {
                  "^(?!(?:kind|forwarding)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "forwarding"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "DialerSeatId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/DialerSeatId"
                      },
                      "userId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "active": {
                        "type": "boolean"
                      },
                      "assignedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "assignedByUserId": {
                        "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"
                          }
                        ]
                      },
                      "defaultInboundEnabled": {
                        "type": "boolean"
                      },
                      "defaultInboundForwardE164": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "userId",
                      "active",
                      "assignedAt",
                      "assignedByUserId",
                      "defaultInboundEnabled",
                      "defaultInboundForwardE164"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|userId|active|assignedAt|assignedByUserId|defaultInboundEnabled|defaultInboundForwardE164)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "userId",
                        "active",
                        "assignedAt",
                        "assignedByUserId",
                        "defaultInboundEnabled",
                        "defaultInboundForwardE164"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "forwardE164": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "appliedCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "enabled",
                      "forwardE164",
                      "appliedCount"
                    ],
                    "patternProperties": {
                      "^(?!(?:enabled|forwardE164|appliedCount)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "forwardE164",
                        "appliedCount"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/DialerSeatId"
                          },
                          "userId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "assignedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "assignedByUserId": {
                            "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"
                              }
                            ]
                          },
                          "defaultInboundEnabled": {
                            "type": "boolean"
                          },
                          "defaultInboundForwardE164": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "active",
                          "assignedAt",
                          "assignedByUserId",
                          "defaultInboundEnabled",
                          "defaultInboundForwardE164"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|userId|active|assignedAt|assignedByUserId|defaultInboundEnabled|defaultInboundForwardE164)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "userId",
                            "active",
                            "assignedAt",
                            "assignedByUserId",
                            "defaultInboundEnabled",
                            "defaultInboundForwardE164"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "forwardE164": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "appliedCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "enabled",
                          "forwardE164",
                          "appliedCount"
                        ],
                        "patternProperties": {
                          "^(?!(?:enabled|forwardE164|appliedCount)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "enabled",
                            "forwardE164",
                            "appliedCount"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_dialer_seats"
      },
      "scopes": [
        "dialer:assign_seats",
        "dialer:manage_numbers_self"
      ],
      "bundles": [
        "dialer_operations"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerSeats.assign",
        "dialerSeats.setInboundForwarding"
      ],
      "invocations": [
        {
          "operationId": "dialerSeats.assign",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/seats/assign",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerSeats.setInboundForwarding",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/seats/me/inbound-forwarding",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "assign"
                    ]
                  },
                  "seat": {
                    "type": "object",
                    "properties": {
                      "userId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "enabled": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "userId",
                      "enabled"
                    ],
                    "patternProperties": {
                      "^(?!(?:userId|enabled)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "userId",
                        "enabled"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "seat"
                ],
                "patternProperties": {
                  "^(?!(?:kind|seat)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "seat"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "set_forwarding"
                    ]
                  },
                  "forwarding": {
                    "type": "object",
                    "properties": {
                      "forwardE164": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "enabled": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "forwardE164",
                      "enabled"
                    ],
                    "patternProperties": {
                      "^(?!(?:forwardE164|enabled)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "forwardE164",
                        "enabled"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "forwarding"
                ],
                "patternProperties": {
                  "^(?!(?:kind|forwarding)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "forwarding"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          }
        }
      }
    },
    {
      "feature": "commerce",
      "name": "manage_domain_dns",
      "description": "Read or replace a domain's DNS records with validated typed records.\n\nUse to fix DNS for a sending domain or change where its website goes; confirm the full record set with a person before replacing it.\n\nReplacing records removes any not included; mail authentication (SPF/DKIM) belongs to the connected mailbox provider.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "domainId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "read"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "replace"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "records": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "A"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "pattern": "^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$"
                                }
                              },
                              "required": [
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "AAAA"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 2,
                                  "maxLength": 45,
                                  "pattern": "^[0-9A-Fa-f:.]+$"
                                }
                              },
                              "required": [
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "CNAME"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253,
                                  "pattern": "^(?:[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?\\.)*[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?\\.?$"
                                }
                              },
                              "required": [
                                "type",
                                "host",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "MX"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253,
                                  "pattern": "^(?:[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?\\.)*[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?\\.?$"
                                },
                                "priority": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 65535
                                }
                              },
                              "required": [
                                "type",
                                "value",
                                "priority"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value|priority)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value",
                                  "priority"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "TXT"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2048
                                }
                              },
                              "required": [
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "FORWARD"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                "forwardingType": {
                                  "type": "string",
                                  "enum": [
                                    "301",
                                    "302"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value|forwardingType)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value",
                                  "forwardingType"
                                ]
                              }
                            }
                          ]
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "records"
                    ],
                    "patternProperties": {
                      "^(?!(?:records)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "records"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "domainId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|domainId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "domainId",
            "action"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "records": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "A",
                                    "AAAA",
                                    "CNAME",
                                    "TXT"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 2048
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 2048
                                }
                              },
                              "required": [
                                "type",
                                "host",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "MX"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 2048
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 2048
                                },
                                "priority": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 65535
                                }
                              },
                              "required": [
                                "type",
                                "host",
                                "value",
                                "priority"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value|priority)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value",
                                  "priority"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "FORWARD"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 2048
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 2048
                                },
                                "forwardingType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "301",
                                        "302"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "host",
                                "value",
                                "forwardingType"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value|forwardingType)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value",
                                  "forwardingType"
                                ]
                              }
                            }
                          ]
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "records"
                    ],
                    "patternProperties": {
                      "^(?!(?:records)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "records"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "ok": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "recordCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "ok",
                      "recordCount"
                    ],
                    "patternProperties": {
                      "^(?!(?:ok|recordCount)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "ok",
                        "recordCount"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "records": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "A",
                                        "AAAA",
                                        "CNAME",
                                        "TXT"
                                      ]
                                    },
                                    "host": {
                                      "type": "string",
                                      "minLength": 0,
                                      "maxLength": 2048
                                    },
                                    "value": {
                                      "type": "string",
                                      "minLength": 0,
                                      "maxLength": 2048
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "host",
                                    "value"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "host",
                                      "value"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "MX"
                                      ]
                                    },
                                    "host": {
                                      "type": "string",
                                      "minLength": 0,
                                      "maxLength": 2048
                                    },
                                    "value": {
                                      "type": "string",
                                      "minLength": 0,
                                      "maxLength": 2048
                                    },
                                    "priority": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 65535
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "host",
                                    "value",
                                    "priority"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|host|value|priority)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "host",
                                      "value",
                                      "priority"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "FORWARD"
                                      ]
                                    },
                                    "host": {
                                      "type": "string",
                                      "minLength": 0,
                                      "maxLength": 2048
                                    },
                                    "value": {
                                      "type": "string",
                                      "minLength": 0,
                                      "maxLength": 2048
                                    },
                                    "forwardingType": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "301",
                                            "302"
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "host",
                                    "value",
                                    "forwardingType"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|host|value|forwardingType)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "host",
                                      "value",
                                      "forwardingType"
                                    ]
                                  }
                                }
                              ]
                            },
                            "maxItems": 100
                          }
                        },
                        "required": [
                          "records"
                        ],
                        "patternProperties": {
                          "^(?!(?:records)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "records"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "ok": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "recordCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "ok",
                          "recordCount"
                        ],
                        "patternProperties": {
                          "^(?!(?:ok|recordCount)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "ok",
                            "recordCount"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_domain_dns"
      },
      "scopes": [
        "domain:manage_dns"
      ],
      "bundles": [
        "domain_manager"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "domains.dnsRecords",
        "domains.setDnsRecords"
      ],
      "invocations": [
        {
          "operationId": "domains.dnsRecords",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains/:domainId/dns",
          "workspaceScoped": false
        },
        {
          "operationId": "domains.setDnsRecords",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/:domainId/dns",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "domainId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "read"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "replace"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "records": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "A"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "pattern": "^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$"
                                }
                              },
                              "required": [
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "AAAA"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 2,
                                  "maxLength": 45,
                                  "pattern": "^[0-9A-Fa-f:.]+$"
                                }
                              },
                              "required": [
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "CNAME"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253,
                                  "pattern": "^(?:[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?\\.)*[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?\\.?$"
                                }
                              },
                              "required": [
                                "type",
                                "host",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "MX"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253,
                                  "pattern": "^(?:[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?\\.)*[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?\\.?$"
                                },
                                "priority": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 65535
                                }
                              },
                              "required": [
                                "type",
                                "value",
                                "priority"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value|priority)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value",
                                  "priority"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "TXT"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2048
                                }
                              },
                              "required": [
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "FORWARD"
                                  ]
                                },
                                "host": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 253,
                                  "pattern": "^(?:|@|(?:\\*|[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)(?:\\.[A-Za-z0-9_](?:[A-Za-z0-9_-]{0,61}[A-Za-z0-9_])?)*)$"
                                },
                                "value": {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                "forwardingType": {
                                  "type": "string",
                                  "enum": [
                                    "301",
                                    "302"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|host|value|forwardingType)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "host",
                                  "value",
                                  "forwardingType"
                                ]
                              }
                            }
                          ]
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "records"
                    ],
                    "patternProperties": {
                      "^(?!(?:records)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "records"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "domainId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|domainId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "domainId",
            "action"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      }
    },
    {
      "feature": "commerce",
      "name": "manage_domain_nameservers",
      "description": "Plan and manage optional AWS hosted DNS for a workspace domain while keeping registrar delegation under the domain owner's control.\n\nUse to inspect nameserver hosting, prepare a plan from a complete DNS export, revise mistaken records or source nameservers before any AWS create attempt or environment assignment, verify DNS TXT ownership before creating the paid zone, provision an independent Route 53 public zone, import records before a person performs registrar handoff, update records only after import is INSYNC, and check recursive DNS observations. Replanning recomputes plan and record hashes/revisions and preserves the ownership challenge. Updates require expectedRecordsHash to match the current AWS hash before UPSERT and retain every existing record name and type; this release does not support deletion.\n\nDo not infer a complete DNS zone from public DNS. This creates a separate identifiable AWS public zone per domain, with no reusable delegation sets; it never changes nameservers automatically. Recursive NS matching is not verified parent delegation. While pendingRecords is set, records and recordsHash remain the last confirmed state. Check resumes only the same already-confirmed pending UPSERT to recover its AWS change ID; it creates no new write intent or confirmation. Preserve the last confirmed records/hash, old zone, mail records, and ACM validation records.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "zoneId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "plan"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "hostname": {
                        "$ref": "#/$defs/DomainName"
                      },
                      "records": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "A",
                                "AAAA",
                                "CNAME",
                                "MX",
                                "TXT",
                                "CAA",
                                "SRV",
                                "NS",
                                "PTR",
                                "NAPTR",
                                "DS"
                              ]
                            },
                            "ttl": {
                              "type": "integer"
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 65536
                              },
                              "maxItems": 500
                            },
                            "aliasTarget": {
                              "type": "object",
                              "properties": {
                                "dnsName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253
                                },
                                "hostedZoneId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "evaluateTargetHealth": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "dnsName",
                                "hostedZoneId",
                                "evaluateTargetHealth"
                              ],
                              "patternProperties": {
                                "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "dnsName",
                                  "hostedZoneId",
                                  "evaluateTargetHealth"
                                ]
                              }
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "ttl",
                            "values"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "type",
                              "ttl",
                              "values",
                              "aliasTarget"
                            ]
                          }
                        },
                        "maxItems": 500
                      },
                      "sourceNameservers": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 253
                        },
                        "maxItems": 32
                      },
                      "completeExportAcknowledged": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "hostname",
                      "records",
                      "sourceNameservers",
                      "completeExportAcknowledged"
                    ],
                    "patternProperties": {
                      "^(?!(?:hostname|records|sourceNameservers|completeExportAcknowledged)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "hostname",
                        "records",
                        "sourceNameservers",
                        "completeExportAcknowledged"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "replan"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "records": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "A",
                                "AAAA",
                                "CNAME",
                                "MX",
                                "TXT",
                                "CAA",
                                "SRV",
                                "NS",
                                "PTR",
                                "NAPTR",
                                "DS"
                              ]
                            },
                            "ttl": {
                              "type": "integer"
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 65536
                              },
                              "maxItems": 500
                            },
                            "aliasTarget": {
                              "type": "object",
                              "properties": {
                                "dnsName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253
                                },
                                "hostedZoneId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "evaluateTargetHealth": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "dnsName",
                                "hostedZoneId",
                                "evaluateTargetHealth"
                              ],
                              "patternProperties": {
                                "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "dnsName",
                                  "hostedZoneId",
                                  "evaluateTargetHealth"
                                ]
                              }
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "ttl",
                            "values"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "type",
                              "ttl",
                              "values",
                              "aliasTarget"
                            ]
                          }
                        },
                        "maxItems": 500
                      },
                      "sourceNameservers": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 253
                        },
                        "maxItems": 32
                      },
                      "completeExportAcknowledged": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "expectedRevision",
                      "records",
                      "sourceNameservers",
                      "completeExportAcknowledged"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision|records|sourceNameservers|completeExportAcknowledged)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "expectedRevision",
                        "records",
                        "sourceNameservers",
                        "completeExportAcknowledged"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "zoneId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "provision"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "planHash": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "paidHostingAcknowledged": {
                        "type": "boolean"
                      },
                      "dnssecMigrationAcknowledged": {
                        "type": "boolean"
                      },
                      "providerCoordinationAcknowledged": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "expectedRevision",
                      "planHash",
                      "paidHostingAcknowledged",
                      "dnssecMigrationAcknowledged",
                      "providerCoordinationAcknowledged"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision|planHash|paidHostingAcknowledged|dnssecMigrationAcknowledged|providerCoordinationAcknowledged)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "expectedRevision",
                        "planHash",
                        "paidHostingAcknowledged",
                        "dnssecMigrationAcknowledged",
                        "providerCoordinationAcknowledged"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "zoneId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "expectedRecordsHash": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "records": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "A",
                                "AAAA",
                                "CNAME",
                                "MX",
                                "TXT",
                                "CAA",
                                "SRV",
                                "NS",
                                "PTR",
                                "NAPTR",
                                "DS"
                              ]
                            },
                            "ttl": {
                              "type": "integer"
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 65536
                              },
                              "maxItems": 500
                            },
                            "aliasTarget": {
                              "type": "object",
                              "properties": {
                                "dnsName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253
                                },
                                "hostedZoneId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "evaluateTargetHealth": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "dnsName",
                                "hostedZoneId",
                                "evaluateTargetHealth"
                              ],
                              "patternProperties": {
                                "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "dnsName",
                                  "hostedZoneId",
                                  "evaluateTargetHealth"
                                ]
                              }
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "ttl",
                            "values"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "type",
                              "ttl",
                              "values",
                              "aliasTarget"
                            ]
                          }
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "expectedRevision",
                      "expectedRecordsHash",
                      "records"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision|expectedRecordsHash|records)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "expectedRevision",
                        "expectedRecordsHash",
                        "records"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "zoneId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "check"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "expectedRevision"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "expectedRevision"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "zoneId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId",
                    "request"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "zones": {
                        "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"
                            },
                            "hostname": {
                              "$ref": "#/$defs/DomainName"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "recordsHash": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "ownership_pending",
                                "provisioning",
                                "import_pending",
                                "ready_to_delegate",
                                "observed_matching",
                                "needs_attention"
                              ]
                            },
                            "ownershipRecord": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "TXT"
                                  ]
                                },
                                "value": {
                                  "type": "string"
                                },
                                "removable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "value",
                                "removable"
                              ],
                              "patternProperties": {
                                "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "name",
                                  "type",
                                  "value",
                                  "removable"
                                ]
                              }
                            },
                            "records": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 253
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "A",
                                      "AAAA",
                                      "CNAME",
                                      "MX",
                                      "TXT",
                                      "CAA",
                                      "SRV",
                                      "NS",
                                      "PTR",
                                      "NAPTR",
                                      "DS"
                                    ]
                                  },
                                  "ttl": {
                                    "type": "integer"
                                  },
                                  "values": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 65536
                                    },
                                    "maxItems": 500
                                  },
                                  "aliasTarget": {
                                    "type": "object",
                                    "properties": {
                                      "dnsName": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 253
                                      },
                                      "hostedZoneId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "evaluateTargetHealth": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "dnsName",
                                      "hostedZoneId",
                                      "evaluateTargetHealth"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "dnsName",
                                        "hostedZoneId",
                                        "evaluateTargetHealth"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "ttl",
                                  "values"
                                ],
                                "patternProperties": {
                                  "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "name",
                                    "type",
                                    "ttl",
                                    "values",
                                    "aliasTarget"
                                  ]
                                }
                              },
                              "maxItems": 500
                            },
                            "pendingRecords": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 253
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "A",
                                          "AAAA",
                                          "CNAME",
                                          "MX",
                                          "TXT",
                                          "CAA",
                                          "SRV",
                                          "NS",
                                          "PTR",
                                          "NAPTR",
                                          "DS"
                                        ]
                                      },
                                      "ttl": {
                                        "type": "integer"
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "maxLength": 65536
                                        },
                                        "maxItems": 500
                                      },
                                      "aliasTarget": {
                                        "type": "object",
                                        "properties": {
                                          "dnsName": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 253
                                          },
                                          "hostedZoneId": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "evaluateTargetHealth": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "dnsName",
                                          "hostedZoneId",
                                          "evaluateTargetHealth"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "dnsName",
                                            "hostedZoneId",
                                            "evaluateTargetHealth"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "ttl",
                                      "values"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "name",
                                        "type",
                                        "ttl",
                                        "values",
                                        "aliasTarget"
                                      ]
                                    }
                                  },
                                  "maxItems": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sourceNameservers": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 253
                              },
                              "maxItems": 32
                            },
                            "nameservers": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 253
                              },
                              "maxItems": 32
                            },
                            "hostedZoneId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "changeId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "planHash": {
                              "type": "string"
                            },
                            "verifiedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "checkedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reason": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "observedNameservers": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 253
                              },
                              "maxItems": 32
                            },
                            "delegationEvidence": {
                              "type": "string",
                              "enum": [
                                "recursive_dns_only"
                              ]
                            },
                            "hostingMonthlyUsd": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "hostname",
                            "revision",
                            "recordsHash",
                            "status",
                            "ownershipRecord",
                            "records",
                            "pendingRecords",
                            "sourceNameservers",
                            "nameservers",
                            "hostedZoneId",
                            "changeId",
                            "planHash",
                            "verifiedAt",
                            "checkedAt",
                            "reason",
                            "observedNameservers",
                            "delegationEvidence",
                            "hostingMonthlyUsd"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|hostname|revision|recordsHash|status|ownershipRecord|records|pendingRecords|sourceNameservers|nameservers|hostedZoneId|changeId|planHash|verifiedAt|checkedAt|reason|observedNameservers|delegationEvidence|hostingMonthlyUsd)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "hostname",
                              "revision",
                              "recordsHash",
                              "status",
                              "ownershipRecord",
                              "records",
                              "pendingRecords",
                              "sourceNameservers",
                              "nameservers",
                              "hostedZoneId",
                              "changeId",
                              "planHash",
                              "verifiedAt",
                              "checkedAt",
                              "reason",
                              "observedNameservers",
                              "delegationEvidence",
                              "hostingMonthlyUsd"
                            ]
                          }
                        },
                        "maxItems": 50
                      }
                    },
                    "required": [
                      "zones"
                    ],
                    "patternProperties": {
                      "^(?!(?:zones)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "zones"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "hostname": {
                        "$ref": "#/$defs/DomainName"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "recordsHash": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "ownership_pending",
                          "provisioning",
                          "import_pending",
                          "ready_to_delegate",
                          "observed_matching",
                          "needs_attention"
                        ]
                      },
                      "ownershipRecord": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "TXT"
                            ]
                          },
                          "value": {
                            "type": "string"
                          },
                          "removable": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "name",
                          "type",
                          "value",
                          "removable"
                        ],
                        "patternProperties": {
                          "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "name",
                            "type",
                            "value",
                            "removable"
                          ]
                        }
                      },
                      "records": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "A",
                                "AAAA",
                                "CNAME",
                                "MX",
                                "TXT",
                                "CAA",
                                "SRV",
                                "NS",
                                "PTR",
                                "NAPTR",
                                "DS"
                              ]
                            },
                            "ttl": {
                              "type": "integer"
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 65536
                              },
                              "maxItems": 500
                            },
                            "aliasTarget": {
                              "type": "object",
                              "properties": {
                                "dnsName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253
                                },
                                "hostedZoneId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "evaluateTargetHealth": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "dnsName",
                                "hostedZoneId",
                                "evaluateTargetHealth"
                              ],
                              "patternProperties": {
                                "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "dnsName",
                                  "hostedZoneId",
                                  "evaluateTargetHealth"
                                ]
                              }
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "ttl",
                            "values"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "type",
                              "ttl",
                              "values",
                              "aliasTarget"
                            ]
                          }
                        },
                        "maxItems": 500
                      },
                      "pendingRecords": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "A",
                                    "AAAA",
                                    "CNAME",
                                    "MX",
                                    "TXT",
                                    "CAA",
                                    "SRV",
                                    "NS",
                                    "PTR",
                                    "NAPTR",
                                    "DS"
                                  ]
                                },
                                "ttl": {
                                  "type": "integer"
                                },
                                "values": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "maxLength": 65536
                                  },
                                  "maxItems": 500
                                },
                                "aliasTarget": {
                                  "type": "object",
                                  "properties": {
                                    "dnsName": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 253
                                    },
                                    "hostedZoneId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "evaluateTargetHealth": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "dnsName",
                                    "hostedZoneId",
                                    "evaluateTargetHealth"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "dnsName",
                                      "hostedZoneId",
                                      "evaluateTargetHealth"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "ttl",
                                "values"
                              ],
                              "patternProperties": {
                                "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "name",
                                  "type",
                                  "ttl",
                                  "values",
                                  "aliasTarget"
                                ]
                              }
                            },
                            "maxItems": 500
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sourceNameservers": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 253
                        },
                        "maxItems": 32
                      },
                      "nameservers": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 253
                        },
                        "maxItems": 32
                      },
                      "hostedZoneId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "changeId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "planHash": {
                        "type": "string"
                      },
                      "verifiedAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "checkedAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "observedNameservers": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 253
                        },
                        "maxItems": 32
                      },
                      "delegationEvidence": {
                        "type": "string",
                        "enum": [
                          "recursive_dns_only"
                        ]
                      },
                      "hostingMonthlyUsd": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "hostname",
                      "revision",
                      "recordsHash",
                      "status",
                      "ownershipRecord",
                      "records",
                      "pendingRecords",
                      "sourceNameservers",
                      "nameservers",
                      "hostedZoneId",
                      "changeId",
                      "planHash",
                      "verifiedAt",
                      "checkedAt",
                      "reason",
                      "observedNameservers",
                      "delegationEvidence",
                      "hostingMonthlyUsd"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|hostname|revision|recordsHash|status|ownershipRecord|records|pendingRecords|sourceNameservers|nameservers|hostedZoneId|changeId|planHash|verifiedAt|checkedAt|reason|observedNameservers|delegationEvidence|hostingMonthlyUsd)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "hostname",
                        "revision",
                        "recordsHash",
                        "status",
                        "ownershipRecord",
                        "records",
                        "pendingRecords",
                        "sourceNameservers",
                        "nameservers",
                        "hostedZoneId",
                        "changeId",
                        "planHash",
                        "verifiedAt",
                        "checkedAt",
                        "reason",
                        "observedNameservers",
                        "delegationEvidence",
                        "hostingMonthlyUsd"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "zones": {
                            "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"
                                },
                                "hostname": {
                                  "$ref": "#/$defs/DomainName"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "recordsHash": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "ownership_pending",
                                    "provisioning",
                                    "import_pending",
                                    "ready_to_delegate",
                                    "observed_matching",
                                    "needs_attention"
                                  ]
                                },
                                "ownershipRecord": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "TXT"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "removable": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "type",
                                    "value",
                                    "removable"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "name",
                                      "type",
                                      "value",
                                      "removable"
                                    ]
                                  }
                                },
                                "records": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 253
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "A",
                                          "AAAA",
                                          "CNAME",
                                          "MX",
                                          "TXT",
                                          "CAA",
                                          "SRV",
                                          "NS",
                                          "PTR",
                                          "NAPTR",
                                          "DS"
                                        ]
                                      },
                                      "ttl": {
                                        "type": "integer"
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "maxLength": 65536
                                        },
                                        "maxItems": 500
                                      },
                                      "aliasTarget": {
                                        "type": "object",
                                        "properties": {
                                          "dnsName": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 253
                                          },
                                          "hostedZoneId": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "evaluateTargetHealth": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "dnsName",
                                          "hostedZoneId",
                                          "evaluateTargetHealth"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "dnsName",
                                            "hostedZoneId",
                                            "evaluateTargetHealth"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "ttl",
                                      "values"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "name",
                                        "type",
                                        "ttl",
                                        "values",
                                        "aliasTarget"
                                      ]
                                    }
                                  },
                                  "maxItems": 500
                                },
                                "pendingRecords": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 253
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "A",
                                              "AAAA",
                                              "CNAME",
                                              "MX",
                                              "TXT",
                                              "CAA",
                                              "SRV",
                                              "NS",
                                              "PTR",
                                              "NAPTR",
                                              "DS"
                                            ]
                                          },
                                          "ttl": {
                                            "type": "integer"
                                          },
                                          "values": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "maxLength": 65536
                                            },
                                            "maxItems": 500
                                          },
                                          "aliasTarget": {
                                            "type": "object",
                                            "properties": {
                                              "dnsName": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 253
                                              },
                                              "hostedZoneId": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 128
                                              },
                                              "evaluateTargetHealth": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "dnsName",
                                              "hostedZoneId",
                                              "evaluateTargetHealth"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "dnsName",
                                                "hostedZoneId",
                                                "evaluateTargetHealth"
                                              ]
                                            }
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "type",
                                          "ttl",
                                          "values"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "name",
                                            "type",
                                            "ttl",
                                            "values",
                                            "aliasTarget"
                                          ]
                                        }
                                      },
                                      "maxItems": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceNameservers": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 253
                                  },
                                  "maxItems": 32
                                },
                                "nameservers": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 253
                                  },
                                  "maxItems": 32
                                },
                                "hostedZoneId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "changeId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "planHash": {
                                  "type": "string"
                                },
                                "verifiedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "checkedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "reason": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "observedNameservers": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 253
                                  },
                                  "maxItems": 32
                                },
                                "delegationEvidence": {
                                  "type": "string",
                                  "enum": [
                                    "recursive_dns_only"
                                  ]
                                },
                                "hostingMonthlyUsd": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "hostname",
                                "revision",
                                "recordsHash",
                                "status",
                                "ownershipRecord",
                                "records",
                                "pendingRecords",
                                "sourceNameservers",
                                "nameservers",
                                "hostedZoneId",
                                "changeId",
                                "planHash",
                                "verifiedAt",
                                "checkedAt",
                                "reason",
                                "observedNameservers",
                                "delegationEvidence",
                                "hostingMonthlyUsd"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|hostname|revision|recordsHash|status|ownershipRecord|records|pendingRecords|sourceNameservers|nameservers|hostedZoneId|changeId|planHash|verifiedAt|checkedAt|reason|observedNameservers|delegationEvidence|hostingMonthlyUsd)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "hostname",
                                  "revision",
                                  "recordsHash",
                                  "status",
                                  "ownershipRecord",
                                  "records",
                                  "pendingRecords",
                                  "sourceNameservers",
                                  "nameservers",
                                  "hostedZoneId",
                                  "changeId",
                                  "planHash",
                                  "verifiedAt",
                                  "checkedAt",
                                  "reason",
                                  "observedNameservers",
                                  "delegationEvidence",
                                  "hostingMonthlyUsd"
                                ]
                              }
                            },
                            "maxItems": 50
                          }
                        },
                        "required": [
                          "zones"
                        ],
                        "patternProperties": {
                          "^(?!(?:zones)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "zones"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "hostname": {
                            "$ref": "#/$defs/DomainName"
                          },
                          "revision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "recordsHash": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ownership_pending",
                              "provisioning",
                              "import_pending",
                              "ready_to_delegate",
                              "observed_matching",
                              "needs_attention"
                            ]
                          },
                          "ownershipRecord": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "TXT"
                                ]
                              },
                              "value": {
                                "type": "string"
                              },
                              "removable": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "name",
                              "type",
                              "value",
                              "removable"
                            ],
                            "patternProperties": {
                              "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "name",
                                "type",
                                "value",
                                "removable"
                              ]
                            }
                          },
                          "records": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "A",
                                    "AAAA",
                                    "CNAME",
                                    "MX",
                                    "TXT",
                                    "CAA",
                                    "SRV",
                                    "NS",
                                    "PTR",
                                    "NAPTR",
                                    "DS"
                                  ]
                                },
                                "ttl": {
                                  "type": "integer"
                                },
                                "values": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "maxLength": 65536
                                  },
                                  "maxItems": 500
                                },
                                "aliasTarget": {
                                  "type": "object",
                                  "properties": {
                                    "dnsName": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 253
                                    },
                                    "hostedZoneId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "evaluateTargetHealth": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "dnsName",
                                    "hostedZoneId",
                                    "evaluateTargetHealth"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "dnsName",
                                      "hostedZoneId",
                                      "evaluateTargetHealth"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "ttl",
                                "values"
                              ],
                              "patternProperties": {
                                "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "name",
                                  "type",
                                  "ttl",
                                  "values",
                                  "aliasTarget"
                                ]
                              }
                            },
                            "maxItems": 500
                          },
                          "pendingRecords": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 253
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "A",
                                        "AAAA",
                                        "CNAME",
                                        "MX",
                                        "TXT",
                                        "CAA",
                                        "SRV",
                                        "NS",
                                        "PTR",
                                        "NAPTR",
                                        "DS"
                                      ]
                                    },
                                    "ttl": {
                                      "type": "integer"
                                    },
                                    "values": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "maxLength": 65536
                                      },
                                      "maxItems": 500
                                    },
                                    "aliasTarget": {
                                      "type": "object",
                                      "properties": {
                                        "dnsName": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 253
                                        },
                                        "hostedZoneId": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "evaluateTargetHealth": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "dnsName",
                                        "hostedZoneId",
                                        "evaluateTargetHealth"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "dnsName",
                                          "hostedZoneId",
                                          "evaluateTargetHealth"
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "type",
                                    "ttl",
                                    "values"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "name",
                                      "type",
                                      "ttl",
                                      "values",
                                      "aliasTarget"
                                    ]
                                  }
                                },
                                "maxItems": 500
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceNameservers": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "maxItems": 32
                          },
                          "nameservers": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "maxItems": 32
                          },
                          "hostedZoneId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changeId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "planHash": {
                            "type": "string"
                          },
                          "verifiedAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "checkedAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "observedNameservers": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "maxItems": 32
                          },
                          "delegationEvidence": {
                            "type": "string",
                            "enum": [
                              "recursive_dns_only"
                            ]
                          },
                          "hostingMonthlyUsd": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "hostname",
                          "revision",
                          "recordsHash",
                          "status",
                          "ownershipRecord",
                          "records",
                          "pendingRecords",
                          "sourceNameservers",
                          "nameservers",
                          "hostedZoneId",
                          "changeId",
                          "planHash",
                          "verifiedAt",
                          "checkedAt",
                          "reason",
                          "observedNameservers",
                          "delegationEvidence",
                          "hostingMonthlyUsd"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|hostname|revision|recordsHash|status|ownershipRecord|records|pendingRecords|sourceNameservers|nameservers|hostedZoneId|changeId|planHash|verifiedAt|checkedAt|reason|observedNameservers|delegationEvidence|hostingMonthlyUsd)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "hostname",
                            "revision",
                            "recordsHash",
                            "status",
                            "ownershipRecord",
                            "records",
                            "pendingRecords",
                            "sourceNameservers",
                            "nameservers",
                            "hostedZoneId",
                            "changeId",
                            "planHash",
                            "verifiedAt",
                            "checkedAt",
                            "reason",
                            "observedNameservers",
                            "delegationEvidence",
                            "hostingMonthlyUsd"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_domain_nameservers"
      },
      "scopes": [
        "domain:manage_dns"
      ],
      "bundles": [
        "domain_manager"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "domainDns.list",
        "domainDns.get",
        "domainDns.plan",
        "domainDns.replan",
        "domainDns.provision",
        "domainDns.update",
        "domainDns.check"
      ],
      "invocations": [
        {
          "operationId": "domainDns.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains/dns-hosting",
          "workspaceScoped": false
        },
        {
          "operationId": "domainDns.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains/dns-hosting/:zoneId",
          "workspaceScoped": false
        },
        {
          "operationId": "domainDns.plan",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/dns-hosting",
          "workspaceScoped": false
        },
        {
          "operationId": "domainDns.replan",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/dns-hosting/:zoneId/plan",
          "workspaceScoped": false
        },
        {
          "operationId": "domainDns.provision",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/dns-hosting/:zoneId/provision",
          "workspaceScoped": false
        },
        {
          "operationId": "domainDns.update",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/dns-hosting/:zoneId/records",
          "workspaceScoped": false
        },
        {
          "operationId": "domainDns.check",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/dns-hosting/:zoneId/check",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "zoneId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "plan"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "hostname": {
                        "$ref": "#/$defs/DomainName"
                      },
                      "records": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "A",
                                "AAAA",
                                "CNAME",
                                "MX",
                                "TXT",
                                "CAA",
                                "SRV",
                                "NS",
                                "PTR",
                                "NAPTR",
                                "DS"
                              ]
                            },
                            "ttl": {
                              "type": "integer"
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 65536
                              },
                              "maxItems": 500
                            },
                            "aliasTarget": {
                              "type": "object",
                              "properties": {
                                "dnsName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253
                                },
                                "hostedZoneId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "evaluateTargetHealth": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "dnsName",
                                "hostedZoneId",
                                "evaluateTargetHealth"
                              ],
                              "patternProperties": {
                                "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "dnsName",
                                  "hostedZoneId",
                                  "evaluateTargetHealth"
                                ]
                              }
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "ttl",
                            "values"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "type",
                              "ttl",
                              "values",
                              "aliasTarget"
                            ]
                          }
                        },
                        "maxItems": 500
                      },
                      "sourceNameservers": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 253
                        },
                        "maxItems": 32
                      },
                      "completeExportAcknowledged": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "hostname",
                      "records",
                      "sourceNameservers",
                      "completeExportAcknowledged"
                    ],
                    "patternProperties": {
                      "^(?!(?:hostname|records|sourceNameservers|completeExportAcknowledged)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "hostname",
                        "records",
                        "sourceNameservers",
                        "completeExportAcknowledged"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "replan"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "records": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "A",
                                "AAAA",
                                "CNAME",
                                "MX",
                                "TXT",
                                "CAA",
                                "SRV",
                                "NS",
                                "PTR",
                                "NAPTR",
                                "DS"
                              ]
                            },
                            "ttl": {
                              "type": "integer"
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 65536
                              },
                              "maxItems": 500
                            },
                            "aliasTarget": {
                              "type": "object",
                              "properties": {
                                "dnsName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253
                                },
                                "hostedZoneId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "evaluateTargetHealth": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "dnsName",
                                "hostedZoneId",
                                "evaluateTargetHealth"
                              ],
                              "patternProperties": {
                                "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "dnsName",
                                  "hostedZoneId",
                                  "evaluateTargetHealth"
                                ]
                              }
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "ttl",
                            "values"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "type",
                              "ttl",
                              "values",
                              "aliasTarget"
                            ]
                          }
                        },
                        "maxItems": 500
                      },
                      "sourceNameservers": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 253
                        },
                        "maxItems": 32
                      },
                      "completeExportAcknowledged": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "expectedRevision",
                      "records",
                      "sourceNameservers",
                      "completeExportAcknowledged"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision|records|sourceNameservers|completeExportAcknowledged)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "expectedRevision",
                        "records",
                        "sourceNameservers",
                        "completeExportAcknowledged"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "zoneId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "provision"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "planHash": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "paidHostingAcknowledged": {
                        "type": "boolean"
                      },
                      "dnssecMigrationAcknowledged": {
                        "type": "boolean"
                      },
                      "providerCoordinationAcknowledged": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "expectedRevision",
                      "planHash",
                      "paidHostingAcknowledged",
                      "dnssecMigrationAcknowledged",
                      "providerCoordinationAcknowledged"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision|planHash|paidHostingAcknowledged|dnssecMigrationAcknowledged|providerCoordinationAcknowledged)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "expectedRevision",
                        "planHash",
                        "paidHostingAcknowledged",
                        "dnssecMigrationAcknowledged",
                        "providerCoordinationAcknowledged"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "zoneId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "expectedRecordsHash": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "records": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "A",
                                "AAAA",
                                "CNAME",
                                "MX",
                                "TXT",
                                "CAA",
                                "SRV",
                                "NS",
                                "PTR",
                                "NAPTR",
                                "DS"
                              ]
                            },
                            "ttl": {
                              "type": "integer"
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 65536
                              },
                              "maxItems": 500
                            },
                            "aliasTarget": {
                              "type": "object",
                              "properties": {
                                "dnsName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 253
                                },
                                "hostedZoneId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "evaluateTargetHealth": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "dnsName",
                                "hostedZoneId",
                                "evaluateTargetHealth"
                              ],
                              "patternProperties": {
                                "^(?!(?:dnsName|hostedZoneId|evaluateTargetHealth)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "dnsName",
                                  "hostedZoneId",
                                  "evaluateTargetHealth"
                                ]
                              }
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "ttl",
                            "values"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|type|ttl|values|aliasTarget)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "type",
                              "ttl",
                              "values",
                              "aliasTarget"
                            ]
                          }
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "expectedRevision",
                      "expectedRecordsHash",
                      "records"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision|expectedRecordsHash|records)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "expectedRevision",
                        "expectedRecordsHash",
                        "records"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "zoneId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "check"
                    ]
                  },
                  "zoneId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "expectedRevision"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "expectedRevision"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "zoneId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|zoneId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "zoneId",
                    "request"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "manage_heyreach_accounts",
      "description": "Maintain the workspace's LinkedIn sender accounts in HeyReach: reconnect a dropped session, re-read an account's state, choose how much of its inbox HeyReach scrapes, or remove it.\n\nUse when an account read shows an invalid or stale session, or when a person asks to retire a sender.\n\nConnecting a new sender, submitting its LinkedIn PIN, and changing its proxy all carry a password, cookies, a PIN, or a proxy secret, and are a person's job. Removing an account still assigned to campaigns needs `force`, and stops those campaigns from sending as it.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "reconnect"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|accountId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "accountId"
              ]
            }
          },
          {
            "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": [
                  "resync"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|accountId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "accountId"
              ]
            }
          },
          {
            "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": [
                  "update_inbox_configuration"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "inboxScrapeMode": {
                "$ref": "#/$defs/HeyReachInboxScrapeMode"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "accountId",
              "inboxScrapeMode"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|accountId|inboxScrapeMode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "accountId",
                "inboxScrapeMode"
              ]
            }
          },
          {
            "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": [
                  "remove"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "force": {
                "type": "boolean"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|accountId|force)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "accountId",
                "force"
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "HeyReachInboxScrapeMode": {
            "type": "string",
            "enum": [
              "AllTime",
              "HeyReachOnly"
            ]
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          }
        },
        "required": [
          "success"
        ],
        "patternProperties": {
          "^(?!(?:success)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "success"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_heyreach_accounts"
      },
      "scopes": [
        "integration:update",
        "inbox:connect",
        "inbox:update",
        "inbox:delete"
      ],
      "bundles": [
        "heyreach"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "heyreachAccounts.reconnect",
        "heyreachAccounts.resync",
        "heyreachAccounts.updateInboxConfiguration",
        "heyreachAccounts.remove"
      ],
      "invocations": [
        {
          "operationId": "heyreachAccounts.reconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts/:accountId/reconnect",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachAccounts.resync",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts/:accountId/resync",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachAccounts.updateInboxConfiguration",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts/:accountId/inbox-configuration",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachAccounts.remove",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts/:accountId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "reconnect"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|accountId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "accountId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "resync"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|accountId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "accountId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "update_inbox_configuration"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "inboxScrapeMode": {
                "$ref": "#/$defs/HeyReachInboxScrapeMode"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "accountId",
              "inboxScrapeMode"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|accountId|inboxScrapeMode)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "accountId",
                    "inboxScrapeMode"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "remove"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "force": {
                "type": "boolean"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|accountId|force)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "accountId",
                    "force"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "HeyReachInboxScrapeMode": {
            "type": "string",
            "enum": [
              "AllTime",
              "HeyReachOnly"
            ]
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "manage_heyreach_campaigns",
      "description": "Run the workspace's HeyReach LinkedIn campaigns: create one (from scratch or a template), change its settings, schedule, or action sequence, add, replace, or remove its senders, start, pause, or resume it, stop one lead, create a list, remove leads from a list, and set a lead's tags.\n\nUse to carry out an outreach plan a person has agreed to. Pausing and stopping a lead are always available; starting, resuming, and adding senders put real LinkedIn actions in motion and are refused on a frozen subscription.\n\nHeyReach cannot delete a campaign or a list, so create only what the person asked for — the server deduplicates retries of the same create. Creating campaigns and lists is disabled on preview deployments, which share a real HeyReach account. Tags must already exist in HeyReach; unknown tags are not created.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "create"
                ]
              },
              "create": {
                "$ref": "#/$defs/CreateHeyReachCampaignInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "create"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|create)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "create"
              ]
            }
          },
          {
            "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": [
                  "create_from_template"
                ]
              },
              "fromTemplate": {
                "$ref": "#/$defs/CreateHeyReachCampaignFromTemplateInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "fromTemplate"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|fromTemplate)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "fromTemplate"
              ]
            }
          },
          {
            "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": [
                  "update_settings"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "settings": {
                "$ref": "#/$defs/UpdateHeyReachCampaignSettingsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "settings"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId|settings)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId",
                "settings"
              ]
            }
          },
          {
            "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": [
                  "update_schedule"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "schedule": {
                "$ref": "#/$defs/HeyReachCampaignSchedule"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "schedule"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId|schedule)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId",
                "schedule"
              ]
            }
          },
          {
            "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": [
                  "update_sequence"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "sequence": {
                "$ref": "#/$defs/HeyReachCampaignSequence_1"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "sequence"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId|sequence)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId",
                "sequence"
              ]
            }
          },
          {
            "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": [
                  "add_accounts"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "accounts": {
                "$ref": "#/$defs/HeyReachCampaignAccountsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "accounts"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId|accounts)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId",
                "accounts"
              ]
            }
          },
          {
            "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": [
                  "set_accounts"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "accounts": {
                "$ref": "#/$defs/HeyReachCampaignAccountsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "accounts"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId|accounts)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId",
                "accounts"
              ]
            }
          },
          {
            "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": [
                  "remove_accounts"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "accounts": {
                "$ref": "#/$defs/HeyReachCampaignAccountsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "accounts"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId|accounts)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId",
                "accounts"
              ]
            }
          },
          {
            "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": [
                  "pause"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId"
              ]
            }
          },
          {
            "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": [
                  "resume"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId"
              ]
            }
          },
          {
            "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": [
                  "start"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId"
              ]
            }
          },
          {
            "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": [
                  "stop_lead"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "stopLead": {
                "$ref": "#/$defs/StopHeyReachLeadInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "stopLead"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|campaignId|stopLead)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "campaignId",
                "stopLead"
              ]
            }
          },
          {
            "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": [
                  "create_list"
                ]
              },
              "list": {
                "$ref": "#/$defs/CreateHeyReachListInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "list"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|list)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "list"
              ]
            }
          },
          {
            "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": [
                  "remove_list_leads"
                ]
              },
              "listId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "removeLeads": {
                "$ref": "#/$defs/RemoveHeyReachListLeadsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "listId",
              "removeLeads"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|listId|removeLeads)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "listId",
                "removeLeads"
              ]
            }
          },
          {
            "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": [
                  "add_lead_tags"
                ]
              },
              "tags": {
                "$ref": "#/$defs/SetHeyReachLeadTagsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "tags"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|tags)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "tags"
              ]
            }
          },
          {
            "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": [
                  "replace_lead_tags"
                ]
              },
              "tags": {
                "$ref": "#/$defs/SetHeyReachLeadTagsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "tags"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|tags)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "tags"
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "HeyReachCampaignSchedule": {
            "type": "object",
            "properties": {
              "dailyStartTime": {
                "type": "string",
                "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$|^24:00:00$"
              },
              "dailyEndTime": {
                "type": "string",
                "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$|^24:00:00$"
              },
              "timeZoneId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "enabledMonday": {
                "type": "boolean"
              },
              "enabledTuesday": {
                "type": "boolean"
              },
              "enabledWednesday": {
                "type": "boolean"
              },
              "enabledThursday": {
                "type": "boolean"
              },
              "enabledFriday": {
                "type": "boolean"
              },
              "enabledSaturday": {
                "type": "boolean"
              },
              "enabledSunday": {
                "type": "boolean"
              },
              "startDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "dailyStartTime",
              "dailyEndTime",
              "timeZoneId"
            ],
            "patternProperties": {
              "^(?!(?:dailyStartTime|dailyEndTime|timeZoneId|enabledMonday|enabledTuesday|enabledWednesday|enabledThursday|enabledFriday|enabledSaturday|enabledSunday|startDate|endDate)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "dailyStartTime",
                "dailyEndTime",
                "timeZoneId",
                "enabledMonday",
                "enabledTuesday",
                "enabledWednesday",
                "enabledThursday",
                "enabledFriday",
                "enabledSaturday",
                "enabledSunday",
                "startDate",
                "endDate"
              ]
            }
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "HeyReachDocument": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/$defs/Union_"
            }
          },
          "HeyReachSequenceNode": {
            "type": "object",
            "properties": {
              "nodeType": {
                "type": "string",
                "enum": [
                  "CONNECTION_REQUEST",
                  "MESSAGE",
                  "INMAIL",
                  "VIEW_PROFILE",
                  "FOLLOW",
                  "LIKE_POST",
                  "FIND_EMAIL",
                  "CHECK_IS_CONNECTION",
                  "CHECK_IS_OPEN_PROFILE",
                  "SEND_LEAD_TO_INSTANTLY",
                  "SEND_LEAD_TO_SMARTLEAD",
                  "SEND_LEAD_TO_BISON",
                  "END"
                ]
              },
              "actionDelay": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "actionDelayUnit": {
                "type": "string",
                "enum": [
                  "HOUR",
                  "DAY"
                ]
              },
              "externalReference": {
                "type": "string",
                "minLength": 0,
                "maxLength": 100
              },
              "payload": {
                "$ref": "#/$defs/HeyReachDocument"
              },
              "unconditionalNode": {
                "$ref": "#/$defs/Suspend_"
              },
              "conditionalNode": {
                "$ref": "#/$defs/HeyReachSequenceNode"
              }
            },
            "required": [
              "nodeType"
            ],
            "patternProperties": {
              "^(?!(?:nodeType|actionDelay|actionDelayUnit|externalReference|payload|unconditionalNode|conditionalNode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "nodeType",
                "actionDelay",
                "actionDelayUnit",
                "externalReference",
                "payload",
                "unconditionalNode",
                "conditionalNode"
              ]
            }
          },
          "Suspend_": {
            "$ref": "#/$defs/HeyReachSequenceNode"
          },
          "HeyReachCampaignSequence": {
            "type": "object",
            "properties": {
              "nodeType": {
                "type": "string",
                "enum": [
                  "CONNECTION_REQUEST",
                  "MESSAGE",
                  "INMAIL",
                  "VIEW_PROFILE",
                  "FOLLOW",
                  "LIKE_POST",
                  "FIND_EMAIL",
                  "CHECK_IS_CONNECTION",
                  "CHECK_IS_OPEN_PROFILE",
                  "SEND_LEAD_TO_INSTANTLY",
                  "SEND_LEAD_TO_SMARTLEAD",
                  "SEND_LEAD_TO_BISON",
                  "END"
                ]
              },
              "actionDelay": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "actionDelayUnit": {
                "type": "string",
                "enum": [
                  "HOUR",
                  "DAY"
                ]
              },
              "externalReference": {
                "type": "string",
                "minLength": 0,
                "maxLength": 100
              },
              "payload": {
                "$ref": "#/$defs/HeyReachDocument"
              },
              "unconditionalNode": {
                "$ref": "#/$defs/Suspend_"
              },
              "conditionalNode": {
                "$ref": "#/$defs/HeyReachSequenceNode"
              }
            },
            "required": [
              "nodeType"
            ],
            "patternProperties": {
              "^(?!(?:nodeType|actionDelay|actionDelayUnit|externalReference|payload|unconditionalNode|conditionalNode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "nodeType",
                "actionDelay",
                "actionDelayUnit",
                "externalReference",
                "payload",
                "unconditionalNode",
                "conditionalNode"
              ]
            }
          },
          "CreateHeyReachCampaignInput": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50
              },
              "linkedInUserListId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "linkedInAccountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 1,
                "maxItems": 100
              },
              "excludeContactedFromOtherCampaigns": {
                "type": "boolean"
              },
              "excludeHasOtherAccConversations": {
                "type": "boolean"
              },
              "excludeContactedFromSenderInOtherCampaign": {
                "type": "boolean"
              },
              "excludeListId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "schedule": {
                "$ref": "#/$defs/HeyReachCampaignSchedule"
              },
              "sequence": {
                "$ref": "#/$defs/HeyReachCampaignSequence"
              }
            },
            "required": [
              "name",
              "linkedInUserListId",
              "linkedInAccountIds"
            ],
            "patternProperties": {
              "^(?!(?:name|linkedInUserListId|linkedInAccountIds|excludeContactedFromOtherCampaigns|excludeHasOtherAccConversations|excludeContactedFromSenderInOtherCampaign|excludeListId|schedule|sequence)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "linkedInUserListId",
                "linkedInAccountIds",
                "excludeContactedFromOtherCampaigns",
                "excludeHasOtherAccConversations",
                "excludeContactedFromSenderInOtherCampaign",
                "excludeListId",
                "schedule",
                "sequence"
              ]
            }
          },
          "CreateHeyReachCampaignFromTemplateInput": {
            "type": "object",
            "properties": {
              "campaignIdForTemplate": {
                "$ref": "#/$defs/HeyReachId"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50
              },
              "linkedInUserListId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "linkedInAccountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 1,
                "maxItems": 100
              },
              "excludeContactedFromOtherCampaigns": {
                "type": "boolean"
              },
              "excludeHasOtherAccConversations": {
                "type": "boolean"
              },
              "excludeContactedFromSenderInOtherCampaign": {
                "type": "boolean"
              },
              "excludeListId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "campaignIdForTemplate",
              "name",
              "linkedInUserListId",
              "linkedInAccountIds",
              "excludeContactedFromOtherCampaigns",
              "excludeHasOtherAccConversations",
              "excludeContactedFromSenderInOtherCampaign"
            ],
            "patternProperties": {
              "^(?!(?:campaignIdForTemplate|name|linkedInUserListId|linkedInAccountIds|excludeContactedFromOtherCampaigns|excludeHasOtherAccConversations|excludeContactedFromSenderInOtherCampaign|excludeListId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "campaignIdForTemplate",
                "name",
                "linkedInUserListId",
                "linkedInAccountIds",
                "excludeContactedFromOtherCampaigns",
                "excludeHasOtherAccConversations",
                "excludeContactedFromSenderInOtherCampaign",
                "excludeListId"
              ]
            }
          },
          "UpdateHeyReachCampaignSettingsInput": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50
              },
              "linkedInUserListId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "excludeContactedFromOtherCampaigns": {
                "type": "boolean"
              },
              "excludeHasOtherAccConversations": {
                "type": "boolean"
              },
              "excludeContactedFromSenderInOtherCampaign": {
                "type": "boolean"
              },
              "excludeListId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "linkedInUserListId",
              "excludeContactedFromOtherCampaigns",
              "excludeHasOtherAccConversations",
              "excludeContactedFromSenderInOtherCampaign",
              "excludeListId"
            ],
            "patternProperties": {
              "^(?!(?:name|linkedInUserListId|excludeContactedFromOtherCampaigns|excludeHasOtherAccConversations|excludeContactedFromSenderInOtherCampaign|excludeListId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "linkedInUserListId",
                "excludeContactedFromOtherCampaigns",
                "excludeHasOtherAccConversations",
                "excludeContactedFromSenderInOtherCampaign",
                "excludeListId"
              ]
            }
          },
          "HeyReachCampaignSequence_1": {
            "type": "object",
            "properties": {
              "nodeType": {
                "type": "string",
                "enum": [
                  "CONNECTION_REQUEST",
                  "MESSAGE",
                  "INMAIL",
                  "VIEW_PROFILE",
                  "FOLLOW",
                  "LIKE_POST",
                  "FIND_EMAIL",
                  "CHECK_IS_CONNECTION",
                  "CHECK_IS_OPEN_PROFILE",
                  "SEND_LEAD_TO_INSTANTLY",
                  "SEND_LEAD_TO_SMARTLEAD",
                  "SEND_LEAD_TO_BISON",
                  "END"
                ]
              },
              "actionDelay": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "actionDelayUnit": {
                "type": "string",
                "enum": [
                  "HOUR",
                  "DAY"
                ]
              },
              "externalReference": {
                "type": "string",
                "minLength": 0,
                "maxLength": 100
              },
              "payload": {
                "$ref": "#/$defs/HeyReachDocument"
              },
              "unconditionalNode": {
                "$ref": "#/$defs/Suspend_"
              },
              "conditionalNode": {
                "$ref": "#/$defs/HeyReachSequenceNode"
              }
            },
            "required": [
              "nodeType"
            ],
            "patternProperties": {
              "^(?!(?:nodeType|actionDelay|actionDelayUnit|externalReference|payload|unconditionalNode|conditionalNode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "nodeType",
                "actionDelay",
                "actionDelayUnit",
                "externalReference",
                "payload",
                "unconditionalNode",
                "conditionalNode"
              ]
            }
          },
          "HeyReachCampaignAccountsInput": {
            "type": "object",
            "properties": {
              "linkedInAccountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "linkedInAccountIds"
            ],
            "patternProperties": {
              "^(?!(?:linkedInAccountIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "linkedInAccountIds"
                  ]
                }
              ]
            }
          },
          "LinkedInProfileUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "StopHeyReachLeadInput": {
            "type": "object",
            "properties": {
              "leadUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              },
              "leadMemberId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "leadUrl"
            ],
            "patternProperties": {
              "^(?!(?:leadUrl|leadMemberId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "leadUrl",
                "leadMemberId"
              ]
            }
          },
          "HeyReachListType": {
            "type": "string",
            "enum": [
              "USER_LIST",
              "COMPANY_LIST"
            ]
          },
          "CreateHeyReachListInput": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "type": {
                "$ref": "#/$defs/HeyReachListType"
              }
            },
            "required": [
              "name"
            ],
            "patternProperties": {
              "^(?!(?:name|type)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "type"
              ]
            }
          },
          "RemoveHeyReachListLeadsInput": {
            "type": "object",
            "properties": {
              "profileUrls": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/LinkedInProfileUrl"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "profileUrls"
            ],
            "patternProperties": {
              "^(?!(?:profileUrls)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "profileUrls"
                  ]
                }
              ]
            }
          },
          "SetHeyReachLeadTagsInput": {
            "type": "object",
            "properties": {
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "maxItems": 100
              }
            },
            "required": [
              "profileUrl",
              "tags"
            ],
            "patternProperties": {
              "^(?!(?:profileUrl|tags)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "profileUrl",
                "tags"
              ]
            }
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "HeyReachCampaignCreated": {
            "type": "object",
            "properties": {
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "campaignId"
                  ]
                }
              ]
            }
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "HeyReachDocument": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/$defs/Union_"
            }
          },
          "HeyReachText": {
            "type": "string",
            "minLength": 0,
            "maxLength": 10000
          },
          "HeyReachList": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/HeyReachId"
              },
              "name": {
                "$ref": "#/$defs/HeyReachText"
              },
              "totalItemsCount": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "count": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "listType": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "creationTime": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "campaignIds": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HeyReachId"
                    },
                    "maxItems": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "totalItemsCount",
              "count",
              "listType",
              "creationTime",
              "campaignIds"
            ],
            "patternProperties": {
              "^(?!(?:id|name|totalItemsCount|count|listType|creationTime|campaignIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "name",
                "totalItemsCount",
                "count",
                "listType",
                "creationTime",
                "campaignIds"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachCampaignCreated"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "success"
                    ],
                    "patternProperties": {
                      "^(?!(?:success)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "success"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "$ref": "#/$defs/HeyReachDocument"
                  },
                  {
                    "$ref": "#/$defs/HeyReachList"
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HeyReachCampaignCreated"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "success"
                        ],
                        "patternProperties": {
                          "^(?!(?:success)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "success"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "$ref": "#/$defs/HeyReachDocument"
                      },
                      {
                        "$ref": "#/$defs/HeyReachList"
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_heyreach_campaigns"
      },
      "scopes": [
        "integration:update",
        "campaign:create",
        "campaign:update",
        "campaign:launch",
        "campaign:pause"
      ],
      "bundles": [
        "heyreach"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "heyreachCampaigns.create",
        "heyreachCampaigns.createFromTemplate",
        "heyreachCampaigns.updateSettings",
        "heyreachCampaigns.updateSchedule",
        "heyreachCampaigns.updateSequence",
        "heyreachCampaigns.addAccounts",
        "heyreachCampaigns.setAccounts",
        "heyreachCampaigns.removeAccounts",
        "heyreachCampaigns.pause",
        "heyreachCampaigns.resume",
        "heyreachCampaigns.start",
        "heyreachCampaigns.stopLead",
        "heyreachLists.create",
        "heyreachLists.deleteLeads",
        "heyreachLeads.addTags",
        "heyreachLeads.replaceTags"
      ],
      "invocations": [
        {
          "operationId": "heyreachCampaigns.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.createFromTemplate",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/from-template",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.updateSettings",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/settings",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.updateSchedule",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/schedule",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.updateSequence",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/sequence",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.addAccounts",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/accounts",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.setAccounts",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/accounts",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.removeAccounts",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/accounts/remove",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.pause",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/pause",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.resume",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/resume",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.start",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/start",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.stopLead",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/leads/stop",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLists.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/lists",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLists.deleteLeads",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/lists/:listId/leads/remove",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLeads.addTags",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/leads/tags",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLeads.replaceTags",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/leads/tags",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "create"
                ]
              },
              "create": {
                "$ref": "#/$defs/CreateHeyReachCampaignInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "create"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|create)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "create"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "create_from_template"
                ]
              },
              "fromTemplate": {
                "$ref": "#/$defs/CreateHeyReachCampaignFromTemplateInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "fromTemplate"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|fromTemplate)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "fromTemplate"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "update_settings"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "settings": {
                "$ref": "#/$defs/UpdateHeyReachCampaignSettingsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "settings"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId|settings)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId",
                    "settings"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "update_schedule"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "schedule": {
                "$ref": "#/$defs/HeyReachCampaignSchedule"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "schedule"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId|schedule)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId",
                    "schedule"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "update_sequence"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "sequence": {
                "$ref": "#/$defs/HeyReachCampaignSequence_1"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "sequence"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId|sequence)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId",
                    "sequence"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "add_accounts"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "accounts": {
                "$ref": "#/$defs/HeyReachCampaignAccountsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "accounts"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId|accounts)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId",
                    "accounts"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "set_accounts"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "accounts": {
                "$ref": "#/$defs/HeyReachCampaignAccountsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "accounts"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId|accounts)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId",
                    "accounts"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "remove_accounts"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "accounts": {
                "$ref": "#/$defs/HeyReachCampaignAccountsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "accounts"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId|accounts)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId",
                    "accounts"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "pause"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "resume"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "start"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "stop_lead"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "stopLead": {
                "$ref": "#/$defs/StopHeyReachLeadInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "campaignId",
              "stopLead"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|campaignId|stopLead)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "campaignId",
                    "stopLead"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "create_list"
                ]
              },
              "list": {
                "$ref": "#/$defs/CreateHeyReachListInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "list"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|list)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "list"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "remove_list_leads"
                ]
              },
              "listId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "removeLeads": {
                "$ref": "#/$defs/RemoveHeyReachListLeadsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "listId",
              "removeLeads"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|listId|removeLeads)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "listId",
                    "removeLeads"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "add_lead_tags"
                ]
              },
              "tags": {
                "$ref": "#/$defs/SetHeyReachLeadTagsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "tags"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|tags)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "tags"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "replace_lead_tags"
                ]
              },
              "tags": {
                "$ref": "#/$defs/SetHeyReachLeadTagsInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "tags"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|tags)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "tags"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "HeyReachCampaignSchedule": {
            "type": "object",
            "properties": {
              "dailyStartTime": {
                "type": "string",
                "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$|^24:00:00$"
              },
              "dailyEndTime": {
                "type": "string",
                "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$|^24:00:00$"
              },
              "timeZoneId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "enabledMonday": {
                "type": "boolean"
              },
              "enabledTuesday": {
                "type": "boolean"
              },
              "enabledWednesday": {
                "type": "boolean"
              },
              "enabledThursday": {
                "type": "boolean"
              },
              "enabledFriday": {
                "type": "boolean"
              },
              "enabledSaturday": {
                "type": "boolean"
              },
              "enabledSunday": {
                "type": "boolean"
              },
              "startDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "dailyStartTime",
              "dailyEndTime",
              "timeZoneId"
            ],
            "patternProperties": {
              "^(?!(?:dailyStartTime|dailyEndTime|timeZoneId|enabledMonday|enabledTuesday|enabledWednesday|enabledThursday|enabledFriday|enabledSaturday|enabledSunday|startDate|endDate)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "dailyStartTime",
                "dailyEndTime",
                "timeZoneId",
                "enabledMonday",
                "enabledTuesday",
                "enabledWednesday",
                "enabledThursday",
                "enabledFriday",
                "enabledSaturday",
                "enabledSunday",
                "startDate",
                "endDate"
              ]
            }
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "HeyReachDocument": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/$defs/Union_"
            }
          },
          "HeyReachSequenceNode": {
            "type": "object",
            "properties": {
              "nodeType": {
                "type": "string",
                "enum": [
                  "CONNECTION_REQUEST",
                  "MESSAGE",
                  "INMAIL",
                  "VIEW_PROFILE",
                  "FOLLOW",
                  "LIKE_POST",
                  "FIND_EMAIL",
                  "CHECK_IS_CONNECTION",
                  "CHECK_IS_OPEN_PROFILE",
                  "SEND_LEAD_TO_INSTANTLY",
                  "SEND_LEAD_TO_SMARTLEAD",
                  "SEND_LEAD_TO_BISON",
                  "END"
                ]
              },
              "actionDelay": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "actionDelayUnit": {
                "type": "string",
                "enum": [
                  "HOUR",
                  "DAY"
                ]
              },
              "externalReference": {
                "type": "string",
                "minLength": 0,
                "maxLength": 100
              },
              "payload": {
                "$ref": "#/$defs/HeyReachDocument"
              },
              "unconditionalNode": {
                "$ref": "#/$defs/Suspend_"
              },
              "conditionalNode": {
                "$ref": "#/$defs/HeyReachSequenceNode"
              }
            },
            "required": [
              "nodeType"
            ],
            "patternProperties": {
              "^(?!(?:nodeType|actionDelay|actionDelayUnit|externalReference|payload|unconditionalNode|conditionalNode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "nodeType",
                "actionDelay",
                "actionDelayUnit",
                "externalReference",
                "payload",
                "unconditionalNode",
                "conditionalNode"
              ]
            }
          },
          "Suspend_": {
            "$ref": "#/$defs/HeyReachSequenceNode"
          },
          "HeyReachCampaignSequence": {
            "type": "object",
            "properties": {
              "nodeType": {
                "type": "string",
                "enum": [
                  "CONNECTION_REQUEST",
                  "MESSAGE",
                  "INMAIL",
                  "VIEW_PROFILE",
                  "FOLLOW",
                  "LIKE_POST",
                  "FIND_EMAIL",
                  "CHECK_IS_CONNECTION",
                  "CHECK_IS_OPEN_PROFILE",
                  "SEND_LEAD_TO_INSTANTLY",
                  "SEND_LEAD_TO_SMARTLEAD",
                  "SEND_LEAD_TO_BISON",
                  "END"
                ]
              },
              "actionDelay": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "actionDelayUnit": {
                "type": "string",
                "enum": [
                  "HOUR",
                  "DAY"
                ]
              },
              "externalReference": {
                "type": "string",
                "minLength": 0,
                "maxLength": 100
              },
              "payload": {
                "$ref": "#/$defs/HeyReachDocument"
              },
              "unconditionalNode": {
                "$ref": "#/$defs/Suspend_"
              },
              "conditionalNode": {
                "$ref": "#/$defs/HeyReachSequenceNode"
              }
            },
            "required": [
              "nodeType"
            ],
            "patternProperties": {
              "^(?!(?:nodeType|actionDelay|actionDelayUnit|externalReference|payload|unconditionalNode|conditionalNode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "nodeType",
                "actionDelay",
                "actionDelayUnit",
                "externalReference",
                "payload",
                "unconditionalNode",
                "conditionalNode"
              ]
            }
          },
          "CreateHeyReachCampaignInput": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50
              },
              "linkedInUserListId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "linkedInAccountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 1,
                "maxItems": 100
              },
              "excludeContactedFromOtherCampaigns": {
                "type": "boolean"
              },
              "excludeHasOtherAccConversations": {
                "type": "boolean"
              },
              "excludeContactedFromSenderInOtherCampaign": {
                "type": "boolean"
              },
              "excludeListId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "schedule": {
                "$ref": "#/$defs/HeyReachCampaignSchedule"
              },
              "sequence": {
                "$ref": "#/$defs/HeyReachCampaignSequence"
              }
            },
            "required": [
              "name",
              "linkedInUserListId",
              "linkedInAccountIds"
            ],
            "patternProperties": {
              "^(?!(?:name|linkedInUserListId|linkedInAccountIds|excludeContactedFromOtherCampaigns|excludeHasOtherAccConversations|excludeContactedFromSenderInOtherCampaign|excludeListId|schedule|sequence)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "linkedInUserListId",
                "linkedInAccountIds",
                "excludeContactedFromOtherCampaigns",
                "excludeHasOtherAccConversations",
                "excludeContactedFromSenderInOtherCampaign",
                "excludeListId",
                "schedule",
                "sequence"
              ]
            }
          },
          "CreateHeyReachCampaignFromTemplateInput": {
            "type": "object",
            "properties": {
              "campaignIdForTemplate": {
                "$ref": "#/$defs/HeyReachId"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50
              },
              "linkedInUserListId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "linkedInAccountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 1,
                "maxItems": 100
              },
              "excludeContactedFromOtherCampaigns": {
                "type": "boolean"
              },
              "excludeHasOtherAccConversations": {
                "type": "boolean"
              },
              "excludeContactedFromSenderInOtherCampaign": {
                "type": "boolean"
              },
              "excludeListId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "campaignIdForTemplate",
              "name",
              "linkedInUserListId",
              "linkedInAccountIds",
              "excludeContactedFromOtherCampaigns",
              "excludeHasOtherAccConversations",
              "excludeContactedFromSenderInOtherCampaign"
            ],
            "patternProperties": {
              "^(?!(?:campaignIdForTemplate|name|linkedInUserListId|linkedInAccountIds|excludeContactedFromOtherCampaigns|excludeHasOtherAccConversations|excludeContactedFromSenderInOtherCampaign|excludeListId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "campaignIdForTemplate",
                "name",
                "linkedInUserListId",
                "linkedInAccountIds",
                "excludeContactedFromOtherCampaigns",
                "excludeHasOtherAccConversations",
                "excludeContactedFromSenderInOtherCampaign",
                "excludeListId"
              ]
            }
          },
          "UpdateHeyReachCampaignSettingsInput": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50
              },
              "linkedInUserListId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "excludeContactedFromOtherCampaigns": {
                "type": "boolean"
              },
              "excludeHasOtherAccConversations": {
                "type": "boolean"
              },
              "excludeContactedFromSenderInOtherCampaign": {
                "type": "boolean"
              },
              "excludeListId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "linkedInUserListId",
              "excludeContactedFromOtherCampaigns",
              "excludeHasOtherAccConversations",
              "excludeContactedFromSenderInOtherCampaign",
              "excludeListId"
            ],
            "patternProperties": {
              "^(?!(?:name|linkedInUserListId|excludeContactedFromOtherCampaigns|excludeHasOtherAccConversations|excludeContactedFromSenderInOtherCampaign|excludeListId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "linkedInUserListId",
                "excludeContactedFromOtherCampaigns",
                "excludeHasOtherAccConversations",
                "excludeContactedFromSenderInOtherCampaign",
                "excludeListId"
              ]
            }
          },
          "HeyReachCampaignSequence_1": {
            "type": "object",
            "properties": {
              "nodeType": {
                "type": "string",
                "enum": [
                  "CONNECTION_REQUEST",
                  "MESSAGE",
                  "INMAIL",
                  "VIEW_PROFILE",
                  "FOLLOW",
                  "LIKE_POST",
                  "FIND_EMAIL",
                  "CHECK_IS_CONNECTION",
                  "CHECK_IS_OPEN_PROFILE",
                  "SEND_LEAD_TO_INSTANTLY",
                  "SEND_LEAD_TO_SMARTLEAD",
                  "SEND_LEAD_TO_BISON",
                  "END"
                ]
              },
              "actionDelay": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "actionDelayUnit": {
                "type": "string",
                "enum": [
                  "HOUR",
                  "DAY"
                ]
              },
              "externalReference": {
                "type": "string",
                "minLength": 0,
                "maxLength": 100
              },
              "payload": {
                "$ref": "#/$defs/HeyReachDocument"
              },
              "unconditionalNode": {
                "$ref": "#/$defs/Suspend_"
              },
              "conditionalNode": {
                "$ref": "#/$defs/HeyReachSequenceNode"
              }
            },
            "required": [
              "nodeType"
            ],
            "patternProperties": {
              "^(?!(?:nodeType|actionDelay|actionDelayUnit|externalReference|payload|unconditionalNode|conditionalNode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "nodeType",
                "actionDelay",
                "actionDelayUnit",
                "externalReference",
                "payload",
                "unconditionalNode",
                "conditionalNode"
              ]
            }
          },
          "HeyReachCampaignAccountsInput": {
            "type": "object",
            "properties": {
              "linkedInAccountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "linkedInAccountIds"
            ],
            "patternProperties": {
              "^(?!(?:linkedInAccountIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "linkedInAccountIds"
                  ]
                }
              ]
            }
          },
          "LinkedInProfileUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "StopHeyReachLeadInput": {
            "type": "object",
            "properties": {
              "leadUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              },
              "leadMemberId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "leadUrl"
            ],
            "patternProperties": {
              "^(?!(?:leadUrl|leadMemberId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "leadUrl",
                "leadMemberId"
              ]
            }
          },
          "HeyReachListType": {
            "type": "string",
            "enum": [
              "USER_LIST",
              "COMPANY_LIST"
            ]
          },
          "CreateHeyReachListInput": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "type": {
                "$ref": "#/$defs/HeyReachListType"
              }
            },
            "required": [
              "name"
            ],
            "patternProperties": {
              "^(?!(?:name|type)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "type"
              ]
            }
          },
          "RemoveHeyReachListLeadsInput": {
            "type": "object",
            "properties": {
              "profileUrls": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/LinkedInProfileUrl"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "profileUrls"
            ],
            "patternProperties": {
              "^(?!(?:profileUrls)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "profileUrls"
                  ]
                }
              ]
            }
          },
          "SetHeyReachLeadTagsInput": {
            "type": "object",
            "properties": {
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "maxItems": 100
              }
            },
            "required": [
              "profileUrl",
              "tags"
            ],
            "patternProperties": {
              "^(?!(?:profileUrl|tags)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "profileUrl",
                "tags"
              ]
            }
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "manage_heyreach_connection",
      "description": "Keep the workspace's HeyReach connection healthy: re-validate the stored key, restore the reply subscription native campaigns stop on, subscribe to or remove HeyReach webhook events, or disconnect HeyReach entirely.\n\nUse when the connection read says reply tracking is not live, when a person asks to receive a HeyReach event type, or to retire the integration. Disconnect removes every subscription first and only then retires the key.\n\nThis never enters or rotates the API key — that is a person's job in Settings. Disconnect and webhook removal are refused while a registration is still being confirmed; retry after two minutes. Disconnecting stops LinkedIn reply tracking for every native campaign.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "test"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action"
              ]
            }
          },
          {
            "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": [
                  "ensure_reply_webhook"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action"
              ]
            }
          },
          {
            "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": [
                  "disconnect"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action"
              ]
            }
          },
          {
            "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": [
                  "create_webhook"
                ]
              },
              "webhook": {
                "$ref": "#/$defs/CreateHeyReachWebhookInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "webhook"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|webhook)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "webhook"
              ]
            }
          },
          {
            "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": [
                  "delete_webhook"
                ]
              },
              "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"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "webhookId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|webhookId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "webhookId"
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachWebhookEventType": {
            "type": "string",
            "enum": [
              "CONNECTION_REQUEST_SENT",
              "CONNECTION_REQUEST_ACCEPTED",
              "MESSAGE_SENT",
              "MESSAGE_REPLY_RECEIVED",
              "INMAIL_SENT",
              "INMAIL_REPLY_RECEIVED",
              "EVERY_MESSAGE_REPLY_RECEIVED",
              "FOLLOW_SENT",
              "LIKED_POST",
              "VIEWED_PROFILE",
              "CAMPAIGN_COMPLETED",
              "LEAD_TAG_UPDATED"
            ]
          },
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "CreateHeyReachWebhookInput": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "eventType": {
                "$ref": "#/$defs/HeyReachWebhookEventType"
              },
              "campaignIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              }
            },
            "required": [
              "eventType"
            ],
            "patternProperties": {
              "^(?!(?:name|eventType|campaignIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "eventType",
                "campaignIds"
              ]
            }
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "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$"
          },
          "HeyReachConnectionStatus": {
            "type": "object",
            "properties": {
              "connected": {
                "type": "boolean"
              },
              "replyWebhookReady": {
                "type": "boolean"
              },
              "connectionId": {
                "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"
                  }
                ]
              },
              "credential": {
                "anyOf": [
                  {
                    "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"
                      },
                      "provider": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "kind": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "connected",
                          "needs_reauthorization",
                          "disabled",
                          "disconnected"
                        ]
                      },
                      "fingerprint": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "lastFour": {
                        "type": "string",
                        "pattern": "^.{4}$"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "lastUsedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "provider",
                      "kind",
                      "status",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|provider|kind|status|fingerprint|lastFour|createdAt|updatedAt|lastUsedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "provider",
                        "kind",
                        "status",
                        "fingerprint",
                        "lastFour",
                        "createdAt",
                        "updatedAt",
                        "lastUsedAt"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "connectedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastCheckedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "connected",
              "replyWebhookReady",
              "connectionId",
              "credential",
              "connectedAt",
              "lastCheckedAt"
            ],
            "patternProperties": {
              "^(?!(?:connected|replyWebhookReady|connectionId|credential|connectedAt|lastCheckedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "connected",
                "replyWebhookReady",
                "connectionId",
                "credential",
                "connectedAt",
                "lastCheckedAt"
              ]
            }
          },
          "HeyReachDisconnectResult": {
            "type": "object",
            "properties": {
              "connected": {
                "type": "boolean",
                "enum": [
                  false
                ]
              },
              "removedWebhookCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "disconnectedAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "connected",
              "removedWebhookCount",
              "disconnectedAt"
            ],
            "patternProperties": {
              "^(?!(?:connected|removedWebhookCount|disconnectedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "connected",
                "removedWebhookCount",
                "disconnectedAt"
              ]
            }
          },
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HeyReachWebhookEventType": {
            "type": "string",
            "enum": [
              "CONNECTION_REQUEST_SENT",
              "CONNECTION_REQUEST_ACCEPTED",
              "MESSAGE_SENT",
              "MESSAGE_REPLY_RECEIVED",
              "INMAIL_SENT",
              "INMAIL_REPLY_RECEIVED",
              "EVERY_MESSAGE_REPLY_RECEIVED",
              "FOLLOW_SENT",
              "LIKED_POST",
              "VIEWED_PROFILE",
              "CAMPAIGN_COMPLETED",
              "LEAD_TAG_UPDATED"
            ]
          },
          "HeyReachWebhookStatus": {
            "type": "string",
            "enum": [
              "pending",
              "active",
              "failed",
              "deleting"
            ]
          },
          "HeyReachWebhook": {
            "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"
              },
              "remoteId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "eventType": {
                "$ref": "#/$defs/HeyReachWebhookEventType"
              },
              "campaignIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "maxItems": 100
              },
              "status": {
                "$ref": "#/$defs/HeyReachWebhookStatus"
              },
              "lastReceivedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "id",
              "remoteId",
              "name",
              "eventType",
              "campaignIds",
              "status",
              "lastReceivedAt",
              "createdAt"
            ],
            "patternProperties": {
              "^(?!(?:id|remoteId|name|eventType|campaignIds|status|lastReceivedAt|createdAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "remoteId",
                "name",
                "eventType",
                "campaignIds",
                "status",
                "lastReceivedAt",
                "createdAt"
              ]
            }
          },
          "HeyReachWebhookDeleted": {
            "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"
              },
              "deleted": {
                "type": "boolean",
                "enum": [
                  true
                ]
              }
            },
            "required": [
              "webhookId",
              "deleted"
            ],
            "patternProperties": {
              "^(?!(?:webhookId|deleted)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "webhookId",
                "deleted"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachConnectionStatus"
                  },
                  {
                    "$ref": "#/$defs/HeyReachDisconnectResult"
                  },
                  {
                    "$ref": "#/$defs/HeyReachWebhook"
                  },
                  {
                    "$ref": "#/$defs/HeyReachWebhookDeleted"
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HeyReachConnectionStatus"
                      },
                      {
                        "$ref": "#/$defs/HeyReachDisconnectResult"
                      },
                      {
                        "$ref": "#/$defs/HeyReachWebhook"
                      },
                      {
                        "$ref": "#/$defs/HeyReachWebhookDeleted"
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_heyreach_connection"
      },
      "scopes": [
        "integration:read",
        "integration:update",
        "integration:delete"
      ],
      "bundles": [
        "heyreach"
      ],
      "risk": "security_admin",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "heyreachConnection.test",
        "heyreachConnection.ensureReplyWebhook",
        "heyreachConnection.disconnect",
        "heyreachWebhooks.create",
        "heyreachWebhooks.delete"
      ],
      "invocations": [
        {
          "operationId": "heyreachConnection.test",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/test",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachConnection.ensureReplyWebhook",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/reply-webhook",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachConnection.disconnect",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/disconnect",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachWebhooks.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/webhooks",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachWebhooks.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/webhooks/:webhookId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "test"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "ensure_reply_webhook"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "disconnect"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "create_webhook"
                ]
              },
              "webhook": {
                "$ref": "#/$defs/CreateHeyReachWebhookInput"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "webhook"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|webhook)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "webhook"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "delete_webhook"
                ]
              },
              "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"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "webhookId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|webhookId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "webhookId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachWebhookEventType": {
            "type": "string",
            "enum": [
              "CONNECTION_REQUEST_SENT",
              "CONNECTION_REQUEST_ACCEPTED",
              "MESSAGE_SENT",
              "MESSAGE_REPLY_RECEIVED",
              "INMAIL_SENT",
              "INMAIL_REPLY_RECEIVED",
              "EVERY_MESSAGE_REPLY_RECEIVED",
              "FOLLOW_SENT",
              "LIKED_POST",
              "VIEWED_PROFILE",
              "CAMPAIGN_COMPLETED",
              "LEAD_TAG_UPDATED"
            ]
          },
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "CreateHeyReachWebhookInput": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "eventType": {
                "$ref": "#/$defs/HeyReachWebhookEventType"
              },
              "campaignIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              }
            },
            "required": [
              "eventType"
            ],
            "patternProperties": {
              "^(?!(?:name|eventType|campaignIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "name",
                "eventType",
                "campaignIds"
              ]
            }
          }
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "manage_inbox_settings",
      "description": "Patches inbox settings, including customVariables under {{inbox.key}}. For per-inbox custom variable CRUD: read_inbox_health action=settings, then manage_inbox_settings action=update with the complete customVariables array: add creates, replacing a value edits, omitting a key deletes, [] clears. Unique snake_case keys up to 64 chars; nonblank values up to 10000 chars; at most 50 keys and 16384 UTF-8 bytes for the complete serialized JSON array; reserved names forbidden. Values remain escaped literal data. Also supports tracking, sync, tags, placement recipients, and bulk settings/tag/move operations.\n\nWhen asked to change inbox settings, verify a tracking domain, move inboxes, or designate a placement recipient.\n\nFor warmup toggles or policy changes — use manage_warmup. For deletes — delete_inboxes.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "update"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "patch": {
                "type": "object",
                "properties": {
                  "customVariables": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[a-z][a-z0-9_]*$"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10000
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "patternProperties": {
                        "^(?!(?:key|value)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "key",
                          "value"
                        ]
                      }
                    },
                    "maxItems": 50
                  },
                  "senderFirstName": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "senderLastName": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "senderReplyTo": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "autoBcc": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "maxItems": 5
                  },
                  "autoCc": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "maxItems": 5
                  },
                  "dailySendingLimit": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "minGapSeconds": {
                    "type": "integer",
                    "minimum": 120,
                    "maximum": 21600
                  },
                  "initialDailyLimit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "dailyIncrement": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50
                  },
                  "campaignEmailRampUp": {
                    "type": "boolean"
                  },
                  "syncNonCampaignEmails": {
                    "type": "boolean"
                  },
                  "signature": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/Union_"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "customTrackingDomain": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/DomainName"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tagIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:customVariables|senderFirstName|senderLastName|senderReplyTo|autoBcc|autoCc|dailySendingLimit|minGapSeconds|initialDailyLimit|dailyIncrement|campaignEmailRampUp|syncNonCampaignEmails|signature|customTrackingDomain|tagIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "customVariables",
                    "senderFirstName",
                    "senderLastName",
                    "senderReplyTo",
                    "autoBcc",
                    "autoCc",
                    "dailySendingLimit",
                    "minGapSeconds",
                    "initialDailyLimit",
                    "dailyIncrement",
                    "campaignEmailRampUp",
                    "syncNonCampaignEmails",
                    "signature",
                    "customTrackingDomain",
                    "tagIds"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 15
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "patch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|patch)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "patch"
              ]
            }
          },
          {
            "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": [
                  "verify_tracking_domain"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "bulk_update"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "senderFirstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderLastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderReplyTo": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "autoBcc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 5
                      },
                      "autoCc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 5
                      },
                      "dailySendingLimit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      },
                      "minGapSeconds": {
                        "type": "integer",
                        "minimum": 120,
                        "maximum": 21600
                      },
                      "campaignEmailRampUp": {
                        "type": "boolean"
                      },
                      "initialDailyLimit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "dailyIncrement": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "warmupEnabled": {
                        "type": "boolean"
                      },
                      "warmupFilterTag": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupIncludeFilterTag": {
                        "type": "boolean"
                      },
                      "dailyWarmupLimit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "warmupRampUp": {
                        "type": "boolean"
                      },
                      "warmupInitialDailyLimit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "warmupDailyIncrement": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 20
                      },
                      "warmupRandomizedLimitEnabled": {
                        "type": "boolean"
                      },
                      "warmupRandomizedLimitPercent": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "warmupBusinessType": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupScheduleEnabled": {
                        "type": "boolean"
                      },
                      "warmupTimezone": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "warmupWeekdaysOnly": {
                        "type": "boolean"
                      },
                      "warmupStartTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86399
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupEndTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86399
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupReplyRate": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "syncNonCampaignEmails": {
                        "type": "boolean"
                      },
                      "signature": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Union_"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "customTrackingDomain": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/DomainName"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tagIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        }
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:senderFirstName|senderLastName|senderReplyTo|autoBcc|autoCc|dailySendingLimit|minGapSeconds|campaignEmailRampUp|initialDailyLimit|dailyIncrement|warmupEnabled|warmupFilterTag|warmupIncludeFilterTag|dailyWarmupLimit|warmupRampUp|warmupInitialDailyLimit|warmupDailyIncrement|warmupRandomizedLimitEnabled|warmupRandomizedLimitPercent|warmupBusinessType|warmupScheduleEnabled|warmupTimezone|warmupWeekdaysOnly|warmupStartTime|warmupEndTime|warmupReplyRate|syncNonCampaignEmails|signature|customTrackingDomain|tagIds)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "senderFirstName",
                        "senderLastName",
                        "senderReplyTo",
                        "autoBcc",
                        "autoCc",
                        "dailySendingLimit",
                        "minGapSeconds",
                        "campaignEmailRampUp",
                        "initialDailyLimit",
                        "dailyIncrement",
                        "warmupEnabled",
                        "warmupFilterTag",
                        "warmupIncludeFilterTag",
                        "dailyWarmupLimit",
                        "warmupRampUp",
                        "warmupInitialDailyLimit",
                        "warmupDailyIncrement",
                        "warmupRandomizedLimitEnabled",
                        "warmupRandomizedLimitPercent",
                        "warmupBusinessType",
                        "warmupScheduleEnabled",
                        "warmupTimezone",
                        "warmupWeekdaysOnly",
                        "warmupStartTime",
                        "warmupEndTime",
                        "warmupReplyRate",
                        "syncNonCampaignEmails",
                        "signature",
                        "customTrackingDomain",
                        "tagIds"
                      ]
                    },
                    "minProperties": 1,
                    "maxProperties": 30
                  }
                },
                "required": [
                  "inboxIds",
                  "settings"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|settings)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "settings"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "assign_tags"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "tagIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "minItems": 1,
                    "maxItems": 20
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "add",
                      "remove"
                    ]
                  }
                },
                "required": [
                  "inboxIds",
                  "tagIds"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|tagIds|mode)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "tagIds",
                    "mode"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "move"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "targetWorkspaceId": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "inboxIds",
                  "targetWorkspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|targetWorkspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "targetWorkspaceId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "designate_placement_recipient"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "confirmDedicated": {
                "type": "boolean",
                "enum": [
                  true
                ]
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "confirmDedicated"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|confirmDedicated)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "confirmDedicated"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          },
          "HexColor": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{6}$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "emailAddress": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "senderFirstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderLastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderReplyTo": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "autoBcc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 5
                      },
                      "autoCc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 5
                      },
                      "dailySendingLimit": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minGapSeconds": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 120,
                            "maximum": 21600
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "initialDailyLimit": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dailyIncrement": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "campaignEmailRampUp": {
                        "type": "boolean"
                      },
                      "signature": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Union_"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "customVariables": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "key": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[a-z][a-z0-9_]*$"
                            },
                            "value": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 10000
                            }
                          },
                          "required": [
                            "key",
                            "value"
                          ],
                          "patternProperties": {
                            "^(?!(?:key|value)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "key",
                              "value"
                            ]
                          }
                        },
                        "maxItems": 50
                      },
                      "customTrackingDomain": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/DomainName"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "customTrackingDomainVerified": {
                        "type": "boolean"
                      },
                      "syncNonCampaignEmails": {
                        "type": "boolean"
                      },
                      "isPlacementTestRecipient": {
                        "type": "boolean"
                      },
                      "canSyncNonCampaignEmails": {
                        "type": "boolean"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "color": {
                              "$ref": "#/$defs/HexColor"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "color",
                            "description",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "color",
                              "description",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "id",
                      "emailAddress",
                      "senderFirstName",
                      "senderLastName",
                      "senderReplyTo",
                      "autoBcc",
                      "autoCc",
                      "dailySendingLimit",
                      "minGapSeconds",
                      "initialDailyLimit",
                      "dailyIncrement",
                      "campaignEmailRampUp",
                      "signature",
                      "customVariables",
                      "customTrackingDomain",
                      "customTrackingDomainVerified",
                      "syncNonCampaignEmails",
                      "isPlacementTestRecipient",
                      "canSyncNonCampaignEmails",
                      "tags"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|emailAddress|senderFirstName|senderLastName|senderReplyTo|autoBcc|autoCc|dailySendingLimit|minGapSeconds|initialDailyLimit|dailyIncrement|campaignEmailRampUp|signature|customVariables|customTrackingDomain|customTrackingDomainVerified|syncNonCampaignEmails|isPlacementTestRecipient|canSyncNonCampaignEmails|tags)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "emailAddress",
                        "senderFirstName",
                        "senderLastName",
                        "senderReplyTo",
                        "autoBcc",
                        "autoCc",
                        "dailySendingLimit",
                        "minGapSeconds",
                        "initialDailyLimit",
                        "dailyIncrement",
                        "campaignEmailRampUp",
                        "signature",
                        "customVariables",
                        "customTrackingDomain",
                        "customTrackingDomainVerified",
                        "syncNonCampaignEmails",
                        "isPlacementTestRecipient",
                        "canSyncNonCampaignEmails",
                        "tags"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "verified": {
                        "type": "boolean"
                      },
                      "ready": {
                        "type": "boolean"
                      },
                      "cnameRecords": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/DomainName"
                        }
                      },
                      "tls": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "supported": {
                                "type": "boolean"
                              },
                              "configured": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "clientStatus": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "error": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "supported",
                              "configured",
                              "clientStatus",
                              "error"
                            ],
                            "patternProperties": {
                              "^(?!(?:supported|configured|clientStatus|error)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "supported",
                                "configured",
                                "clientStatus",
                                "error"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "verified",
                      "ready",
                      "cnameRecords",
                      "tls",
                      "error"
                    ],
                    "patternProperties": {
                      "^(?!(?:verified|ready|cnameRecords|tls|error)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "verified",
                        "ready",
                        "cnameRecords",
                        "tls",
                        "error"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "outcomes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "inboxId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "updated",
                                "skipped",
                                "failed"
                              ]
                            },
                            "reason": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "inboxId",
                            "status",
                            "reason"
                          ],
                          "patternProperties": {
                            "^(?!(?:inboxId|status|reason)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "inboxId",
                              "status",
                              "reason"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "outcomes"
                    ],
                    "patternProperties": {
                      "^(?!(?:outcomes)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "outcomes"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "designated": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "designated"
                    ],
                    "patternProperties": {
                      "^(?!(?:designated)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "designated"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "emailAddress": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "senderFirstName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "senderLastName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "senderReplyTo": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/EmailAddress"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "autoBcc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "maxItems": 5
                          },
                          "autoCc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "maxItems": 5
                          },
                          "dailySendingLimit": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "minGapSeconds": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 120,
                                "maximum": 21600
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "initialDailyLimit": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dailyIncrement": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 50
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "campaignEmailRampUp": {
                            "type": "boolean"
                          },
                          "signature": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Union_"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "customVariables": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[a-z][a-z0-9_]*$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 10000
                                }
                              },
                              "required": [
                                "key",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:key|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "key",
                                  "value"
                                ]
                              }
                            },
                            "maxItems": 50
                          },
                          "customTrackingDomain": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/DomainName"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "customTrackingDomainVerified": {
                            "type": "boolean"
                          },
                          "syncNonCampaignEmails": {
                            "type": "boolean"
                          },
                          "isPlacementTestRecipient": {
                            "type": "boolean"
                          },
                          "canSyncNonCampaignEmails": {
                            "type": "boolean"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "color": {
                                  "$ref": "#/$defs/HexColor"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color",
                                "description",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "color",
                                  "description",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "id",
                          "emailAddress",
                          "senderFirstName",
                          "senderLastName",
                          "senderReplyTo",
                          "autoBcc",
                          "autoCc",
                          "dailySendingLimit",
                          "minGapSeconds",
                          "initialDailyLimit",
                          "dailyIncrement",
                          "campaignEmailRampUp",
                          "signature",
                          "customVariables",
                          "customTrackingDomain",
                          "customTrackingDomainVerified",
                          "syncNonCampaignEmails",
                          "isPlacementTestRecipient",
                          "canSyncNonCampaignEmails",
                          "tags"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|emailAddress|senderFirstName|senderLastName|senderReplyTo|autoBcc|autoCc|dailySendingLimit|minGapSeconds|initialDailyLimit|dailyIncrement|campaignEmailRampUp|signature|customVariables|customTrackingDomain|customTrackingDomainVerified|syncNonCampaignEmails|isPlacementTestRecipient|canSyncNonCampaignEmails|tags)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "emailAddress",
                            "senderFirstName",
                            "senderLastName",
                            "senderReplyTo",
                            "autoBcc",
                            "autoCc",
                            "dailySendingLimit",
                            "minGapSeconds",
                            "initialDailyLimit",
                            "dailyIncrement",
                            "campaignEmailRampUp",
                            "signature",
                            "customVariables",
                            "customTrackingDomain",
                            "customTrackingDomainVerified",
                            "syncNonCampaignEmails",
                            "isPlacementTestRecipient",
                            "canSyncNonCampaignEmails",
                            "tags"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "verified": {
                            "type": "boolean"
                          },
                          "ready": {
                            "type": "boolean"
                          },
                          "cnameRecords": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/DomainName"
                            }
                          },
                          "tls": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "supported": {
                                    "type": "boolean"
                                  },
                                  "configured": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "clientStatus": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "error": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "supported",
                                  "configured",
                                  "clientStatus",
                                  "error"
                                ],
                                "patternProperties": {
                                  "^(?!(?:supported|configured|clientStatus|error)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "supported",
                                    "configured",
                                    "clientStatus",
                                    "error"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "error": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "verified",
                          "ready",
                          "cnameRecords",
                          "tls",
                          "error"
                        ],
                        "patternProperties": {
                          "^(?!(?:verified|ready|cnameRecords|tls|error)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "verified",
                            "ready",
                            "cnameRecords",
                            "tls",
                            "error"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "outcomes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "inboxId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "updated",
                                    "skipped",
                                    "failed"
                                  ]
                                },
                                "reason": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "inboxId",
                                "status",
                                "reason"
                              ],
                              "patternProperties": {
                                "^(?!(?:inboxId|status|reason)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "inboxId",
                                  "status",
                                  "reason"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "outcomes"
                        ],
                        "patternProperties": {
                          "^(?!(?:outcomes)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "outcomes"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "designated": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "designated"
                        ],
                        "patternProperties": {
                          "^(?!(?:designated)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "designated"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_inbox_settings"
      },
      "scopes": [
        "inbox:update"
      ],
      "bundles": [
        "inbox_operations"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxSettings.update",
        "inboxSettings.verifyTrackingDomain",
        "inboxBulk.updateSettings",
        "inboxBulk.assignTags",
        "inboxBulk.move",
        "inboxPlacementDiagnostics.designateRecipient"
      ],
      "invocations": [
        {
          "operationId": "inboxSettings.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/settings",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxSettings.verifyTrackingDomain",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/verify-tracking-domain",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxBulk.updateSettings",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/inboxes/bulk/settings",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxBulk.assignTags",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/inboxes/bulk/tags",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxBulk.move",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/bulk/move",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxPlacementDiagnostics.designateRecipient",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/placement-diagnostics/recipient",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "update"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "patch": {
                "type": "object",
                "properties": {
                  "customVariables": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[a-z][a-z0-9_]*$"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10000
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "patternProperties": {
                        "^(?!(?:key|value)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "key",
                          "value"
                        ]
                      }
                    },
                    "maxItems": 50
                  },
                  "senderFirstName": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "senderLastName": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "senderReplyTo": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "autoBcc": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "maxItems": 5
                  },
                  "autoCc": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "maxItems": 5
                  },
                  "dailySendingLimit": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "minGapSeconds": {
                    "type": "integer",
                    "minimum": 120,
                    "maximum": 21600
                  },
                  "initialDailyLimit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "dailyIncrement": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50
                  },
                  "campaignEmailRampUp": {
                    "type": "boolean"
                  },
                  "syncNonCampaignEmails": {
                    "type": "boolean"
                  },
                  "signature": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/Union_"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "customTrackingDomain": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/DomainName"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tagIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:customVariables|senderFirstName|senderLastName|senderReplyTo|autoBcc|autoCc|dailySendingLimit|minGapSeconds|initialDailyLimit|dailyIncrement|campaignEmailRampUp|syncNonCampaignEmails|signature|customTrackingDomain|tagIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "customVariables",
                    "senderFirstName",
                    "senderLastName",
                    "senderReplyTo",
                    "autoBcc",
                    "autoCc",
                    "dailySendingLimit",
                    "minGapSeconds",
                    "initialDailyLimit",
                    "dailyIncrement",
                    "campaignEmailRampUp",
                    "syncNonCampaignEmails",
                    "signature",
                    "customTrackingDomain",
                    "tagIds"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 15
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "patch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|patch)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "patch"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "verify_tracking_domain"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "bulk_update"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "senderFirstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderLastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderReplyTo": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "autoBcc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 5
                      },
                      "autoCc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 5
                      },
                      "dailySendingLimit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      },
                      "minGapSeconds": {
                        "type": "integer",
                        "minimum": 120,
                        "maximum": 21600
                      },
                      "campaignEmailRampUp": {
                        "type": "boolean"
                      },
                      "initialDailyLimit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "dailyIncrement": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "warmupEnabled": {
                        "type": "boolean"
                      },
                      "warmupFilterTag": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupIncludeFilterTag": {
                        "type": "boolean"
                      },
                      "dailyWarmupLimit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "warmupRampUp": {
                        "type": "boolean"
                      },
                      "warmupInitialDailyLimit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "warmupDailyIncrement": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 20
                      },
                      "warmupRandomizedLimitEnabled": {
                        "type": "boolean"
                      },
                      "warmupRandomizedLimitPercent": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "warmupBusinessType": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupScheduleEnabled": {
                        "type": "boolean"
                      },
                      "warmupTimezone": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "warmupWeekdaysOnly": {
                        "type": "boolean"
                      },
                      "warmupStartTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86399
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupEndTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86399
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupReplyRate": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "syncNonCampaignEmails": {
                        "type": "boolean"
                      },
                      "signature": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Union_"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "customTrackingDomain": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/DomainName"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tagIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        }
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:senderFirstName|senderLastName|senderReplyTo|autoBcc|autoCc|dailySendingLimit|minGapSeconds|campaignEmailRampUp|initialDailyLimit|dailyIncrement|warmupEnabled|warmupFilterTag|warmupIncludeFilterTag|dailyWarmupLimit|warmupRampUp|warmupInitialDailyLimit|warmupDailyIncrement|warmupRandomizedLimitEnabled|warmupRandomizedLimitPercent|warmupBusinessType|warmupScheduleEnabled|warmupTimezone|warmupWeekdaysOnly|warmupStartTime|warmupEndTime|warmupReplyRate|syncNonCampaignEmails|signature|customTrackingDomain|tagIds)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "senderFirstName",
                        "senderLastName",
                        "senderReplyTo",
                        "autoBcc",
                        "autoCc",
                        "dailySendingLimit",
                        "minGapSeconds",
                        "campaignEmailRampUp",
                        "initialDailyLimit",
                        "dailyIncrement",
                        "warmupEnabled",
                        "warmupFilterTag",
                        "warmupIncludeFilterTag",
                        "dailyWarmupLimit",
                        "warmupRampUp",
                        "warmupInitialDailyLimit",
                        "warmupDailyIncrement",
                        "warmupRandomizedLimitEnabled",
                        "warmupRandomizedLimitPercent",
                        "warmupBusinessType",
                        "warmupScheduleEnabled",
                        "warmupTimezone",
                        "warmupWeekdaysOnly",
                        "warmupStartTime",
                        "warmupEndTime",
                        "warmupReplyRate",
                        "syncNonCampaignEmails",
                        "signature",
                        "customTrackingDomain",
                        "tagIds"
                      ]
                    },
                    "minProperties": 1,
                    "maxProperties": 30
                  }
                },
                "required": [
                  "inboxIds",
                  "settings"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|settings)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "settings"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "assign_tags"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "tagIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "minItems": 1,
                    "maxItems": 20
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "add",
                      "remove"
                    ]
                  }
                },
                "required": [
                  "inboxIds",
                  "tagIds"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|tagIds|mode)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "tagIds",
                    "mode"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "move"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "targetWorkspaceId": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "inboxIds",
                  "targetWorkspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|targetWorkspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "targetWorkspaceId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "designate_placement_recipient"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "confirmDedicated": {
                "type": "boolean",
                "enum": [
                  true
                ]
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "confirmDedicated"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|confirmDedicated)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "confirmDedicated"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "manage_inbox_tags",
      "description": "List, create, update, or delete the inbox tags available inside a workspace.\n\nUse to organize the workspace's shared tag vocabulary for leads and threads.\n\nTag names are unique per workspace; deleting a tag detaches it from every lead that referenced it.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|search|cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "search",
                "cursor",
                "limit"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "color": {
                    "$ref": "#/$defs/HexColor"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "name",
                  "color"
                ],
                "patternProperties": {
                  "^(?!(?:name|color|description)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "color",
                    "description"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|input)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "input"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "tagId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "color": {
                    "$ref": "#/$defs/HexColor"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|color|description)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "color",
                    "description"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 3
              }
            },
            "required": [
              "workspaceId",
              "action",
              "tagId",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|tagId|input)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "tagId",
                "input"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "tagId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "required": [
              "workspaceId",
              "action",
              "tagId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|tagId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "tagId"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "HexColor": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{6}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "HexColor": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{6}$"
          },
          "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
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "color": {
                              "$ref": "#/$defs/HexColor"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "color",
                            "description",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "color",
                              "description",
                              "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",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "color": {
                        "$ref": "#/$defs/HexColor"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 500
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "color",
                      "description",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "color",
                        "description",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "deleted": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "deleted"
                    ],
                    "patternProperties": {
                      "^(?!(?:deleted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "deleted"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "color": {
                                  "$ref": "#/$defs/HexColor"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color",
                                "description",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "color",
                                  "description",
                                  "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",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "color": {
                            "$ref": "#/$defs/HexColor"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 500
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "color",
                          "description",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "color",
                            "description",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "deleted": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "deleted"
                        ],
                        "patternProperties": {
                          "^(?!(?:deleted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "deleted"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_inbox_tags"
      },
      "scopes": [
        "tag:read",
        "tag:create",
        "tag:update",
        "tag:delete"
      ],
      "bundles": [
        "workspace_settings"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxTags.list",
        "inboxTags.create",
        "inboxTags.update",
        "inboxTags.delete"
      ],
      "invocations": [
        {
          "operationId": "inboxTags.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/settings/inbox-tags",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxTags.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/settings/inbox-tags",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxTags.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/settings/inbox-tags/:tagId",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxTags.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/settings/inbox-tags/:tagId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|search|cursor|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "search",
                    "cursor",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "color": {
                    "$ref": "#/$defs/HexColor"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "name",
                  "color"
                ],
                "patternProperties": {
                  "^(?!(?:name|color|description)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "color",
                    "description"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|input)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "input"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "tagId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "color": {
                    "$ref": "#/$defs/HexColor"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|color|description)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "color",
                    "description"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 3
              }
            },
            "required": [
              "workspaceId",
              "action",
              "tagId",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|tagId|input)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "tagId",
                    "input"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "tagId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "required": [
              "workspaceId",
              "action",
              "tagId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|tagId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "tagId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "HexColor": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{6}$"
          }
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "manage_independent_inbox_oauth_batch",
      "description": "Prepares an explicitly selected independent Google/Microsoft mailbox batch, returns a secure credential-entry handoff, starts existing OAuth automation, reads bounded progress, retries remaining accounts, cancels outstanding work, and obtains exceptional human handoffs. No supplier connection required. Never pass mailbox secrets to this tool.\n\nFor independently owned Google Workspace or Microsoft 365 mailboxes with credentials entered by a human in Scheduler Zero.\n\nFor supplier imports, IMAP/SMTP, mailbox purchasing, source sequencer cutover, or entering credentials in chat.",
      "inputSchema": {
        "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"
          },
          "request": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "prepare"
                    ]
                  },
                  "payload": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "accounts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365"
                              ]
                            }
                          },
                          "required": [
                            "emailAddress",
                            "provider"
                          ],
                          "patternProperties": {
                            "^(?!(?:emailAddress|provider)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "emailAddress",
                              "provider"
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "name",
                      "accounts"
                    ],
                    "patternProperties": {
                      "^(?!(?:name|accounts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "name",
                        "accounts"
                      ]
                    }
                  }
                },
                "required": [
                  "action",
                  "payload"
                ],
                "patternProperties": {
                  "^(?!(?:action|payload)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "payload"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  },
                  "query": {
                    "type": "object",
                    "properties": {
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "offset": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:limit|offset)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "limit",
                        "offset"
                      ]
                    }
                  }
                },
                "required": [
                  "action",
                  "query"
                ],
                "patternProperties": {
                  "^(?!(?:action|query)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "query"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "query": {
                    "type": "object",
                    "properties": {
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "offset": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "handoffId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:limit|offset|handoffId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "limit",
                        "offset",
                        "handoffId"
                      ]
                    }
                  }
                },
                "required": [
                  "action",
                  "batchId",
                  "query"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId|query)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId",
                    "query"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "start"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "batchId"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "retry"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "batchId"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "cancel"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "batchId"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "handoff"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "itemId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "batchId",
                  "itemId"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId|itemId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId",
                    "itemId"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "request"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|request)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "request"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "batchId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "awaiting_credentials",
                          "ready",
                          "queued",
                          "running",
                          "connected",
                          "human_action_required",
                          "failed",
                          "cancelled",
                          "expired"
                        ]
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "connected": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "credentialsReady": {
                        "type": "boolean"
                      },
                      "expiresAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "setupPath": {
                        "type": "string"
                      },
                      "pollAfterSeconds": {
                        "type": "integer"
                      },
                      "attemptId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "batchId",
                      "name",
                      "status",
                      "total",
                      "connected",
                      "credentialsReady",
                      "expiresAt",
                      "setupPath",
                      "pollAfterSeconds",
                      "attemptId"
                    ],
                    "patternProperties": {
                      "^(?!(?:batchId|name|status|total|connected|credentialsReady|expiresAt|setupPath|pollAfterSeconds|attemptId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "batchId",
                        "name",
                        "status",
                        "total",
                        "connected",
                        "credentialsReady",
                        "expiresAt",
                        "setupPath",
                        "pollAfterSeconds",
                        "attemptId"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "batch": {
                        "type": "object",
                        "properties": {
                          "batchId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "awaiting_credentials",
                              "ready",
                              "queued",
                              "running",
                              "connected",
                              "human_action_required",
                              "failed",
                              "cancelled",
                              "expired"
                            ]
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "connected": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "credentialsReady": {
                            "type": "boolean"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "setupPath": {
                            "type": "string"
                          },
                          "pollAfterSeconds": {
                            "type": "integer"
                          },
                          "attemptId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "batchId",
                          "name",
                          "status",
                          "total",
                          "connected",
                          "credentialsReady",
                          "expiresAt",
                          "setupPath",
                          "pollAfterSeconds",
                          "attemptId"
                        ],
                        "patternProperties": {
                          "^(?!(?:batchId|name|status|total|connected|credentialsReady|expiresAt|setupPath|pollAfterSeconds|attemptId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "batchId",
                            "name",
                            "status",
                            "total",
                            "connected",
                            "credentialsReady",
                            "expiresAt",
                            "setupPath",
                            "pollAfterSeconds",
                            "attemptId"
                          ]
                        }
                      },
                      "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"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "awaiting_credentials",
                                "queued",
                                "running",
                                "connected",
                                "failed",
                                "human_action_required",
                                "cancelled"
                              ]
                            },
                            "inboxId": {
                              "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"
                                }
                              ]
                            },
                            "stage": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "emailAddress",
                            "provider",
                            "status",
                            "inboxId",
                            "stage",
                            "error"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|emailAddress|provider|status|inboxId|stage|error)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "emailAddress",
                              "provider",
                              "status",
                              "inboxId",
                              "stage",
                              "error"
                            ]
                          }
                        },
                        "maxItems": 100
                      },
                      "nextOffset": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "batch",
                      "items",
                      "nextOffset"
                    ],
                    "patternProperties": {
                      "^(?!(?:batch|items|nextOffset)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "batch",
                        "items",
                        "nextOffset"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "batchId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "awaiting_credentials",
                                "ready",
                                "queued",
                                "running",
                                "connected",
                                "human_action_required",
                                "failed",
                                "cancelled",
                                "expired"
                              ]
                            },
                            "total": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "connected": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "credentialsReady": {
                              "type": "boolean"
                            },
                            "expiresAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "setupPath": {
                              "type": "string"
                            },
                            "pollAfterSeconds": {
                              "type": "integer"
                            },
                            "attemptId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "batchId",
                            "name",
                            "status",
                            "total",
                            "connected",
                            "credentialsReady",
                            "expiresAt",
                            "setupPath",
                            "pollAfterSeconds",
                            "attemptId"
                          ],
                          "patternProperties": {
                            "^(?!(?:batchId|name|status|total|connected|credentialsReady|expiresAt|setupPath|pollAfterSeconds|attemptId)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "batchId",
                              "name",
                              "status",
                              "total",
                              "connected",
                              "credentialsReady",
                              "expiresAt",
                              "setupPath",
                              "pollAfterSeconds",
                              "attemptId"
                            ]
                          }
                        },
                        "maxItems": 100
                      },
                      "nextOffset": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "items",
                      "nextOffset"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|nextOffset)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "nextOffset"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "batchId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "itemId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "handoffPath": {
                        "type": "string"
                      },
                      "expiresAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "batchId",
                      "itemId",
                      "handoffPath",
                      "expiresAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:batchId|itemId|handoffPath|expiresAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "batchId",
                        "itemId",
                        "handoffPath",
                        "expiresAt"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "batchId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "awaiting_credentials",
                              "ready",
                              "queued",
                              "running",
                              "connected",
                              "human_action_required",
                              "failed",
                              "cancelled",
                              "expired"
                            ]
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "connected": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "credentialsReady": {
                            "type": "boolean"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "setupPath": {
                            "type": "string"
                          },
                          "pollAfterSeconds": {
                            "type": "integer"
                          },
                          "attemptId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "batchId",
                          "name",
                          "status",
                          "total",
                          "connected",
                          "credentialsReady",
                          "expiresAt",
                          "setupPath",
                          "pollAfterSeconds",
                          "attemptId"
                        ],
                        "patternProperties": {
                          "^(?!(?:batchId|name|status|total|connected|credentialsReady|expiresAt|setupPath|pollAfterSeconds|attemptId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "batchId",
                            "name",
                            "status",
                            "total",
                            "connected",
                            "credentialsReady",
                            "expiresAt",
                            "setupPath",
                            "pollAfterSeconds",
                            "attemptId"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "batch": {
                            "type": "object",
                            "properties": {
                              "batchId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "awaiting_credentials",
                                  "ready",
                                  "queued",
                                  "running",
                                  "connected",
                                  "human_action_required",
                                  "failed",
                                  "cancelled",
                                  "expired"
                                ]
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "connected": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "credentialsReady": {
                                "type": "boolean"
                              },
                              "expiresAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "setupPath": {
                                "type": "string"
                              },
                              "pollAfterSeconds": {
                                "type": "integer"
                              },
                              "attemptId": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "batchId",
                              "name",
                              "status",
                              "total",
                              "connected",
                              "credentialsReady",
                              "expiresAt",
                              "setupPath",
                              "pollAfterSeconds",
                              "attemptId"
                            ],
                            "patternProperties": {
                              "^(?!(?:batchId|name|status|total|connected|credentialsReady|expiresAt|setupPath|pollAfterSeconds|attemptId)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "batchId",
                                "name",
                                "status",
                                "total",
                                "connected",
                                "credentialsReady",
                                "expiresAt",
                                "setupPath",
                                "pollAfterSeconds",
                                "attemptId"
                              ]
                            }
                          },
                          "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "awaiting_credentials",
                                    "queued",
                                    "running",
                                    "connected",
                                    "failed",
                                    "human_action_required",
                                    "cancelled"
                                  ]
                                },
                                "inboxId": {
                                  "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"
                                    }
                                  ]
                                },
                                "stage": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "error": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "provider",
                                "status",
                                "inboxId",
                                "stage",
                                "error"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|provider|status|inboxId|stage|error)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "provider",
                                  "status",
                                  "inboxId",
                                  "stage",
                                  "error"
                                ]
                              }
                            },
                            "maxItems": 100
                          },
                          "nextOffset": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "batch",
                          "items",
                          "nextOffset"
                        ],
                        "patternProperties": {
                          "^(?!(?:batch|items|nextOffset)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "batch",
                            "items",
                            "nextOffset"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "batchId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "awaiting_credentials",
                                    "ready",
                                    "queued",
                                    "running",
                                    "connected",
                                    "human_action_required",
                                    "failed",
                                    "cancelled",
                                    "expired"
                                  ]
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "connected": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "credentialsReady": {
                                  "type": "boolean"
                                },
                                "expiresAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "setupPath": {
                                  "type": "string"
                                },
                                "pollAfterSeconds": {
                                  "type": "integer"
                                },
                                "attemptId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "batchId",
                                "name",
                                "status",
                                "total",
                                "connected",
                                "credentialsReady",
                                "expiresAt",
                                "setupPath",
                                "pollAfterSeconds",
                                "attemptId"
                              ],
                              "patternProperties": {
                                "^(?!(?:batchId|name|status|total|connected|credentialsReady|expiresAt|setupPath|pollAfterSeconds|attemptId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "batchId",
                                  "name",
                                  "status",
                                  "total",
                                  "connected",
                                  "credentialsReady",
                                  "expiresAt",
                                  "setupPath",
                                  "pollAfterSeconds",
                                  "attemptId"
                                ]
                              }
                            },
                            "maxItems": 100
                          },
                          "nextOffset": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "items",
                          "nextOffset"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|nextOffset)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "nextOffset"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "batchId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "itemId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "handoffPath": {
                            "type": "string"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "batchId",
                          "itemId",
                          "handoffPath",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:batchId|itemId|handoffPath|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "batchId",
                            "itemId",
                            "handoffPath",
                            "expiresAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_independent_inbox_oauth_batch"
      },
      "scopes": [
        "inbox:connect",
        "inbox:read"
      ],
      "bundles": [
        "inbox_connection_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxOAuthBatches.manage"
      ],
      "invocations": [
        {
          "operationId": "inboxOAuthBatches.manage",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-oauth-batches/actions",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "request": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "prepare"
                    ]
                  },
                  "payload": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "accounts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365"
                              ]
                            }
                          },
                          "required": [
                            "emailAddress",
                            "provider"
                          ],
                          "patternProperties": {
                            "^(?!(?:emailAddress|provider)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "emailAddress",
                              "provider"
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "name",
                      "accounts"
                    ],
                    "patternProperties": {
                      "^(?!(?:name|accounts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "name",
                        "accounts"
                      ]
                    }
                  }
                },
                "required": [
                  "action",
                  "payload"
                ],
                "patternProperties": {
                  "^(?!(?:action|payload)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "payload"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  },
                  "query": {
                    "type": "object",
                    "properties": {
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "offset": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:limit|offset)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "limit",
                        "offset"
                      ]
                    }
                  }
                },
                "required": [
                  "action",
                  "query"
                ],
                "patternProperties": {
                  "^(?!(?:action|query)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "query"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "query": {
                    "type": "object",
                    "properties": {
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "offset": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "handoffId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:limit|offset|handoffId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "limit",
                        "offset",
                        "handoffId"
                      ]
                    }
                  }
                },
                "required": [
                  "action",
                  "batchId",
                  "query"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId|query)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId",
                    "query"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "start"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "batchId"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "retry"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "batchId"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "cancel"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "batchId"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "handoff"
                    ]
                  },
                  "batchId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "itemId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "batchId",
                  "itemId"
                ],
                "patternProperties": {
                  "^(?!(?:action|batchId|itemId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "batchId",
                    "itemId"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "request"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|request)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "request"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "manage_lead_contact_points",
      "description": "Mark contact points bad/active (action=set_status) or reorder them (action=reorder); position 1 is the scalar mirror.\n\nUse to correct bad contact data or reprioritize outreach order on one lead.\n\nReactivation of a call_disposition phone restores dialer wrong-number state — it is not silent.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "set_status",
              "reorder"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          },
          "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"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "bad"
            ]
          },
          "orderedIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          }
        },
        "required": [
          "workspaceId",
          "leadId",
          "action",
          "kind"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|leadId|action|kind|id|status|orderedIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "leadId",
            "action",
            "kind",
            "id",
            "status",
            "orderedIds"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "anyOf": [
              {
                "type": "boolean",
                "enum": [
                  true
                ]
              }
            ]
          }
        },
        "required": [
          "success"
        ],
        "patternProperties": {
          "^(?!(?:success)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "success"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_lead_contact_points"
      },
      "scopes": [
        "lead:update"
      ],
      "bundles": [
        "lead_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "leads.setContactPointStatus",
        "leads.reorderContactPoints"
      ],
      "invocations": [
        {
          "operationId": "leads.setContactPointStatus",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId/contact-points/status",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.reorderContactPoints",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId/contact-points/reorder",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "set_status",
              "reorder"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          },
          "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"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "bad"
            ]
          },
          "orderedIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          }
        },
        "required": [
          "workspaceId",
          "leadId",
          "action",
          "kind"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|leadId|action|kind|id|status|orderedIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "leadId",
            "action",
            "kind",
            "id",
            "status",
            "orderedIds"
          ]
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "manage_lead_lists",
      "description": "Manage lead lists and folders with an explicit action: create, create_folder, get, list, tree, update, update_folder, move, delete, or delete_folder. The server derives replay keys from the request for create, create_folder, and move; other actions use resource state for idempotency.\n\nUse to organize leads into lists/folders or to inspect the workspace tree.\n\nMoves reject cycles and foreign parents; deleting a folder with child folders conflicts.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": [
              "create",
              "create_folder",
              "get",
              "list",
              "tree",
              "update",
              "update_folder",
              "move",
              "delete",
              "delete_folder"
            ]
          },
          "listId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "folderId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
          },
          "customFieldNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "parentId": {
            "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"
              }
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "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": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                  "type": "string",
                  "enum": [
                    "folder",
                    "list"
                  ]
                }
              },
              "required": [
                "id",
                "type"
              ],
              "patternProperties": {
                "^(?!(?:id|type)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "type"
                ]
              }
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|listId|folderId|name|customFieldNames|parentId|items)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "listId",
            "folderId",
            "name",
            "customFieldNames",
            "parentId",
            "items"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "LeadListTree": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "$ref": "#/$defs/LeadStoredText"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "folder",
                    "list"
                  ]
                },
                "parentId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "children": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "id",
                "name",
                "type",
                "parentId",
                "children"
              ],
              "patternProperties": {
                "^(?!(?:id|name|type|parentId|children)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "name",
                  "type",
                  "parentId",
                  "children"
                ]
              }
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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": {
                        "$ref": "#/$defs/LeadStoredText"
                      },
                      "customFieldNames": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/LeadStoredText"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "folderId": {
                        "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"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "customFieldNames",
                      "folderId",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|customFieldNames|folderId|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "customFieldNames",
                        "folderId",
                        "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": {
                        "$ref": "#/$defs/LeadStoredText"
                      },
                      "parentId": {
                        "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"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "parentId",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|parentId|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "parentId",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "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": {
                          "$ref": "#/$defs/LeadStoredText"
                        },
                        "customFieldNames": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/LeadStoredText"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "folderId": {
                          "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"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "customFieldNames",
                        "folderId",
                        "createdAt",
                        "updatedAt"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name|customFieldNames|folderId|createdAt|updatedAt)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name",
                          "customFieldNames",
                          "folderId",
                          "createdAt",
                          "updatedAt"
                        ]
                      }
                    }
                  },
                  {
                    "$ref": "#/$defs/LeadListTree"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "success"
                    ],
                    "patternProperties": {
                      "^(?!(?:success)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "success"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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": {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          "customFieldNames": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/LeadStoredText"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "folderId": {
                            "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"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "customFieldNames",
                          "folderId",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|customFieldNames|folderId|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "customFieldNames",
                            "folderId",
                            "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": {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          "parentId": {
                            "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"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "parentId",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|parentId|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "parentId",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "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": {
                              "$ref": "#/$defs/LeadStoredText"
                            },
                            "customFieldNames": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/LeadStoredText"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "folderId": {
                              "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"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "customFieldNames",
                            "folderId",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|customFieldNames|folderId|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "customFieldNames",
                              "folderId",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      },
                      {
                        "$ref": "#/$defs/LeadListTree"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "success"
                        ],
                        "patternProperties": {
                          "^(?!(?:success)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "success"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_lead_lists"
      },
      "scopes": [
        "leadList:read",
        "leadList:create",
        "leadList:update",
        "leadList:delete"
      ],
      "bundles": [
        "lead_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "leadLists.create",
        "leadLists.createFolder",
        "leadLists.get",
        "leadLists.list",
        "leadLists.tree",
        "leadLists.update",
        "leadLists.updateFolder",
        "leadLists.move",
        "leadLists.delete",
        "leadLists.deleteFolder"
      ],
      "invocations": [
        {
          "operationId": "leadLists.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/lead-lists",
          "workspaceScoped": false
        },
        {
          "operationId": "leadLists.createFolder",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/lead-lists/folders",
          "workspaceScoped": false
        },
        {
          "operationId": "leadLists.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/lead-lists/:listId",
          "workspaceScoped": false
        },
        {
          "operationId": "leadLists.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/lead-lists",
          "workspaceScoped": false
        },
        {
          "operationId": "leadLists.tree",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/lead-lists/tree",
          "workspaceScoped": false
        },
        {
          "operationId": "leadLists.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/lead-lists/:listId",
          "workspaceScoped": false
        },
        {
          "operationId": "leadLists.updateFolder",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/lead-lists/folders/:folderId",
          "workspaceScoped": false
        },
        {
          "operationId": "leadLists.move",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/lead-lists/parent",
          "workspaceScoped": false
        },
        {
          "operationId": "leadLists.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/lead-lists/:listId",
          "workspaceScoped": false
        },
        {
          "operationId": "leadLists.deleteFolder",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/lead-lists/folders/:folderId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": [
              "create",
              "create_folder",
              "get",
              "list",
              "tree",
              "update",
              "update_folder",
              "move",
              "delete",
              "delete_folder"
            ]
          },
          "listId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "folderId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
          },
          "customFieldNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "parentId": {
            "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"
              }
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "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": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                  "type": "string",
                  "enum": [
                    "folder",
                    "list"
                  ]
                }
              },
              "required": [
                "id",
                "type"
              ],
              "patternProperties": {
                "^(?!(?:id|type)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "type"
                ]
              }
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|listId|folderId|name|customFieldNames|parentId|items)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "listId",
            "folderId",
            "name",
            "customFieldNames",
            "parentId",
            "items"
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "manage_mailbox_provider_import",
      "description": "Begins secure mailbox-supplier setup, returns a human handoff and status, browses saved connections and inventory, and starts/retries or inspects Playwright imports. Keys and local Chrome stay human-only.\n\nWhen asked to import purchased inboxes or check a run. Start payload initialSendingMode=disabled creates new inboxes with zero campaign capacity and warmup off; retries inherit it and existing settings stay unchanged. Disconnect with disconnect_mailbox_provider.\n\nTo submit a vendor API key or run a local Chrome import — human-only.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "begin_setup"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "enum": [
                      "cheap_inboxes",
                      "inboxing"
                    ]
                  },
                  "expectedWorkspaceId": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "provider"
                ],
                "patternProperties": {
                  "^(?!(?:provider|expectedWorkspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "provider",
                    "expectedWorkspaceId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "setup_status"
                ]
              },
              "setupId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "setupId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|setupId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "setupId"
              ]
            }
          },
          {
            "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": [
                  "cancel_setup"
                ]
              },
              "setupId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "setupId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|setupId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "setupId"
              ]
            }
          },
          {
            "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": [
                  "connections"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action"
              ]
            }
          },
          {
            "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": [
                  "domains"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "query": {
                "type": "object",
                "properties": {
                  "page": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "patternProperties": {
                  "^(?!(?:page)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "page"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId",
              "query"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|connectionId|query)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "connectionId",
                "query"
              ]
            }
          },
          {
            "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": [
                  "mailboxes"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "filters": {
                "type": "object",
                "properties": {
                  "connectionStatus": {
                    "type": "string",
                    "enum": [
                      "",
                      "here",
                      "elsewhere",
                      "not_here",
                      "unconnected"
                    ]
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 10,
                    "maximum": 100
                  },
                  "refresh": {
                    "type": "boolean"
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "domainId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "search": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "status": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "tag": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "",
                      "google_workspace",
                      "microsoft_365",
                      "unsupported"
                    ]
                  },
                  "admin": {
                    "type": "string",
                    "enum": [
                      "",
                      "yes",
                      "no"
                    ]
                  },
                  "sort": {
                    "type": "string",
                    "enum": [
                      "emailAddress",
                      "name",
                      "status",
                      "provider"
                    ]
                  },
                  "descending": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:connectionStatus|limit|refresh|offset|domainId|search|status|tag|provider|admin|sort|descending)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "connectionStatus",
                    "limit",
                    "refresh",
                    "offset",
                    "domainId",
                    "search",
                    "status",
                    "tag",
                    "provider",
                    "admin",
                    "sort",
                    "descending"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId",
              "filters"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|connectionId|filters)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "connectionId",
                "filters"
              ]
            }
          },
          {
            "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": [
                  "select_mailboxes"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "filters": {
                "type": "object",
                "properties": {
                  "connectionStatus": {
                    "type": "string",
                    "enum": [
                      "",
                      "here",
                      "elsewhere",
                      "not_here",
                      "unconnected"
                    ]
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 10,
                    "maximum": 100
                  },
                  "refresh": {
                    "type": "boolean"
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "domainId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "search": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "status": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "tag": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "",
                      "google_workspace",
                      "microsoft_365",
                      "unsupported"
                    ]
                  },
                  "admin": {
                    "type": "string",
                    "enum": [
                      "",
                      "yes",
                      "no"
                    ]
                  },
                  "sort": {
                    "type": "string",
                    "enum": [
                      "emailAddress",
                      "name",
                      "status",
                      "provider"
                    ]
                  },
                  "descending": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:connectionStatus|limit|refresh|offset|domainId|search|status|tag|provider|admin|sort|descending)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "connectionStatus",
                    "limit",
                    "refresh",
                    "offset",
                    "domainId",
                    "search",
                    "status",
                    "tag",
                    "provider",
                    "admin",
                    "sort",
                    "descending"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId",
              "filters"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|connectionId|filters)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "connectionId",
                "filters"
              ]
            }
          },
          {
            "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": [
                  "start"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "connectionId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "mailboxIds": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    "minItems": 1,
                    "maxItems": 10000
                  },
                  "domainId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "automation": {
                    "type": "string",
                    "enum": [
                      "playwright",
                      "local_chrome"
                    ]
                  },
                  "initialSendingMode": {
                    "type": "string",
                    "enum": [
                      "default",
                      "disabled"
                    ]
                  }
                },
                "required": [
                  "connectionId",
                  "mailboxIds"
                ],
                "patternProperties": {
                  "^(?!(?:connectionId|mailboxIds|domainId|automation|initialSendingMode)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "connectionId",
                    "mailboxIds",
                    "domainId",
                    "automation",
                    "initialSendingMode"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "retry"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "approvedClientId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "automation": {
                    "type": "string",
                    "enum": [
                      "playwright",
                      "local_chrome"
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:approvedClientId|automation)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "approvedClientId",
                    "automation"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|importId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "importId",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "imports"
                ]
              },
              "query": {
                "type": "object",
                "properties": {
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "patternProperties": {
                  "^(?!(?:offset|limit)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "offset",
                    "limit"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "query"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|query)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "query"
              ]
            }
          },
          {
            "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": [
                  "get"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "query": {
                "type": "object",
                "properties": {
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "patternProperties": {
                  "^(?!(?:offset|limit)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "offset",
                    "limit"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId",
              "query"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|importId|query)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "importId",
                "query"
              ]
            }
          },
          {
            "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": [
                  "google_approval"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|importId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "importId"
              ]
            }
          },
          {
            "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": [
                  "connect_link"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "itemId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "itemId"
                ],
                "patternProperties": {
                  "^(?!(?:itemId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "itemId"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|importId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "importId",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "cancel"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|importId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "importId"
              ]
            }
          }
        ],
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "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
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "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"
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "cheap_inboxes",
                          "inboxing"
                        ]
                      },
                      "expectedWorkspaceId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "waiting_for_user",
                          "saving",
                          "completed",
                          "expired",
                          "canceled",
                          "failed"
                        ]
                      },
                      "handoffUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "expiresAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "connection": {
                        "anyOf": [
                          {
                            "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"
                              },
                              "provider": {
                                "type": "string",
                                "enum": [
                                  "cheap_inboxes",
                                  "inboxing"
                                ]
                              },
                              "label": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "workspace": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/$defs/NonEmptyString"
                                      },
                                      "name": {
                                        "$ref": "#/$defs/NonEmptyString"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|name)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "name"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "provider",
                              "label",
                              "workspace"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|provider|label|workspace)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "provider",
                                "label",
                                "workspace"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "message": {
                        "$ref": "#/$defs/ShortText"
                      }
                    },
                    "required": [
                      "id",
                      "workspaceId",
                      "provider",
                      "expectedWorkspaceId",
                      "status",
                      "handoffUrl",
                      "expiresAt",
                      "connection",
                      "message"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|workspaceId|provider|expectedWorkspaceId|status|handoffUrl|expiresAt|connection|message)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "workspaceId",
                        "provider",
                        "expectedWorkspaceId",
                        "status",
                        "handoffUrl",
                        "expiresAt",
                        "connection",
                        "message"
                      ]
                    }
                  },
                  {
                    "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"
                        },
                        "provider": {
                          "type": "string",
                          "enum": [
                            "cheap_inboxes",
                            "inboxing"
                          ]
                        },
                        "label": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "workspace": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "name": {
                                  "$ref": "#/$defs/NonEmptyString"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name"
                                ]
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "provider",
                        "label",
                        "workspace"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|provider|label|workspace)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "provider",
                          "label",
                          "workspace"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "name": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "status": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "status"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|status)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "status"
                            ]
                          }
                        }
                      },
                      "hasMore": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "items",
                      "hasMore"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|hasMore)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "hasMore"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "ready": {
                              "type": "boolean"
                            },
                            "firstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tags": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/ShortText"
                              }
                            },
                            "isAdmin": {
                              "type": "boolean"
                            },
                            "dailyLimit": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "sourceProvider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "alreadyConnected": {
                              "type": "boolean"
                            },
                            "connection": {
                              "type": "object",
                              "properties": {
                                "here": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "elsewhere": {
                                  "type": "boolean"
                                },
                                "workspaceNames": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "privateWorkspace": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "here",
                                "elsewhere",
                                "workspaceNames",
                                "privateWorkspace"
                              ],
                              "patternProperties": {
                                "^(?!(?:here|elsewhere|workspaceNames|privateWorkspace)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "here",
                                  "elsewhere",
                                  "workspaceNames",
                                  "privateWorkspace"
                                ]
                              }
                            }
                          },
                          "required": [
                            "id",
                            "emailAddress",
                            "provider",
                            "status",
                            "ready",
                            "firstName",
                            "lastName",
                            "alreadyConnected",
                            "connection"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|emailAddress|provider|status|ready|firstName|lastName|tags|isAdmin|dailyLimit|sourceProvider|alreadyConnected|connection)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "emailAddress",
                              "provider",
                              "status",
                              "ready",
                              "firstName",
                              "lastName",
                              "tags",
                              "isAdmin",
                              "dailyLimit",
                              "sourceProvider",
                              "alreadyConnected",
                              "connection"
                            ]
                          }
                        }
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "nextOffset": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unavailableReason": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "workspace": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "name": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|name)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "name"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "statuses": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      }
                    },
                    "required": [
                      "items",
                      "total",
                      "nextOffset",
                      "unavailableReason",
                      "workspace",
                      "statuses",
                      "tags"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|total|nextOffset|unavailableReason|workspace|statuses|tags)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "total",
                        "nextOffset",
                        "unavailableReason",
                        "workspace",
                        "statuses",
                        "tags"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "ids": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "ids",
                      "total"
                    ],
                    "patternProperties": {
                      "^(?!(?:ids|total)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "ids",
                        "total"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "cancelled": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "cancelled"
                    ],
                    "patternProperties": {
                      "^(?!(?:cancelled)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "cancelled"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "cheap_inboxes",
                          "inboxing"
                        ]
                      },
                      "name": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "discovering",
                          "ready",
                          "connecting",
                          "completed",
                          "failed",
                          "cancelled"
                        ]
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "connected": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "hasPendingGoogle": {
                        "type": "boolean"
                      },
                      "busy": {
                        "type": "boolean"
                      },
                      "automation": {
                        "type": "string",
                        "enum": [
                          "playwright",
                          "local_chrome",
                          "kernel"
                        ]
                      },
                      "initialSendingMode": {
                        "type": "string",
                        "enum": [
                          "default",
                          "disabled"
                        ]
                      },
                      "attemptId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "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"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "status": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "inboxId": {
                              "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"
                                }
                              ]
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "emailAddress",
                            "provider",
                            "status",
                            "inboxId",
                            "error"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|emailAddress|provider|status|inboxId|error)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "emailAddress",
                              "provider",
                              "status",
                              "inboxId",
                              "error"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "id",
                      "source",
                      "name",
                      "status",
                      "total",
                      "connected",
                      "hasPendingGoogle",
                      "busy",
                      "automation",
                      "initialSendingMode",
                      "attemptId",
                      "error",
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|source|name|status|total|connected|hasPendingGoogle|busy|automation|initialSendingMode|attemptId|error|items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "source",
                        "name",
                        "status",
                        "total",
                        "connected",
                        "hasPendingGoogle",
                        "busy",
                        "automation",
                        "initialSendingMode",
                        "attemptId",
                        "error",
                        "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"
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "cheap_inboxes",
                            "inboxing"
                          ]
                        },
                        "name": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "discovering",
                            "ready",
                            "connecting",
                            "completed",
                            "failed",
                            "cancelled"
                          ]
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "connected": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "source",
                        "name",
                        "status",
                        "count",
                        "connected"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|source|name|status|count|connected)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "source",
                          "name",
                          "status",
                          "count",
                          "connected"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "clientId": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "domains": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      }
                    },
                    "required": [
                      "clientId",
                      "domains"
                    ],
                    "patternProperties": {
                      "^(?!(?:clientId|domains)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "clientId",
                        "domains"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "authorizationUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "expiresAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "googleClientId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "authorizationUrl",
                      "expiresAt",
                      "googleClientId"
                    ],
                    "patternProperties": {
                      "^(?!(?:authorizationUrl|expiresAt|googleClientId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "authorizationUrl",
                        "expiresAt",
                        "googleClientId"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "statusUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "$ref": "#/$defs/HttpResourcePath"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "waiting_for_user",
                          "succeeded",
                          "partially_succeeded",
                          "failed",
                          "canceled",
                          "canceling"
                        ]
                      },
                      "acceptedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "progress": {
                        "type": "object",
                        "properties": {
                          "completed": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "message": {
                            "$ref": "#/$defs/NonEmptyString"
                          }
                        },
                        "required": [
                          "completed"
                        ],
                        "patternProperties": {
                          "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "completed",
                            "total",
                            "message"
                          ]
                        }
                      },
                      "canCancel": {
                        "type": "boolean"
                      },
                      "importId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      }
                    },
                    "required": [
                      "id",
                      "statusUrl",
                      "state",
                      "acceptedAt",
                      "canCancel",
                      "importId"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel|importId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "statusUrl",
                        "state",
                        "acceptedAt",
                        "progress",
                        "canCancel",
                        "importId"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "statusUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "$ref": "#/$defs/HttpResourcePath"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "waiting_for_user",
                          "succeeded",
                          "partially_succeeded",
                          "failed",
                          "canceled",
                          "canceling"
                        ]
                      },
                      "acceptedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "progress": {
                        "type": "object",
                        "properties": {
                          "completed": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "message": {
                            "$ref": "#/$defs/NonEmptyString"
                          }
                        },
                        "required": [
                          "completed"
                        ],
                        "patternProperties": {
                          "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "completed",
                            "total",
                            "message"
                          ]
                        }
                      },
                      "canCancel": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "statusUrl",
                      "state",
                      "acceptedAt",
                      "canCancel"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "statusUrl",
                        "state",
                        "acceptedAt",
                        "progress",
                        "canCancel"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "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"
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "cheap_inboxes",
                              "inboxing"
                            ]
                          },
                          "expectedWorkspaceId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "waiting_for_user",
                              "saving",
                              "completed",
                              "expired",
                              "canceled",
                              "failed"
                            ]
                          },
                          "handoffUrl": {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "connection": {
                            "anyOf": [
                              {
                                "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"
                                  },
                                  "provider": {
                                    "type": "string",
                                    "enum": [
                                      "cheap_inboxes",
                                      "inboxing"
                                    ]
                                  },
                                  "label": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  },
                                  "workspace": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "$ref": "#/$defs/NonEmptyString"
                                          },
                                          "name": {
                                            "$ref": "#/$defs/NonEmptyString"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:id|name)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "id",
                                            "name"
                                          ]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "provider",
                                  "label",
                                  "workspace"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|provider|label|workspace)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "provider",
                                    "label",
                                    "workspace"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "message": {
                            "$ref": "#/$defs/ShortText"
                          }
                        },
                        "required": [
                          "id",
                          "workspaceId",
                          "provider",
                          "expectedWorkspaceId",
                          "status",
                          "handoffUrl",
                          "expiresAt",
                          "connection",
                          "message"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|workspaceId|provider|expectedWorkspaceId|status|handoffUrl|expiresAt|connection|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "workspaceId",
                            "provider",
                            "expectedWorkspaceId",
                            "status",
                            "handoffUrl",
                            "expiresAt",
                            "connection",
                            "message"
                          ]
                        }
                      },
                      {
                        "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"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "cheap_inboxes",
                                "inboxing"
                              ]
                            },
                            "label": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "workspace": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    "name": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "name"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|name)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "name"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "provider",
                            "label",
                            "workspace"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|provider|label|workspace)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "provider",
                              "label",
                              "workspace"
                            ]
                          }
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "name": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "status": {
                                  "$ref": "#/$defs/NonEmptyString"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "status"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|status)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "status"
                                ]
                              }
                            }
                          },
                          "hasMore": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "items",
                          "hasMore"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|hasMore)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "hasMore"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "google_workspace",
                                        "microsoft_365"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "status": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "ready": {
                                  "type": "boolean"
                                },
                                "firstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "tags": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "isAdmin": {
                                  "type": "boolean"
                                },
                                "dailyLimit": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "sourceProvider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "alreadyConnected": {
                                  "type": "boolean"
                                },
                                "connection": {
                                  "type": "object",
                                  "properties": {
                                    "here": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "elsewhere": {
                                      "type": "boolean"
                                    },
                                    "workspaceNames": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/$defs/ShortText"
                                      }
                                    },
                                    "privateWorkspace": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "here",
                                    "elsewhere",
                                    "workspaceNames",
                                    "privateWorkspace"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:here|elsewhere|workspaceNames|privateWorkspace)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "here",
                                      "elsewhere",
                                      "workspaceNames",
                                      "privateWorkspace"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "provider",
                                "status",
                                "ready",
                                "firstName",
                                "lastName",
                                "alreadyConnected",
                                "connection"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|provider|status|ready|firstName|lastName|tags|isAdmin|dailyLimit|sourceProvider|alreadyConnected|connection)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "provider",
                                  "status",
                                  "ready",
                                  "firstName",
                                  "lastName",
                                  "tags",
                                  "isAdmin",
                                  "dailyLimit",
                                  "sourceProvider",
                                  "alreadyConnected",
                                  "connection"
                                ]
                              }
                            }
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "nextOffset": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unavailableReason": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "workspace": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  },
                                  "name": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|name)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "name"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "statuses": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          }
                        },
                        "required": [
                          "items",
                          "total",
                          "nextOffset",
                          "unavailableReason",
                          "workspace",
                          "statuses",
                          "tags"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|total|nextOffset|unavailableReason|workspace|statuses|tags)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "total",
                            "nextOffset",
                            "unavailableReason",
                            "workspace",
                            "statuses",
                            "tags"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "ids": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "ids",
                          "total"
                        ],
                        "patternProperties": {
                          "^(?!(?:ids|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "ids",
                            "total"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "cancelled": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "cancelled"
                        ],
                        "patternProperties": {
                          "^(?!(?:cancelled)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "cancelled"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "cheap_inboxes",
                              "inboxing"
                            ]
                          },
                          "name": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "discovering",
                              "ready",
                              "connecting",
                              "completed",
                              "failed",
                              "cancelled"
                            ]
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "connected": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "hasPendingGoogle": {
                            "type": "boolean"
                          },
                          "busy": {
                            "type": "boolean"
                          },
                          "automation": {
                            "type": "string",
                            "enum": [
                              "playwright",
                              "local_chrome",
                              "kernel"
                            ]
                          },
                          "initialSendingMode": {
                            "type": "string",
                            "enum": [
                              "default",
                              "disabled"
                            ]
                          },
                          "attemptId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "error": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "status": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "inboxId": {
                                  "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"
                                    }
                                  ]
                                },
                                "error": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "provider",
                                "status",
                                "inboxId",
                                "error"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|provider|status|inboxId|error)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "provider",
                                  "status",
                                  "inboxId",
                                  "error"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "id",
                          "source",
                          "name",
                          "status",
                          "total",
                          "connected",
                          "hasPendingGoogle",
                          "busy",
                          "automation",
                          "initialSendingMode",
                          "attemptId",
                          "error",
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|source|name|status|total|connected|hasPendingGoogle|busy|automation|initialSendingMode|attemptId|error|items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "source",
                            "name",
                            "status",
                            "total",
                            "connected",
                            "hasPendingGoogle",
                            "busy",
                            "automation",
                            "initialSendingMode",
                            "attemptId",
                            "error",
                            "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"
                            },
                            "source": {
                              "type": "string",
                              "enum": [
                                "cheap_inboxes",
                                "inboxing"
                              ]
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "discovering",
                                "ready",
                                "connecting",
                                "completed",
                                "failed",
                                "cancelled"
                              ]
                            },
                            "count": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "connected": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "id",
                            "source",
                            "name",
                            "status",
                            "count",
                            "connected"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|source|name|status|count|connected)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "source",
                              "name",
                              "status",
                              "count",
                              "connected"
                            ]
                          }
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "clientId": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "domains": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          }
                        },
                        "required": [
                          "clientId",
                          "domains"
                        ],
                        "patternProperties": {
                          "^(?!(?:clientId|domains)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "clientId",
                            "domains"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "authorizationUrl": {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "googleClientId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "authorizationUrl",
                          "expiresAt",
                          "googleClientId"
                        ],
                        "patternProperties": {
                          "^(?!(?:authorizationUrl|expiresAt|googleClientId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "authorizationUrl",
                            "expiresAt",
                            "googleClientId"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          },
                          "importId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel",
                          "importId"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel|importId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel",
                            "importId"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_mailbox_provider_import"
      },
      "scopes": [
        "integration:create",
        "integration:read",
        "inbox:connect",
        "inbox:read"
      ],
      "bundles": [
        "mailbox_provider_imports"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxProviderImports.beginSetup",
        "inboxProviderImports.getSetup",
        "inboxProviderImports.cancelSetup",
        "inboxProviderImports.listConnections",
        "inboxProviderImports.domains",
        "inboxProviderImports.mailboxes",
        "inboxProviderImports.selectMailboxes",
        "inboxProviderImports.start",
        "inboxProviderImports.retry",
        "inboxProviderImports.list",
        "inboxProviderImports.get",
        "inboxProviderImports.googleApproval",
        "inboxProviderImports.connectLink",
        "inboxProviderImports.cancel"
      ],
      "invocations": [
        {
          "operationId": "inboxProviderImports.beginSetup",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/setups",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.getSetup",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/setups/:setupId",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.cancelSetup",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/setups/:setupId/cancel",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.listConnections",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/connections",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.domains",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/connections/:connectionId/domains",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.mailboxes",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/connections/:connectionId/mailboxes",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.selectMailboxes",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-providers/connections/:connectionId/mailbox-selection",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.start",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-imports",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.retry",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-imports/:importId/retry",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inbox-imports",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inbox-imports/:importId",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.googleApproval",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inbox-imports/:importId/google-approval",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.connectLink",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-imports/:importId/connect-link",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxProviderImports.cancel",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-imports/:importId/cancel",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "begin_setup"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "enum": [
                      "cheap_inboxes",
                      "inboxing"
                    ]
                  },
                  "expectedWorkspaceId": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "provider"
                ],
                "patternProperties": {
                  "^(?!(?:provider|expectedWorkspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "provider",
                    "expectedWorkspaceId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "setup_status"
                ]
              },
              "setupId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "setupId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|setupId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "setupId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "cancel_setup"
                ]
              },
              "setupId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "setupId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|setupId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "setupId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "connections"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "domains"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "query": {
                "type": "object",
                "properties": {
                  "page": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "patternProperties": {
                  "^(?!(?:page)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "page"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId",
              "query"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|connectionId|query)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "connectionId",
                    "query"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "mailboxes"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "filters": {
                "type": "object",
                "properties": {
                  "connectionStatus": {
                    "type": "string",
                    "enum": [
                      "",
                      "here",
                      "elsewhere",
                      "not_here",
                      "unconnected"
                    ]
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 10,
                    "maximum": 100
                  },
                  "refresh": {
                    "type": "boolean"
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "domainId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "search": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "status": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "tag": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "",
                      "google_workspace",
                      "microsoft_365",
                      "unsupported"
                    ]
                  },
                  "admin": {
                    "type": "string",
                    "enum": [
                      "",
                      "yes",
                      "no"
                    ]
                  },
                  "sort": {
                    "type": "string",
                    "enum": [
                      "emailAddress",
                      "name",
                      "status",
                      "provider"
                    ]
                  },
                  "descending": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:connectionStatus|limit|refresh|offset|domainId|search|status|tag|provider|admin|sort|descending)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "connectionStatus",
                    "limit",
                    "refresh",
                    "offset",
                    "domainId",
                    "search",
                    "status",
                    "tag",
                    "provider",
                    "admin",
                    "sort",
                    "descending"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId",
              "filters"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|connectionId|filters)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "connectionId",
                    "filters"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "select_mailboxes"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "filters": {
                "type": "object",
                "properties": {
                  "connectionStatus": {
                    "type": "string",
                    "enum": [
                      "",
                      "here",
                      "elsewhere",
                      "not_here",
                      "unconnected"
                    ]
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 10,
                    "maximum": 100
                  },
                  "refresh": {
                    "type": "boolean"
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "domainId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "search": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "status": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "tag": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "",
                      "google_workspace",
                      "microsoft_365",
                      "unsupported"
                    ]
                  },
                  "admin": {
                    "type": "string",
                    "enum": [
                      "",
                      "yes",
                      "no"
                    ]
                  },
                  "sort": {
                    "type": "string",
                    "enum": [
                      "emailAddress",
                      "name",
                      "status",
                      "provider"
                    ]
                  },
                  "descending": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:connectionStatus|limit|refresh|offset|domainId|search|status|tag|provider|admin|sort|descending)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "connectionStatus",
                    "limit",
                    "refresh",
                    "offset",
                    "domainId",
                    "search",
                    "status",
                    "tag",
                    "provider",
                    "admin",
                    "sort",
                    "descending"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId",
              "filters"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|connectionId|filters)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "connectionId",
                    "filters"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "start"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "connectionId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "mailboxIds": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    "minItems": 1,
                    "maxItems": 10000
                  },
                  "domainId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "automation": {
                    "type": "string",
                    "enum": [
                      "playwright",
                      "local_chrome"
                    ]
                  },
                  "initialSendingMode": {
                    "type": "string",
                    "enum": [
                      "default",
                      "disabled"
                    ]
                  }
                },
                "required": [
                  "connectionId",
                  "mailboxIds"
                ],
                "patternProperties": {
                  "^(?!(?:connectionId|mailboxIds|domainId|automation|initialSendingMode)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "connectionId",
                    "mailboxIds",
                    "domainId",
                    "automation",
                    "initialSendingMode"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "retry"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "approvedClientId": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "automation": {
                    "type": "string",
                    "enum": [
                      "playwright",
                      "local_chrome"
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:approvedClientId|automation)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "approvedClientId",
                    "automation"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|importId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "importId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "imports"
                ]
              },
              "query": {
                "type": "object",
                "properties": {
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "patternProperties": {
                  "^(?!(?:offset|limit)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "offset",
                    "limit"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "query"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|query)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "query"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "get"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "query": {
                "type": "object",
                "properties": {
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "patternProperties": {
                  "^(?!(?:offset|limit)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "offset",
                    "limit"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId",
              "query"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|importId|query)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "importId",
                    "query"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "google_approval"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|importId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "importId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "connect_link"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "itemId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "itemId"
                ],
                "patternProperties": {
                  "^(?!(?:itemId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "itemId"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|importId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "importId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "cancel"
                ]
              },
              "importId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "importId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|importId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "importId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "manage_organization",
      "description": "Rename an Organization.\n\nUse when the user asks to rename an Organization they manage.\n\nDeleting or transferring an Organization is owner-only and must be done by the user in settings.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "$ref": "#/$defs/ShortText"
          }
        },
        "required": [
          "organizationId",
          "name"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|name)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "name"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "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": {
            "$ref": "#/$defs/ShortText"
          },
          "logo": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "type": "null"
              }
            ]
          },
          "isOwner": {
            "type": "boolean"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "audit:read",
                "billing:manage",
                "billing:read",
                "org:delete",
                "orgAnalytics:read",
                "orgAnalytics:manage",
                "org:read",
                "org:update",
                "orgApiKey:manage",
                "orgMember:invite",
                "orgMember:read",
                "orgMember:remove",
                "orgMember:update",
                "role:manage",
                "role:read",
                "usage:read",
                "workspace:create",
                "workspace:delete",
                "workspace:transfer"
              ]
            }
          },
          "visibleWorkspaceCount": {
            "type": "integer"
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "slug": {
            "$ref": "#/$defs/ShortText"
          },
          "owner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                  },
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "logo",
          "isOwner",
          "permissions",
          "visibleWorkspaceCount",
          "createdAt",
          "slug",
          "owner"
        ],
        "patternProperties": {
          "^(?!(?:id|name|logo|isOwner|permissions|visibleWorkspaceCount|createdAt|slug|owner)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "name",
            "logo",
            "isOwner",
            "permissions",
            "visibleWorkspaceCount",
            "createdAt",
            "slug",
            "owner"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_organization"
      },
      "scopes": [
        "org:update"
      ],
      "bundles": [
        "organization_administration"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizations.update"
      ],
      "invocations": [
        {
          "operationId": "organizations.update",
          "method": "PATCH",
          "path": "/v1/organizations/:organizationId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "$ref": "#/$defs/ShortText"
          }
        },
        "required": [
          "organizationId",
          "name"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|name)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "name"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "manage_organization_members",
      "description": "List Organization or Workspace members and change or remove their grants within the user's own permissions.\n\nUse to give a member roles, direct permissions, an all-Workspaces grant, or per-Workspace access, or to remove them.\n\nGrants can never exceed what the user holds; the owner changes only by ownership transfer. Use invitations to add new people.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "listWorkspace"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "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"
              }
            },
            "required": [
              "action",
              "organizationId",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "workspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "updateGrants"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "organization": {
                "type": "object",
                "properties": {
                  "roles": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/RoleId"
                    },
                    "maxItems": 32
                  },
                  "direct": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "audit:read",
                        "billing:manage",
                        "billing:read",
                        "org:delete",
                        "orgAnalytics:read",
                        "orgAnalytics:manage",
                        "org:read",
                        "org:update",
                        "orgApiKey:manage",
                        "orgMember:invite",
                        "orgMember:read",
                        "orgMember:remove",
                        "orgMember:update",
                        "role:manage",
                        "role:read",
                        "usage:read",
                        "workspace:create",
                        "workspace:delete",
                        "workspace:transfer"
                      ]
                    },
                    "maxItems": 128
                  }
                },
                "required": [
                  "roles",
                  "direct"
                ],
                "patternProperties": {
                  "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "roles",
                    "direct"
                  ]
                }
              },
              "allWorkspaces": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "roles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/RoleId"
                        },
                        "maxItems": 32
                      },
                      "direct": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "analytics:export",
                            "analytics:read",
                            "apiKey:create",
                            "apiKey:delete",
                            "apiKey:read",
                            "apiKey:update",
                            "blocklist:create",
                            "blocklist:delete",
                            "blocklist:read",
                            "campaign:archive",
                            "campaign:create",
                            "campaign:delete",
                            "campaign:launch",
                            "campaign:pause",
                            "campaign:read",
                            "campaign:update",
                            "dialer:assign_numbers",
                            "dialer:assign_seats",
                            "dialer:create",
                            "dialer:delete",
                            "dialer:dial",
                            "dialer:manage_billing",
                            "dialer:manage_number_health",
                            "dialer:manage_numbers",
                            "dialer:manage_numbers_self",
                            "dialer:manage_voicemails",
                            "dialer:read",
                            "dialer:read_analytics",
                            "dialer:read_numbers_all",
                            "dialer:release_numbers",
                            "dialer:update",
                            "domain:manage_dns",
                            "domain:purchase",
                            "domain:read",
                            "domain:transfer",
                            "emailVerification:manage_credits",
                            "emailVerification:manage_keys",
                            "emailVerification:manage_sharing",
                            "emailVerification:read",
                            "emailVerification:verify",
                            "inbox:connect",
                            "inbox:create",
                            "inbox:delete",
                            "inbox:read",
                            "inbox:update",
                            "inbox:warmup_manage",
                            "integration:create",
                            "integration:delete",
                            "integration:read",
                            "integration:update",
                            "lead:create",
                            "lead:delete",
                            "lead:export",
                            "lead:import",
                            "lead:read",
                            "lead:update",
                            "leadList:create",
                            "leadList:delete",
                            "leadList:read",
                            "leadList:update",
                            "phoneVerification:manage_keys",
                            "phoneVerification:read",
                            "phoneVerification:verify",
                            "replyLabel:create",
                            "replyLabel:delete",
                            "replyLabel:read",
                            "replyLabel:update",
                            "sequence:create",
                            "sequence:delete",
                            "sequence:read",
                            "sequence:update",
                            "sql:manage_dashboards",
                            "sql:query",
                            "support:create",
                            "support:read",
                            "support:update",
                            "tag:create",
                            "tag:delete",
                            "tag:read",
                            "tag:update",
                            "task:create",
                            "task:delete",
                            "task:read",
                            "task:update",
                            "template:create",
                            "template:delete",
                            "template:read",
                            "template:update",
                            "unibox:archive",
                            "unibox:label",
                            "unibox:read",
                            "unibox:reply",
                            "webhook:create",
                            "webhook:delete",
                            "webhook:read",
                            "webhook:update",
                            "whiteLabel:read",
                            "whiteLabel:update",
                            "workflow:create",
                            "workflow:delete",
                            "workflow:publish",
                            "workflow:read",
                            "workflow:run",
                            "workflow:update",
                            "workspace:read",
                            "workspace:update",
                            "workspaceMember:invite",
                            "workspaceMember:read",
                            "workspaceMember:remove",
                            "workspaceMember:update"
                          ]
                        },
                        "maxItems": 512
                      }
                    },
                    "required": [
                      "roles",
                      "direct"
                    ],
                    "patternProperties": {
                      "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "roles",
                        "direct"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "workspaces": {
                "type": "array",
                "items": {
                  "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"
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/$defs/RoleId"
                      },
                      "maxItems": 32
                    },
                    "direct": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "analytics:export",
                          "analytics:read",
                          "apiKey:create",
                          "apiKey:delete",
                          "apiKey:read",
                          "apiKey:update",
                          "blocklist:create",
                          "blocklist:delete",
                          "blocklist:read",
                          "campaign:archive",
                          "campaign:create",
                          "campaign:delete",
                          "campaign:launch",
                          "campaign:pause",
                          "campaign:read",
                          "campaign:update",
                          "dialer:assign_numbers",
                          "dialer:assign_seats",
                          "dialer:create",
                          "dialer:delete",
                          "dialer:dial",
                          "dialer:manage_billing",
                          "dialer:manage_number_health",
                          "dialer:manage_numbers",
                          "dialer:manage_numbers_self",
                          "dialer:manage_voicemails",
                          "dialer:read",
                          "dialer:read_analytics",
                          "dialer:read_numbers_all",
                          "dialer:release_numbers",
                          "dialer:update",
                          "domain:manage_dns",
                          "domain:purchase",
                          "domain:read",
                          "domain:transfer",
                          "emailVerification:manage_credits",
                          "emailVerification:manage_keys",
                          "emailVerification:manage_sharing",
                          "emailVerification:read",
                          "emailVerification:verify",
                          "inbox:connect",
                          "inbox:create",
                          "inbox:delete",
                          "inbox:read",
                          "inbox:update",
                          "inbox:warmup_manage",
                          "integration:create",
                          "integration:delete",
                          "integration:read",
                          "integration:update",
                          "lead:create",
                          "lead:delete",
                          "lead:export",
                          "lead:import",
                          "lead:read",
                          "lead:update",
                          "leadList:create",
                          "leadList:delete",
                          "leadList:read",
                          "leadList:update",
                          "phoneVerification:manage_keys",
                          "phoneVerification:read",
                          "phoneVerification:verify",
                          "replyLabel:create",
                          "replyLabel:delete",
                          "replyLabel:read",
                          "replyLabel:update",
                          "sequence:create",
                          "sequence:delete",
                          "sequence:read",
                          "sequence:update",
                          "sql:manage_dashboards",
                          "sql:query",
                          "support:create",
                          "support:read",
                          "support:update",
                          "tag:create",
                          "tag:delete",
                          "tag:read",
                          "tag:update",
                          "task:create",
                          "task:delete",
                          "task:read",
                          "task:update",
                          "template:create",
                          "template:delete",
                          "template:read",
                          "template:update",
                          "unibox:archive",
                          "unibox:label",
                          "unibox:read",
                          "unibox:reply",
                          "webhook:create",
                          "webhook:delete",
                          "webhook:read",
                          "webhook:update",
                          "whiteLabel:read",
                          "whiteLabel:update",
                          "workflow:create",
                          "workflow:delete",
                          "workflow:publish",
                          "workflow:read",
                          "workflow:run",
                          "workflow:update",
                          "workspace:read",
                          "workspace:update",
                          "workspaceMember:invite",
                          "workspaceMember:read",
                          "workspaceMember:remove",
                          "workspaceMember:update"
                        ]
                      },
                      "maxItems": 512
                    }
                  },
                  "required": [
                    "workspaceId",
                    "roles",
                    "direct"
                  ],
                  "patternProperties": {
                    "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "workspaceId",
                      "roles",
                      "direct"
                    ]
                  }
                },
                "maxItems": 500
              }
            },
            "required": [
              "action",
              "organizationId",
              "userId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|userId|organization|allWorkspaces|workspaces)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "userId",
                "organization",
                "allWorkspaces",
                "workspaces"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "remove"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId",
              "userId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|userId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "userId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "removeFromWorkspace"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "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"
              },
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId",
              "workspaceId",
              "userId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|workspaceId|userId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "workspaceId",
                "userId"
              ]
            }
          }
        ],
        "$defs": {
          "RoleId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ManageOrganizationMembersInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "list"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "listWorkspace"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "updateGrants"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "organization": {
                    "type": "object",
                    "properties": {
                      "roles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/RoleId"
                        },
                        "maxItems": 32
                      },
                      "direct": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "audit:read",
                            "billing:manage",
                            "billing:read",
                            "org:delete",
                            "orgAnalytics:read",
                            "orgAnalytics:manage",
                            "org:read",
                            "org:update",
                            "orgApiKey:manage",
                            "orgMember:invite",
                            "orgMember:read",
                            "orgMember:remove",
                            "orgMember:update",
                            "role:manage",
                            "role:read",
                            "usage:read",
                            "workspace:create",
                            "workspace:delete",
                            "workspace:transfer"
                          ]
                        },
                        "maxItems": 128
                      }
                    },
                    "required": [
                      "roles",
                      "direct"
                    ],
                    "patternProperties": {
                      "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "roles",
                        "direct"
                      ]
                    }
                  },
                  "allWorkspaces": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/RoleId"
                            },
                            "maxItems": 32
                          },
                          "direct": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "analytics:export",
                                "analytics:read",
                                "apiKey:create",
                                "apiKey:delete",
                                "apiKey:read",
                                "apiKey:update",
                                "blocklist:create",
                                "blocklist:delete",
                                "blocklist:read",
                                "campaign:archive",
                                "campaign:create",
                                "campaign:delete",
                                "campaign:launch",
                                "campaign:pause",
                                "campaign:read",
                                "campaign:update",
                                "dialer:assign_numbers",
                                "dialer:assign_seats",
                                "dialer:create",
                                "dialer:delete",
                                "dialer:dial",
                                "dialer:manage_billing",
                                "dialer:manage_number_health",
                                "dialer:manage_numbers",
                                "dialer:manage_numbers_self",
                                "dialer:manage_voicemails",
                                "dialer:read",
                                "dialer:read_analytics",
                                "dialer:read_numbers_all",
                                "dialer:release_numbers",
                                "dialer:update",
                                "domain:manage_dns",
                                "domain:purchase",
                                "domain:read",
                                "domain:transfer",
                                "emailVerification:manage_credits",
                                "emailVerification:manage_keys",
                                "emailVerification:manage_sharing",
                                "emailVerification:read",
                                "emailVerification:verify",
                                "inbox:connect",
                                "inbox:create",
                                "inbox:delete",
                                "inbox:read",
                                "inbox:update",
                                "inbox:warmup_manage",
                                "integration:create",
                                "integration:delete",
                                "integration:read",
                                "integration:update",
                                "lead:create",
                                "lead:delete",
                                "lead:export",
                                "lead:import",
                                "lead:read",
                                "lead:update",
                                "leadList:create",
                                "leadList:delete",
                                "leadList:read",
                                "leadList:update",
                                "phoneVerification:manage_keys",
                                "phoneVerification:read",
                                "phoneVerification:verify",
                                "replyLabel:create",
                                "replyLabel:delete",
                                "replyLabel:read",
                                "replyLabel:update",
                                "sequence:create",
                                "sequence:delete",
                                "sequence:read",
                                "sequence:update",
                                "sql:manage_dashboards",
                                "sql:query",
                                "support:create",
                                "support:read",
                                "support:update",
                                "tag:create",
                                "tag:delete",
                                "tag:read",
                                "tag:update",
                                "task:create",
                                "task:delete",
                                "task:read",
                                "task:update",
                                "template:create",
                                "template:delete",
                                "template:read",
                                "template:update",
                                "unibox:archive",
                                "unibox:label",
                                "unibox:read",
                                "unibox:reply",
                                "webhook:create",
                                "webhook:delete",
                                "webhook:read",
                                "webhook:update",
                                "whiteLabel:read",
                                "whiteLabel:update",
                                "workflow:create",
                                "workflow:delete",
                                "workflow:publish",
                                "workflow:read",
                                "workflow:run",
                                "workflow:update",
                                "workspace:read",
                                "workspace:update",
                                "workspaceMember:invite",
                                "workspaceMember:read",
                                "workspaceMember:remove",
                                "workspaceMember:update"
                              ]
                            },
                            "maxItems": 512
                          }
                        },
                        "required": [
                          "roles",
                          "direct"
                        ],
                        "patternProperties": {
                          "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "roles",
                            "direct"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "workspaces": {
                    "type": "array",
                    "items": {
                      "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"
                        },
                        "roles": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/RoleId"
                          },
                          "maxItems": 32
                        },
                        "direct": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "analytics:export",
                              "analytics:read",
                              "apiKey:create",
                              "apiKey:delete",
                              "apiKey:read",
                              "apiKey:update",
                              "blocklist:create",
                              "blocklist:delete",
                              "blocklist:read",
                              "campaign:archive",
                              "campaign:create",
                              "campaign:delete",
                              "campaign:launch",
                              "campaign:pause",
                              "campaign:read",
                              "campaign:update",
                              "dialer:assign_numbers",
                              "dialer:assign_seats",
                              "dialer:create",
                              "dialer:delete",
                              "dialer:dial",
                              "dialer:manage_billing",
                              "dialer:manage_number_health",
                              "dialer:manage_numbers",
                              "dialer:manage_numbers_self",
                              "dialer:manage_voicemails",
                              "dialer:read",
                              "dialer:read_analytics",
                              "dialer:read_numbers_all",
                              "dialer:release_numbers",
                              "dialer:update",
                              "domain:manage_dns",
                              "domain:purchase",
                              "domain:read",
                              "domain:transfer",
                              "emailVerification:manage_credits",
                              "emailVerification:manage_keys",
                              "emailVerification:manage_sharing",
                              "emailVerification:read",
                              "emailVerification:verify",
                              "inbox:connect",
                              "inbox:create",
                              "inbox:delete",
                              "inbox:read",
                              "inbox:update",
                              "inbox:warmup_manage",
                              "integration:create",
                              "integration:delete",
                              "integration:read",
                              "integration:update",
                              "lead:create",
                              "lead:delete",
                              "lead:export",
                              "lead:import",
                              "lead:read",
                              "lead:update",
                              "leadList:create",
                              "leadList:delete",
                              "leadList:read",
                              "leadList:update",
                              "phoneVerification:manage_keys",
                              "phoneVerification:read",
                              "phoneVerification:verify",
                              "replyLabel:create",
                              "replyLabel:delete",
                              "replyLabel:read",
                              "replyLabel:update",
                              "sequence:create",
                              "sequence:delete",
                              "sequence:read",
                              "sequence:update",
                              "sql:manage_dashboards",
                              "sql:query",
                              "support:create",
                              "support:read",
                              "support:update",
                              "tag:create",
                              "tag:delete",
                              "tag:read",
                              "tag:update",
                              "task:create",
                              "task:delete",
                              "task:read",
                              "task:update",
                              "template:create",
                              "template:delete",
                              "template:read",
                              "template:update",
                              "unibox:archive",
                              "unibox:label",
                              "unibox:read",
                              "unibox:reply",
                              "webhook:create",
                              "webhook:delete",
                              "webhook:read",
                              "webhook:update",
                              "whiteLabel:read",
                              "whiteLabel:update",
                              "workflow:create",
                              "workflow:delete",
                              "workflow:publish",
                              "workflow:read",
                              "workflow:run",
                              "workflow:update",
                              "workspace:read",
                              "workspace:update",
                              "workspaceMember:invite",
                              "workspaceMember:read",
                              "workspaceMember:remove",
                              "workspaceMember:update"
                            ]
                          },
                          "maxItems": 512
                        }
                      },
                      "required": [
                        "workspaceId",
                        "roles",
                        "direct"
                      ],
                      "patternProperties": {
                        "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "workspaceId",
                          "roles",
                          "direct"
                        ]
                      }
                    },
                    "maxItems": 500
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "userId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|userId|organization|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "userId",
                    "organization",
                    "allWorkspaces",
                    "workspaces"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "remove"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "userId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|userId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "userId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "removeFromWorkspace"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "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"
                  },
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "workspaceId",
                  "userId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|workspaceId|userId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "workspaceId",
                    "userId"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "RoleId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ManageOrganizationMembersOutput": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "userId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                    },
                    "email": {
                      "type": "string"
                    },
                    "image": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isOwner": {
                      "type": "boolean"
                    },
                    "organization": {
                      "type": "object",
                      "properties": {
                        "roles": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/RoleId"
                          },
                          "maxItems": 32
                        },
                        "direct": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "audit:read",
                              "billing:manage",
                              "billing:read",
                              "org:delete",
                              "orgAnalytics:read",
                              "orgAnalytics:manage",
                              "org:read",
                              "org:update",
                              "orgApiKey:manage",
                              "orgMember:invite",
                              "orgMember:read",
                              "orgMember:remove",
                              "orgMember:update",
                              "role:manage",
                              "role:read",
                              "usage:read",
                              "workspace:create",
                              "workspace:delete",
                              "workspace:transfer"
                            ]
                          },
                          "maxItems": 128
                        }
                      },
                      "required": [
                        "roles",
                        "direct"
                      ],
                      "patternProperties": {
                        "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "roles",
                          "direct"
                        ]
                      }
                    },
                    "allWorkspaces": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "roles": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/RoleId"
                              },
                              "maxItems": 32
                            },
                            "direct": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "analytics:export",
                                  "analytics:read",
                                  "apiKey:create",
                                  "apiKey:delete",
                                  "apiKey:read",
                                  "apiKey:update",
                                  "blocklist:create",
                                  "blocklist:delete",
                                  "blocklist:read",
                                  "campaign:archive",
                                  "campaign:create",
                                  "campaign:delete",
                                  "campaign:launch",
                                  "campaign:pause",
                                  "campaign:read",
                                  "campaign:update",
                                  "dialer:assign_numbers",
                                  "dialer:assign_seats",
                                  "dialer:create",
                                  "dialer:delete",
                                  "dialer:dial",
                                  "dialer:manage_billing",
                                  "dialer:manage_number_health",
                                  "dialer:manage_numbers",
                                  "dialer:manage_numbers_self",
                                  "dialer:manage_voicemails",
                                  "dialer:read",
                                  "dialer:read_analytics",
                                  "dialer:read_numbers_all",
                                  "dialer:release_numbers",
                                  "dialer:update",
                                  "domain:manage_dns",
                                  "domain:purchase",
                                  "domain:read",
                                  "domain:transfer",
                                  "emailVerification:manage_credits",
                                  "emailVerification:manage_keys",
                                  "emailVerification:manage_sharing",
                                  "emailVerification:read",
                                  "emailVerification:verify",
                                  "inbox:connect",
                                  "inbox:create",
                                  "inbox:delete",
                                  "inbox:read",
                                  "inbox:update",
                                  "inbox:warmup_manage",
                                  "integration:create",
                                  "integration:delete",
                                  "integration:read",
                                  "integration:update",
                                  "lead:create",
                                  "lead:delete",
                                  "lead:export",
                                  "lead:import",
                                  "lead:read",
                                  "lead:update",
                                  "leadList:create",
                                  "leadList:delete",
                                  "leadList:read",
                                  "leadList:update",
                                  "phoneVerification:manage_keys",
                                  "phoneVerification:read",
                                  "phoneVerification:verify",
                                  "replyLabel:create",
                                  "replyLabel:delete",
                                  "replyLabel:read",
                                  "replyLabel:update",
                                  "sequence:create",
                                  "sequence:delete",
                                  "sequence:read",
                                  "sequence:update",
                                  "sql:manage_dashboards",
                                  "sql:query",
                                  "support:create",
                                  "support:read",
                                  "support:update",
                                  "tag:create",
                                  "tag:delete",
                                  "tag:read",
                                  "tag:update",
                                  "task:create",
                                  "task:delete",
                                  "task:read",
                                  "task:update",
                                  "template:create",
                                  "template:delete",
                                  "template:read",
                                  "template:update",
                                  "unibox:archive",
                                  "unibox:label",
                                  "unibox:read",
                                  "unibox:reply",
                                  "webhook:create",
                                  "webhook:delete",
                                  "webhook:read",
                                  "webhook:update",
                                  "whiteLabel:read",
                                  "whiteLabel:update",
                                  "workflow:create",
                                  "workflow:delete",
                                  "workflow:publish",
                                  "workflow:read",
                                  "workflow:run",
                                  "workflow:update",
                                  "workspace:read",
                                  "workspace:update",
                                  "workspaceMember:invite",
                                  "workspaceMember:read",
                                  "workspaceMember:remove",
                                  "workspaceMember:update"
                                ]
                              },
                              "maxItems": 512
                            }
                          },
                          "required": [
                            "roles",
                            "direct"
                          ],
                          "patternProperties": {
                            "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "roles",
                              "direct"
                            ]
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "workspaces": {
                      "type": "array",
                      "items": {
                        "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"
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/RoleId"
                            },
                            "maxItems": 32
                          },
                          "direct": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "analytics:export",
                                "analytics:read",
                                "apiKey:create",
                                "apiKey:delete",
                                "apiKey:read",
                                "apiKey:update",
                                "blocklist:create",
                                "blocklist:delete",
                                "blocklist:read",
                                "campaign:archive",
                                "campaign:create",
                                "campaign:delete",
                                "campaign:launch",
                                "campaign:pause",
                                "campaign:read",
                                "campaign:update",
                                "dialer:assign_numbers",
                                "dialer:assign_seats",
                                "dialer:create",
                                "dialer:delete",
                                "dialer:dial",
                                "dialer:manage_billing",
                                "dialer:manage_number_health",
                                "dialer:manage_numbers",
                                "dialer:manage_numbers_self",
                                "dialer:manage_voicemails",
                                "dialer:read",
                                "dialer:read_analytics",
                                "dialer:read_numbers_all",
                                "dialer:release_numbers",
                                "dialer:update",
                                "domain:manage_dns",
                                "domain:purchase",
                                "domain:read",
                                "domain:transfer",
                                "emailVerification:manage_credits",
                                "emailVerification:manage_keys",
                                "emailVerification:manage_sharing",
                                "emailVerification:read",
                                "emailVerification:verify",
                                "inbox:connect",
                                "inbox:create",
                                "inbox:delete",
                                "inbox:read",
                                "inbox:update",
                                "inbox:warmup_manage",
                                "integration:create",
                                "integration:delete",
                                "integration:read",
                                "integration:update",
                                "lead:create",
                                "lead:delete",
                                "lead:export",
                                "lead:import",
                                "lead:read",
                                "lead:update",
                                "leadList:create",
                                "leadList:delete",
                                "leadList:read",
                                "leadList:update",
                                "phoneVerification:manage_keys",
                                "phoneVerification:read",
                                "phoneVerification:verify",
                                "replyLabel:create",
                                "replyLabel:delete",
                                "replyLabel:read",
                                "replyLabel:update",
                                "sequence:create",
                                "sequence:delete",
                                "sequence:read",
                                "sequence:update",
                                "sql:manage_dashboards",
                                "sql:query",
                                "support:create",
                                "support:read",
                                "support:update",
                                "tag:create",
                                "tag:delete",
                                "tag:read",
                                "tag:update",
                                "task:create",
                                "task:delete",
                                "task:read",
                                "task:update",
                                "template:create",
                                "template:delete",
                                "template:read",
                                "template:update",
                                "unibox:archive",
                                "unibox:label",
                                "unibox:read",
                                "unibox:reply",
                                "webhook:create",
                                "webhook:delete",
                                "webhook:read",
                                "webhook:update",
                                "whiteLabel:read",
                                "whiteLabel:update",
                                "workflow:create",
                                "workflow:delete",
                                "workflow:publish",
                                "workflow:read",
                                "workflow:run",
                                "workflow:update",
                                "workspace:read",
                                "workspace:update",
                                "workspaceMember:invite",
                                "workspaceMember:read",
                                "workspaceMember:remove",
                                "workspaceMember:update"
                              ]
                            },
                            "maxItems": 512
                          }
                        },
                        "required": [
                          "workspaceId",
                          "roles",
                          "direct"
                        ],
                        "patternProperties": {
                          "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "workspaceId",
                            "roles",
                            "direct"
                          ]
                        }
                      }
                    },
                    "manageable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "isOwner",
                    "organization",
                    "allWorkspaces",
                    "workspaces",
                    "manageable"
                  ],
                  "patternProperties": {
                    "^(?!(?:userId|name|email|image|isOwner|organization|allWorkspaces|workspaces|manageable)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "userId",
                      "name",
                      "email",
                      "image",
                      "isOwner",
                      "organization",
                      "allWorkspaces",
                      "workspaces",
                      "manageable"
                    ]
                  }
                }
              },
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "userId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                    },
                    "email": {
                      "type": "string"
                    },
                    "image": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isOwner": {
                      "type": "boolean"
                    },
                    "grant": {
                      "type": "object",
                      "properties": {
                        "roles": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/RoleId"
                          },
                          "maxItems": 32
                        },
                        "direct": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "analytics:export",
                              "analytics:read",
                              "apiKey:create",
                              "apiKey:delete",
                              "apiKey:read",
                              "apiKey:update",
                              "blocklist:create",
                              "blocklist:delete",
                              "blocklist:read",
                              "campaign:archive",
                              "campaign:create",
                              "campaign:delete",
                              "campaign:launch",
                              "campaign:pause",
                              "campaign:read",
                              "campaign:update",
                              "dialer:assign_numbers",
                              "dialer:assign_seats",
                              "dialer:create",
                              "dialer:delete",
                              "dialer:dial",
                              "dialer:manage_billing",
                              "dialer:manage_number_health",
                              "dialer:manage_numbers",
                              "dialer:manage_numbers_self",
                              "dialer:manage_voicemails",
                              "dialer:read",
                              "dialer:read_analytics",
                              "dialer:read_numbers_all",
                              "dialer:release_numbers",
                              "dialer:update",
                              "domain:manage_dns",
                              "domain:purchase",
                              "domain:read",
                              "domain:transfer",
                              "emailVerification:manage_credits",
                              "emailVerification:manage_keys",
                              "emailVerification:manage_sharing",
                              "emailVerification:read",
                              "emailVerification:verify",
                              "inbox:connect",
                              "inbox:create",
                              "inbox:delete",
                              "inbox:read",
                              "inbox:update",
                              "inbox:warmup_manage",
                              "integration:create",
                              "integration:delete",
                              "integration:read",
                              "integration:update",
                              "lead:create",
                              "lead:delete",
                              "lead:export",
                              "lead:import",
                              "lead:read",
                              "lead:update",
                              "leadList:create",
                              "leadList:delete",
                              "leadList:read",
                              "leadList:update",
                              "phoneVerification:manage_keys",
                              "phoneVerification:read",
                              "phoneVerification:verify",
                              "replyLabel:create",
                              "replyLabel:delete",
                              "replyLabel:read",
                              "replyLabel:update",
                              "sequence:create",
                              "sequence:delete",
                              "sequence:read",
                              "sequence:update",
                              "sql:manage_dashboards",
                              "sql:query",
                              "support:create",
                              "support:read",
                              "support:update",
                              "tag:create",
                              "tag:delete",
                              "tag:read",
                              "tag:update",
                              "task:create",
                              "task:delete",
                              "task:read",
                              "task:update",
                              "template:create",
                              "template:delete",
                              "template:read",
                              "template:update",
                              "unibox:archive",
                              "unibox:label",
                              "unibox:read",
                              "unibox:reply",
                              "webhook:create",
                              "webhook:delete",
                              "webhook:read",
                              "webhook:update",
                              "whiteLabel:read",
                              "whiteLabel:update",
                              "workflow:create",
                              "workflow:delete",
                              "workflow:publish",
                              "workflow:read",
                              "workflow:run",
                              "workflow:update",
                              "workspace:read",
                              "workspace:update",
                              "workspaceMember:invite",
                              "workspaceMember:read",
                              "workspaceMember:remove",
                              "workspaceMember:update"
                            ]
                          },
                          "maxItems": 512
                        }
                      },
                      "required": [
                        "roles",
                        "direct"
                      ],
                      "patternProperties": {
                        "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "roles",
                          "direct"
                        ]
                      }
                    },
                    "permissions": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "analytics:export",
                          "analytics:read",
                          "apiKey:create",
                          "apiKey:delete",
                          "apiKey:read",
                          "apiKey:update",
                          "blocklist:create",
                          "blocklist:delete",
                          "blocklist:read",
                          "campaign:archive",
                          "campaign:create",
                          "campaign:delete",
                          "campaign:launch",
                          "campaign:pause",
                          "campaign:read",
                          "campaign:update",
                          "dialer:assign_numbers",
                          "dialer:assign_seats",
                          "dialer:create",
                          "dialer:delete",
                          "dialer:dial",
                          "dialer:manage_billing",
                          "dialer:manage_number_health",
                          "dialer:manage_numbers",
                          "dialer:manage_numbers_self",
                          "dialer:manage_voicemails",
                          "dialer:read",
                          "dialer:read_analytics",
                          "dialer:read_numbers_all",
                          "dialer:release_numbers",
                          "dialer:update",
                          "domain:manage_dns",
                          "domain:purchase",
                          "domain:read",
                          "domain:transfer",
                          "emailVerification:manage_credits",
                          "emailVerification:manage_keys",
                          "emailVerification:manage_sharing",
                          "emailVerification:read",
                          "emailVerification:verify",
                          "inbox:connect",
                          "inbox:create",
                          "inbox:delete",
                          "inbox:read",
                          "inbox:update",
                          "inbox:warmup_manage",
                          "integration:create",
                          "integration:delete",
                          "integration:read",
                          "integration:update",
                          "lead:create",
                          "lead:delete",
                          "lead:export",
                          "lead:import",
                          "lead:read",
                          "lead:update",
                          "leadList:create",
                          "leadList:delete",
                          "leadList:read",
                          "leadList:update",
                          "phoneVerification:manage_keys",
                          "phoneVerification:read",
                          "phoneVerification:verify",
                          "replyLabel:create",
                          "replyLabel:delete",
                          "replyLabel:read",
                          "replyLabel:update",
                          "sequence:create",
                          "sequence:delete",
                          "sequence:read",
                          "sequence:update",
                          "sql:manage_dashboards",
                          "sql:query",
                          "support:create",
                          "support:read",
                          "support:update",
                          "tag:create",
                          "tag:delete",
                          "tag:read",
                          "tag:update",
                          "task:create",
                          "task:delete",
                          "task:read",
                          "task:update",
                          "template:create",
                          "template:delete",
                          "template:read",
                          "template:update",
                          "unibox:archive",
                          "unibox:label",
                          "unibox:read",
                          "unibox:reply",
                          "webhook:create",
                          "webhook:delete",
                          "webhook:read",
                          "webhook:update",
                          "whiteLabel:read",
                          "whiteLabel:update",
                          "workflow:create",
                          "workflow:delete",
                          "workflow:publish",
                          "workflow:read",
                          "workflow:run",
                          "workflow:update",
                          "workspace:read",
                          "workspace:update",
                          "workspaceMember:invite",
                          "workspaceMember:read",
                          "workspaceMember:remove",
                          "workspaceMember:update"
                        ]
                      }
                    },
                    "inherited": {
                      "type": "boolean"
                    },
                    "manageable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "isOwner",
                    "grant",
                    "permissions",
                    "inherited",
                    "manageable"
                  ],
                  "patternProperties": {
                    "^(?!(?:userId|name|email|image|isOwner|grant|permissions|inherited|manageable)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "userId",
                      "name",
                      "email",
                      "image",
                      "isOwner",
                      "grant",
                      "permissions",
                      "inherited",
                      "manageable"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                  },
                  "email": {
                    "type": "string"
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isOwner": {
                    "type": "boolean"
                  },
                  "organization": {
                    "type": "object",
                    "properties": {
                      "roles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/RoleId"
                        },
                        "maxItems": 32
                      },
                      "direct": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "audit:read",
                            "billing:manage",
                            "billing:read",
                            "org:delete",
                            "orgAnalytics:read",
                            "orgAnalytics:manage",
                            "org:read",
                            "org:update",
                            "orgApiKey:manage",
                            "orgMember:invite",
                            "orgMember:read",
                            "orgMember:remove",
                            "orgMember:update",
                            "role:manage",
                            "role:read",
                            "usage:read",
                            "workspace:create",
                            "workspace:delete",
                            "workspace:transfer"
                          ]
                        },
                        "maxItems": 128
                      }
                    },
                    "required": [
                      "roles",
                      "direct"
                    ],
                    "patternProperties": {
                      "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "roles",
                        "direct"
                      ]
                    }
                  },
                  "allWorkspaces": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/RoleId"
                            },
                            "maxItems": 32
                          },
                          "direct": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "analytics:export",
                                "analytics:read",
                                "apiKey:create",
                                "apiKey:delete",
                                "apiKey:read",
                                "apiKey:update",
                                "blocklist:create",
                                "blocklist:delete",
                                "blocklist:read",
                                "campaign:archive",
                                "campaign:create",
                                "campaign:delete",
                                "campaign:launch",
                                "campaign:pause",
                                "campaign:read",
                                "campaign:update",
                                "dialer:assign_numbers",
                                "dialer:assign_seats",
                                "dialer:create",
                                "dialer:delete",
                                "dialer:dial",
                                "dialer:manage_billing",
                                "dialer:manage_number_health",
                                "dialer:manage_numbers",
                                "dialer:manage_numbers_self",
                                "dialer:manage_voicemails",
                                "dialer:read",
                                "dialer:read_analytics",
                                "dialer:read_numbers_all",
                                "dialer:release_numbers",
                                "dialer:update",
                                "domain:manage_dns",
                                "domain:purchase",
                                "domain:read",
                                "domain:transfer",
                                "emailVerification:manage_credits",
                                "emailVerification:manage_keys",
                                "emailVerification:manage_sharing",
                                "emailVerification:read",
                                "emailVerification:verify",
                                "inbox:connect",
                                "inbox:create",
                                "inbox:delete",
                                "inbox:read",
                                "inbox:update",
                                "inbox:warmup_manage",
                                "integration:create",
                                "integration:delete",
                                "integration:read",
                                "integration:update",
                                "lead:create",
                                "lead:delete",
                                "lead:export",
                                "lead:import",
                                "lead:read",
                                "lead:update",
                                "leadList:create",
                                "leadList:delete",
                                "leadList:read",
                                "leadList:update",
                                "phoneVerification:manage_keys",
                                "phoneVerification:read",
                                "phoneVerification:verify",
                                "replyLabel:create",
                                "replyLabel:delete",
                                "replyLabel:read",
                                "replyLabel:update",
                                "sequence:create",
                                "sequence:delete",
                                "sequence:read",
                                "sequence:update",
                                "sql:manage_dashboards",
                                "sql:query",
                                "support:create",
                                "support:read",
                                "support:update",
                                "tag:create",
                                "tag:delete",
                                "tag:read",
                                "tag:update",
                                "task:create",
                                "task:delete",
                                "task:read",
                                "task:update",
                                "template:create",
                                "template:delete",
                                "template:read",
                                "template:update",
                                "unibox:archive",
                                "unibox:label",
                                "unibox:read",
                                "unibox:reply",
                                "webhook:create",
                                "webhook:delete",
                                "webhook:read",
                                "webhook:update",
                                "whiteLabel:read",
                                "whiteLabel:update",
                                "workflow:create",
                                "workflow:delete",
                                "workflow:publish",
                                "workflow:read",
                                "workflow:run",
                                "workflow:update",
                                "workspace:read",
                                "workspace:update",
                                "workspaceMember:invite",
                                "workspaceMember:read",
                                "workspaceMember:remove",
                                "workspaceMember:update"
                              ]
                            },
                            "maxItems": 512
                          }
                        },
                        "required": [
                          "roles",
                          "direct"
                        ],
                        "patternProperties": {
                          "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "roles",
                            "direct"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "workspaces": {
                    "type": "array",
                    "items": {
                      "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"
                        },
                        "roles": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/RoleId"
                          },
                          "maxItems": 32
                        },
                        "direct": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "analytics:export",
                              "analytics:read",
                              "apiKey:create",
                              "apiKey:delete",
                              "apiKey:read",
                              "apiKey:update",
                              "blocklist:create",
                              "blocklist:delete",
                              "blocklist:read",
                              "campaign:archive",
                              "campaign:create",
                              "campaign:delete",
                              "campaign:launch",
                              "campaign:pause",
                              "campaign:read",
                              "campaign:update",
                              "dialer:assign_numbers",
                              "dialer:assign_seats",
                              "dialer:create",
                              "dialer:delete",
                              "dialer:dial",
                              "dialer:manage_billing",
                              "dialer:manage_number_health",
                              "dialer:manage_numbers",
                              "dialer:manage_numbers_self",
                              "dialer:manage_voicemails",
                              "dialer:read",
                              "dialer:read_analytics",
                              "dialer:read_numbers_all",
                              "dialer:release_numbers",
                              "dialer:update",
                              "domain:manage_dns",
                              "domain:purchase",
                              "domain:read",
                              "domain:transfer",
                              "emailVerification:manage_credits",
                              "emailVerification:manage_keys",
                              "emailVerification:manage_sharing",
                              "emailVerification:read",
                              "emailVerification:verify",
                              "inbox:connect",
                              "inbox:create",
                              "inbox:delete",
                              "inbox:read",
                              "inbox:update",
                              "inbox:warmup_manage",
                              "integration:create",
                              "integration:delete",
                              "integration:read",
                              "integration:update",
                              "lead:create",
                              "lead:delete",
                              "lead:export",
                              "lead:import",
                              "lead:read",
                              "lead:update",
                              "leadList:create",
                              "leadList:delete",
                              "leadList:read",
                              "leadList:update",
                              "phoneVerification:manage_keys",
                              "phoneVerification:read",
                              "phoneVerification:verify",
                              "replyLabel:create",
                              "replyLabel:delete",
                              "replyLabel:read",
                              "replyLabel:update",
                              "sequence:create",
                              "sequence:delete",
                              "sequence:read",
                              "sequence:update",
                              "sql:manage_dashboards",
                              "sql:query",
                              "support:create",
                              "support:read",
                              "support:update",
                              "tag:create",
                              "tag:delete",
                              "tag:read",
                              "tag:update",
                              "task:create",
                              "task:delete",
                              "task:read",
                              "task:update",
                              "template:create",
                              "template:delete",
                              "template:read",
                              "template:update",
                              "unibox:archive",
                              "unibox:label",
                              "unibox:read",
                              "unibox:reply",
                              "webhook:create",
                              "webhook:delete",
                              "webhook:read",
                              "webhook:update",
                              "whiteLabel:read",
                              "whiteLabel:update",
                              "workflow:create",
                              "workflow:delete",
                              "workflow:publish",
                              "workflow:read",
                              "workflow:run",
                              "workflow:update",
                              "workspace:read",
                              "workspace:update",
                              "workspaceMember:invite",
                              "workspaceMember:read",
                              "workspaceMember:remove",
                              "workspaceMember:update"
                            ]
                          },
                          "maxItems": 512
                        }
                      },
                      "required": [
                        "workspaceId",
                        "roles",
                        "direct"
                      ],
                      "patternProperties": {
                        "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "workspaceId",
                          "roles",
                          "direct"
                        ]
                      }
                    }
                  },
                  "manageable": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "isOwner",
                  "organization",
                  "allWorkspaces",
                  "workspaces",
                  "manageable"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email|image|isOwner|organization|allWorkspaces|workspaces|manageable)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "isOwner",
                    "organization",
                    "allWorkspaces",
                    "workspaces",
                    "manageable"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "removed": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "removed"
                ],
                "patternProperties": {
                  "^(?!(?:removed)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "removed"
                      ]
                    }
                  ]
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/ManageOrganizationMembersOutput"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/ManageOrganizationMembersOutput"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_organization_members"
      },
      "scopes": [
        "orgMember:read",
        "orgMember:update",
        "orgMember:remove",
        "workspaceMember:read",
        "workspaceMember:update",
        "workspaceMember:remove"
      ],
      "bundles": [
        "organization_administration"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationAccess.listMembers",
        "organizationAccess.listWorkspaceMembers",
        "organizationAccess.updateMemberGrants",
        "organizationAccess.removeMember",
        "organizationAccess.removeWorkspaceMember"
      ],
      "invocations": [
        {
          "operationId": "organizationAccess.listMembers",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/members",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationAccess.listWorkspaceMembers",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/workspaces/:workspaceId/members",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationAccess.updateMemberGrants",
          "method": "PUT",
          "path": "/v1/organizations/:organizationId/members/:userId/grants",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationAccess.removeMember",
          "method": "DELETE",
          "path": "/v1/organizations/:organizationId/members/:userId",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationAccess.removeWorkspaceMember",
          "method": "DELETE",
          "path": "/v1/organizations/:organizationId/workspaces/:workspaceId/members/:userId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "listWorkspace"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "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"
              }
            },
            "required": [
              "action",
              "organizationId",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "workspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "updateGrants"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "organization": {
                "type": "object",
                "properties": {
                  "roles": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/RoleId"
                    },
                    "maxItems": 32
                  },
                  "direct": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "audit:read",
                        "billing:manage",
                        "billing:read",
                        "org:delete",
                        "orgAnalytics:read",
                        "orgAnalytics:manage",
                        "org:read",
                        "org:update",
                        "orgApiKey:manage",
                        "orgMember:invite",
                        "orgMember:read",
                        "orgMember:remove",
                        "orgMember:update",
                        "role:manage",
                        "role:read",
                        "usage:read",
                        "workspace:create",
                        "workspace:delete",
                        "workspace:transfer"
                      ]
                    },
                    "maxItems": 128
                  }
                },
                "required": [
                  "roles",
                  "direct"
                ],
                "patternProperties": {
                  "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "roles",
                    "direct"
                  ]
                }
              },
              "allWorkspaces": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "roles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/RoleId"
                        },
                        "maxItems": 32
                      },
                      "direct": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "analytics:export",
                            "analytics:read",
                            "apiKey:create",
                            "apiKey:delete",
                            "apiKey:read",
                            "apiKey:update",
                            "blocklist:create",
                            "blocklist:delete",
                            "blocklist:read",
                            "campaign:archive",
                            "campaign:create",
                            "campaign:delete",
                            "campaign:launch",
                            "campaign:pause",
                            "campaign:read",
                            "campaign:update",
                            "dialer:assign_numbers",
                            "dialer:assign_seats",
                            "dialer:create",
                            "dialer:delete",
                            "dialer:dial",
                            "dialer:manage_billing",
                            "dialer:manage_number_health",
                            "dialer:manage_numbers",
                            "dialer:manage_numbers_self",
                            "dialer:manage_voicemails",
                            "dialer:read",
                            "dialer:read_analytics",
                            "dialer:read_numbers_all",
                            "dialer:release_numbers",
                            "dialer:update",
                            "domain:manage_dns",
                            "domain:purchase",
                            "domain:read",
                            "domain:transfer",
                            "emailVerification:manage_credits",
                            "emailVerification:manage_keys",
                            "emailVerification:manage_sharing",
                            "emailVerification:read",
                            "emailVerification:verify",
                            "inbox:connect",
                            "inbox:create",
                            "inbox:delete",
                            "inbox:read",
                            "inbox:update",
                            "inbox:warmup_manage",
                            "integration:create",
                            "integration:delete",
                            "integration:read",
                            "integration:update",
                            "lead:create",
                            "lead:delete",
                            "lead:export",
                            "lead:import",
                            "lead:read",
                            "lead:update",
                            "leadList:create",
                            "leadList:delete",
                            "leadList:read",
                            "leadList:update",
                            "phoneVerification:manage_keys",
                            "phoneVerification:read",
                            "phoneVerification:verify",
                            "replyLabel:create",
                            "replyLabel:delete",
                            "replyLabel:read",
                            "replyLabel:update",
                            "sequence:create",
                            "sequence:delete",
                            "sequence:read",
                            "sequence:update",
                            "sql:manage_dashboards",
                            "sql:query",
                            "support:create",
                            "support:read",
                            "support:update",
                            "tag:create",
                            "tag:delete",
                            "tag:read",
                            "tag:update",
                            "task:create",
                            "task:delete",
                            "task:read",
                            "task:update",
                            "template:create",
                            "template:delete",
                            "template:read",
                            "template:update",
                            "unibox:archive",
                            "unibox:label",
                            "unibox:read",
                            "unibox:reply",
                            "webhook:create",
                            "webhook:delete",
                            "webhook:read",
                            "webhook:update",
                            "whiteLabel:read",
                            "whiteLabel:update",
                            "workflow:create",
                            "workflow:delete",
                            "workflow:publish",
                            "workflow:read",
                            "workflow:run",
                            "workflow:update",
                            "workspace:read",
                            "workspace:update",
                            "workspaceMember:invite",
                            "workspaceMember:read",
                            "workspaceMember:remove",
                            "workspaceMember:update"
                          ]
                        },
                        "maxItems": 512
                      }
                    },
                    "required": [
                      "roles",
                      "direct"
                    ],
                    "patternProperties": {
                      "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "roles",
                        "direct"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "workspaces": {
                "type": "array",
                "items": {
                  "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"
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/$defs/RoleId"
                      },
                      "maxItems": 32
                    },
                    "direct": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "analytics:export",
                          "analytics:read",
                          "apiKey:create",
                          "apiKey:delete",
                          "apiKey:read",
                          "apiKey:update",
                          "blocklist:create",
                          "blocklist:delete",
                          "blocklist:read",
                          "campaign:archive",
                          "campaign:create",
                          "campaign:delete",
                          "campaign:launch",
                          "campaign:pause",
                          "campaign:read",
                          "campaign:update",
                          "dialer:assign_numbers",
                          "dialer:assign_seats",
                          "dialer:create",
                          "dialer:delete",
                          "dialer:dial",
                          "dialer:manage_billing",
                          "dialer:manage_number_health",
                          "dialer:manage_numbers",
                          "dialer:manage_numbers_self",
                          "dialer:manage_voicemails",
                          "dialer:read",
                          "dialer:read_analytics",
                          "dialer:read_numbers_all",
                          "dialer:release_numbers",
                          "dialer:update",
                          "domain:manage_dns",
                          "domain:purchase",
                          "domain:read",
                          "domain:transfer",
                          "emailVerification:manage_credits",
                          "emailVerification:manage_keys",
                          "emailVerification:manage_sharing",
                          "emailVerification:read",
                          "emailVerification:verify",
                          "inbox:connect",
                          "inbox:create",
                          "inbox:delete",
                          "inbox:read",
                          "inbox:update",
                          "inbox:warmup_manage",
                          "integration:create",
                          "integration:delete",
                          "integration:read",
                          "integration:update",
                          "lead:create",
                          "lead:delete",
                          "lead:export",
                          "lead:import",
                          "lead:read",
                          "lead:update",
                          "leadList:create",
                          "leadList:delete",
                          "leadList:read",
                          "leadList:update",
                          "phoneVerification:manage_keys",
                          "phoneVerification:read",
                          "phoneVerification:verify",
                          "replyLabel:create",
                          "replyLabel:delete",
                          "replyLabel:read",
                          "replyLabel:update",
                          "sequence:create",
                          "sequence:delete",
                          "sequence:read",
                          "sequence:update",
                          "sql:manage_dashboards",
                          "sql:query",
                          "support:create",
                          "support:read",
                          "support:update",
                          "tag:create",
                          "tag:delete",
                          "tag:read",
                          "tag:update",
                          "task:create",
                          "task:delete",
                          "task:read",
                          "task:update",
                          "template:create",
                          "template:delete",
                          "template:read",
                          "template:update",
                          "unibox:archive",
                          "unibox:label",
                          "unibox:read",
                          "unibox:reply",
                          "webhook:create",
                          "webhook:delete",
                          "webhook:read",
                          "webhook:update",
                          "whiteLabel:read",
                          "whiteLabel:update",
                          "workflow:create",
                          "workflow:delete",
                          "workflow:publish",
                          "workflow:read",
                          "workflow:run",
                          "workflow:update",
                          "workspace:read",
                          "workspace:update",
                          "workspaceMember:invite",
                          "workspaceMember:read",
                          "workspaceMember:remove",
                          "workspaceMember:update"
                        ]
                      },
                      "maxItems": 512
                    }
                  },
                  "required": [
                    "workspaceId",
                    "roles",
                    "direct"
                  ],
                  "patternProperties": {
                    "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "workspaceId",
                      "roles",
                      "direct"
                    ]
                  }
                },
                "maxItems": 500
              }
            },
            "required": [
              "action",
              "organizationId",
              "userId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|userId|organization|allWorkspaces|workspaces)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "userId",
                "organization",
                "allWorkspaces",
                "workspaces"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "remove"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId",
              "userId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|userId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "userId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "removeFromWorkspace"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "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"
              },
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId",
              "workspaceId",
              "userId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|workspaceId|userId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "workspaceId",
                "userId"
              ]
            }
          }
        ],
        "$defs": {
          "RoleId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ManageOrganizationMembersInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "list"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "listWorkspace"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "updateGrants"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "organization": {
                    "type": "object",
                    "properties": {
                      "roles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/RoleId"
                        },
                        "maxItems": 32
                      },
                      "direct": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "audit:read",
                            "billing:manage",
                            "billing:read",
                            "org:delete",
                            "orgAnalytics:read",
                            "orgAnalytics:manage",
                            "org:read",
                            "org:update",
                            "orgApiKey:manage",
                            "orgMember:invite",
                            "orgMember:read",
                            "orgMember:remove",
                            "orgMember:update",
                            "role:manage",
                            "role:read",
                            "usage:read",
                            "workspace:create",
                            "workspace:delete",
                            "workspace:transfer"
                          ]
                        },
                        "maxItems": 128
                      }
                    },
                    "required": [
                      "roles",
                      "direct"
                    ],
                    "patternProperties": {
                      "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "roles",
                        "direct"
                      ]
                    }
                  },
                  "allWorkspaces": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/RoleId"
                            },
                            "maxItems": 32
                          },
                          "direct": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "analytics:export",
                                "analytics:read",
                                "apiKey:create",
                                "apiKey:delete",
                                "apiKey:read",
                                "apiKey:update",
                                "blocklist:create",
                                "blocklist:delete",
                                "blocklist:read",
                                "campaign:archive",
                                "campaign:create",
                                "campaign:delete",
                                "campaign:launch",
                                "campaign:pause",
                                "campaign:read",
                                "campaign:update",
                                "dialer:assign_numbers",
                                "dialer:assign_seats",
                                "dialer:create",
                                "dialer:delete",
                                "dialer:dial",
                                "dialer:manage_billing",
                                "dialer:manage_number_health",
                                "dialer:manage_numbers",
                                "dialer:manage_numbers_self",
                                "dialer:manage_voicemails",
                                "dialer:read",
                                "dialer:read_analytics",
                                "dialer:read_numbers_all",
                                "dialer:release_numbers",
                                "dialer:update",
                                "domain:manage_dns",
                                "domain:purchase",
                                "domain:read",
                                "domain:transfer",
                                "emailVerification:manage_credits",
                                "emailVerification:manage_keys",
                                "emailVerification:manage_sharing",
                                "emailVerification:read",
                                "emailVerification:verify",
                                "inbox:connect",
                                "inbox:create",
                                "inbox:delete",
                                "inbox:read",
                                "inbox:update",
                                "inbox:warmup_manage",
                                "integration:create",
                                "integration:delete",
                                "integration:read",
                                "integration:update",
                                "lead:create",
                                "lead:delete",
                                "lead:export",
                                "lead:import",
                                "lead:read",
                                "lead:update",
                                "leadList:create",
                                "leadList:delete",
                                "leadList:read",
                                "leadList:update",
                                "phoneVerification:manage_keys",
                                "phoneVerification:read",
                                "phoneVerification:verify",
                                "replyLabel:create",
                                "replyLabel:delete",
                                "replyLabel:read",
                                "replyLabel:update",
                                "sequence:create",
                                "sequence:delete",
                                "sequence:read",
                                "sequence:update",
                                "sql:manage_dashboards",
                                "sql:query",
                                "support:create",
                                "support:read",
                                "support:update",
                                "tag:create",
                                "tag:delete",
                                "tag:read",
                                "tag:update",
                                "task:create",
                                "task:delete",
                                "task:read",
                                "task:update",
                                "template:create",
                                "template:delete",
                                "template:read",
                                "template:update",
                                "unibox:archive",
                                "unibox:label",
                                "unibox:read",
                                "unibox:reply",
                                "webhook:create",
                                "webhook:delete",
                                "webhook:read",
                                "webhook:update",
                                "whiteLabel:read",
                                "whiteLabel:update",
                                "workflow:create",
                                "workflow:delete",
                                "workflow:publish",
                                "workflow:read",
                                "workflow:run",
                                "workflow:update",
                                "workspace:read",
                                "workspace:update",
                                "workspaceMember:invite",
                                "workspaceMember:read",
                                "workspaceMember:remove",
                                "workspaceMember:update"
                              ]
                            },
                            "maxItems": 512
                          }
                        },
                        "required": [
                          "roles",
                          "direct"
                        ],
                        "patternProperties": {
                          "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "roles",
                            "direct"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "workspaces": {
                    "type": "array",
                    "items": {
                      "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"
                        },
                        "roles": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/RoleId"
                          },
                          "maxItems": 32
                        },
                        "direct": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "analytics:export",
                              "analytics:read",
                              "apiKey:create",
                              "apiKey:delete",
                              "apiKey:read",
                              "apiKey:update",
                              "blocklist:create",
                              "blocklist:delete",
                              "blocklist:read",
                              "campaign:archive",
                              "campaign:create",
                              "campaign:delete",
                              "campaign:launch",
                              "campaign:pause",
                              "campaign:read",
                              "campaign:update",
                              "dialer:assign_numbers",
                              "dialer:assign_seats",
                              "dialer:create",
                              "dialer:delete",
                              "dialer:dial",
                              "dialer:manage_billing",
                              "dialer:manage_number_health",
                              "dialer:manage_numbers",
                              "dialer:manage_numbers_self",
                              "dialer:manage_voicemails",
                              "dialer:read",
                              "dialer:read_analytics",
                              "dialer:read_numbers_all",
                              "dialer:release_numbers",
                              "dialer:update",
                              "domain:manage_dns",
                              "domain:purchase",
                              "domain:read",
                              "domain:transfer",
                              "emailVerification:manage_credits",
                              "emailVerification:manage_keys",
                              "emailVerification:manage_sharing",
                              "emailVerification:read",
                              "emailVerification:verify",
                              "inbox:connect",
                              "inbox:create",
                              "inbox:delete",
                              "inbox:read",
                              "inbox:update",
                              "inbox:warmup_manage",
                              "integration:create",
                              "integration:delete",
                              "integration:read",
                              "integration:update",
                              "lead:create",
                              "lead:delete",
                              "lead:export",
                              "lead:import",
                              "lead:read",
                              "lead:update",
                              "leadList:create",
                              "leadList:delete",
                              "leadList:read",
                              "leadList:update",
                              "phoneVerification:manage_keys",
                              "phoneVerification:read",
                              "phoneVerification:verify",
                              "replyLabel:create",
                              "replyLabel:delete",
                              "replyLabel:read",
                              "replyLabel:update",
                              "sequence:create",
                              "sequence:delete",
                              "sequence:read",
                              "sequence:update",
                              "sql:manage_dashboards",
                              "sql:query",
                              "support:create",
                              "support:read",
                              "support:update",
                              "tag:create",
                              "tag:delete",
                              "tag:read",
                              "tag:update",
                              "task:create",
                              "task:delete",
                              "task:read",
                              "task:update",
                              "template:create",
                              "template:delete",
                              "template:read",
                              "template:update",
                              "unibox:archive",
                              "unibox:label",
                              "unibox:read",
                              "unibox:reply",
                              "webhook:create",
                              "webhook:delete",
                              "webhook:read",
                              "webhook:update",
                              "whiteLabel:read",
                              "whiteLabel:update",
                              "workflow:create",
                              "workflow:delete",
                              "workflow:publish",
                              "workflow:read",
                              "workflow:run",
                              "workflow:update",
                              "workspace:read",
                              "workspace:update",
                              "workspaceMember:invite",
                              "workspaceMember:read",
                              "workspaceMember:remove",
                              "workspaceMember:update"
                            ]
                          },
                          "maxItems": 512
                        }
                      },
                      "required": [
                        "workspaceId",
                        "roles",
                        "direct"
                      ],
                      "patternProperties": {
                        "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "workspaceId",
                          "roles",
                          "direct"
                        ]
                      }
                    },
                    "maxItems": 500
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "userId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|userId|organization|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "userId",
                    "organization",
                    "allWorkspaces",
                    "workspaces"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "remove"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "userId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|userId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "userId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "removeFromWorkspace"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "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"
                  },
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "workspaceId",
                  "userId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|workspaceId|userId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "workspaceId",
                    "userId"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "manage_organization_roles",
      "description": "List, create, update, or delete an Organization's custom roles (Organization or Workspace scope).\n\nUse to define reusable permission sets; preview dependents before deleting an assigned role.\n\nSystem roles are immutable; a role can only contain permissions the user holds.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                "$ref": "#/$defs/ShortText"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "organization",
                  "workspace"
                ]
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 512
              }
            },
            "required": [
              "action",
              "organizationId",
              "name",
              "scope",
              "permissions"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|name|scope|permissions)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "name",
                "scope",
                "permissions"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "roleId": {
                "$ref": "#/$defs/OpaqueId"
              },
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 512
              }
            },
            "required": [
              "action",
              "organizationId",
              "roleId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|roleId|name|permissions)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "roleId",
                "name",
                "permissions"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "dependents"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "roleId": {
                "$ref": "#/$defs/OpaqueId"
              }
            },
            "required": [
              "action",
              "organizationId",
              "roleId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|roleId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "roleId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "roleId": {
                "$ref": "#/$defs/OpaqueId"
              }
            },
            "required": [
              "action",
              "organizationId",
              "roleId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|roleId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "roleId"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ManageOrganizationRolesInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "list"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "create"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "organization",
                      "workspace"
                    ]
                  },
                  "permissions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 512
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "name",
                  "scope",
                  "permissions"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|name|scope|permissions)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "name",
                    "scope",
                    "permissions"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "update"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "roleId": {
                    "$ref": "#/$defs/OpaqueId"
                  },
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "permissions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 512
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "roleId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|roleId|name|permissions)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "roleId",
                    "name",
                    "permissions"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "dependents"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "roleId": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "roleId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|roleId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "roleId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "delete"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "roleId": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "roleId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|roleId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "roleId"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "RoleId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "ManageOrganizationRolesOutput": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/$defs/RoleId"
                    },
                    "name": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "scope": {
                      "type": "string",
                      "enum": [
                        "organization",
                        "workspace"
                      ]
                    },
                    "permissions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "system": {
                      "type": "boolean"
                    },
                    "assignedCount": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "scope",
                    "permissions",
                    "system",
                    "assignedCount"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|name|scope|permissions|system|assignedCount)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "name",
                      "scope",
                      "permissions",
                      "system",
                      "assignedCount"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/$defs/RoleId"
                  },
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "organization",
                      "workspace"
                    ]
                  },
                  "permissions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "system": {
                    "type": "boolean"
                  },
                  "assignedCount": {
                    "type": "integer"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "scope",
                  "permissions",
                  "system",
                  "assignedCount"
                ],
                "patternProperties": {
                  "^(?!(?:id|name|scope|permissions|system|assignedCount)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name",
                    "scope",
                    "permissions",
                    "system",
                    "assignedCount"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "roleId": {
                    "$ref": "#/$defs/RoleId"
                  },
                  "members": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "userId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                        },
                        "email": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "userId",
                        "name",
                        "email"
                      ],
                      "patternProperties": {
                        "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "userId",
                          "name",
                          "email"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "roleId",
                  "members"
                ],
                "patternProperties": {
                  "^(?!(?:roleId|members)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "roleId",
                    "members"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "deleted": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    ]
                  },
                  "affectedUserIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    }
                  }
                },
                "required": [
                  "deleted",
                  "affectedUserIds"
                ],
                "patternProperties": {
                  "^(?!(?:deleted|affectedUserIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "deleted",
                    "affectedUserIds"
                  ]
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/ManageOrganizationRolesOutput"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/ManageOrganizationRolesOutput"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_organization_roles"
      },
      "scopes": [
        "role:read",
        "role:manage"
      ],
      "bundles": [
        "organization_administration"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationRoles.list",
        "organizationRoles.create",
        "organizationRoles.update",
        "organizationRoles.dependents",
        "organizationRoles.delete"
      ],
      "invocations": [
        {
          "operationId": "organizationRoles.list",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/roles",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationRoles.create",
          "method": "POST",
          "path": "/v1/organizations/:organizationId/roles",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationRoles.update",
          "method": "PATCH",
          "path": "/v1/organizations/:organizationId/roles/:roleId",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationRoles.dependents",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/roles/:roleId/dependents",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationRoles.delete",
          "method": "DELETE",
          "path": "/v1/organizations/:organizationId/roles/:roleId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                "$ref": "#/$defs/ShortText"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "organization",
                  "workspace"
                ]
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 512
              }
            },
            "required": [
              "action",
              "organizationId",
              "name",
              "scope",
              "permissions"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|name|scope|permissions)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "name",
                "scope",
                "permissions"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "roleId": {
                "$ref": "#/$defs/OpaqueId"
              },
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 512
              }
            },
            "required": [
              "action",
              "organizationId",
              "roleId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|roleId|name|permissions)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "roleId",
                "name",
                "permissions"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "dependents"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "roleId": {
                "$ref": "#/$defs/OpaqueId"
              }
            },
            "required": [
              "action",
              "organizationId",
              "roleId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|roleId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "roleId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "roleId": {
                "$ref": "#/$defs/OpaqueId"
              }
            },
            "required": [
              "action",
              "organizationId",
              "roleId"
            ],
            "patternProperties": {
              "^(?!(?:action|organizationId|roleId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "organizationId",
                "roleId"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ManageOrganizationRolesInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "list"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "action",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "create"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "organization",
                      "workspace"
                    ]
                  },
                  "permissions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 512
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "name",
                  "scope",
                  "permissions"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|name|scope|permissions)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "name",
                    "scope",
                    "permissions"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "update"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "roleId": {
                    "$ref": "#/$defs/OpaqueId"
                  },
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "permissions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 512
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "roleId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|roleId|name|permissions)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "roleId",
                    "name",
                    "permissions"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "dependents"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "roleId": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "roleId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|roleId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "roleId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "delete"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "roleId": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "action",
                  "organizationId",
                  "roleId"
                ],
                "patternProperties": {
                  "^(?!(?:action|organizationId|roleId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "organizationId",
                    "roleId"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "manage_own_profile",
      "description": "Update the caller's own profile (name, image, onboarding flag) with a best-effort remote mirror.\n\nUse to change the signed-in member's own display fields.\n\nCannot change another member's profile or any workspace resource.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/$defs/ShortText"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "type": "null"
              }
            ]
          },
          "hasCompletedOnboarding": {
            "type": "boolean"
          }
        },
        "patternProperties": {
          "^(?!(?:name|image|hasCompletedOnboarding)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "name",
            "image",
            "hasCompletedOnboarding"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      },
      "outputSchema": {
        "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": {
            "anyOf": [
              {
                "$ref": "#/$defs/LeadStoredText"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "$ref": "#/$defs/EmailAddress"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "type": "null"
              }
            ]
          },
          "hasCompletedOnboarding": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "image",
          "hasCompletedOnboarding"
        ],
        "patternProperties": {
          "^(?!(?:id|name|email|image|hasCompletedOnboarding)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "name",
            "email",
            "image",
            "hasCompletedOnboarding"
          ]
        },
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_own_profile"
      },
      "scopes": [
        "workspace:update"
      ],
      "bundles": [
        "account_basics"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "me.updateProfile"
      ],
      "invocations": [
        {
          "operationId": "me.updateProfile",
          "method": "PATCH",
          "path": "/v1/me/profile",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/$defs/ShortText"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "type": "null"
              }
            ]
          },
          "hasCompletedOnboarding": {
            "type": "boolean"
          }
        },
        "patternProperties": {
          "^(?!(?:name|image|hasCompletedOnboarding)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "name",
            "image",
            "hasCompletedOnboarding"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "manage_recording_consent_policy",
      "description": "Read and change whether the workspace records calls, which consent rule applies, and what disclosure is spoken to the other party.\n\nUse to report the current policy, or to apply a change a person has explicitly asked for — for example turning on jurisdiction-aware consent and supplying the script it will read aloud.\n\nThis decides what every future call is legally allowed to do. Turning recording on where consent is not established, or turning the disclosure off, can make the workspace's calls unlawful in some jurisdictions. It is not a preference; never change it to unblock another task.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": [
              "read",
              "update"
            ]
          },
          "update": {
            "type": "object",
            "properties": {
              "recordingEnabled": {
                "type": "boolean"
              },
              "consentMode": {
                "type": "string",
                "enum": [
                  "always_all_party",
                  "jurisdiction_aware",
                  "always_one_party"
                ]
              },
              "allPartyConsentDefault": {
                "type": "boolean"
              },
              "unknownJurisdictionDefault": {
                "type": "string",
                "enum": [
                  "all_party",
                  "one_party"
                ]
              },
              "disclosureScript": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Description"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:recordingEnabled|consentMode|allPartyConsentDefault|unknownJurisdictionDefault|disclosureScript)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "recordingEnabled",
                "consentMode",
                "allPartyConsentDefault",
                "unknownJurisdictionDefault",
                "disclosureScript"
              ]
            },
            "minProperties": 1,
            "maxProperties": 5
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|update)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "update"
          ]
        },
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "recordingEnabled": {
            "type": "boolean"
          },
          "consentMode": {
            "type": "string",
            "enum": [
              "always_all_party",
              "jurisdiction_aware",
              "always_one_party"
            ]
          },
          "allPartyConsentDefault": {
            "type": "boolean"
          },
          "unknownJurisdictionDefault": {
            "type": "string",
            "enum": [
              "all_party",
              "one_party"
            ]
          },
          "disclosureScript": {
            "anyOf": [
              {
                "$ref": "#/$defs/Description"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "recordingEnabled",
          "consentMode",
          "allPartyConsentDefault",
          "unknownJurisdictionDefault",
          "disclosureScript",
          "updatedAt"
        ],
        "patternProperties": {
          "^(?!(?:recordingEnabled|consentMode|allPartyConsentDefault|unknownJurisdictionDefault|disclosureScript|updatedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "recordingEnabled",
            "consentMode",
            "allPartyConsentDefault",
            "unknownJurisdictionDefault",
            "disclosureScript",
            "updatedAt"
          ]
        },
        "$defs": {
          "Description": {
            "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_recording_consent_policy"
      },
      "scopes": [
        "dialer:read",
        "dialer:manage_numbers"
      ],
      "bundles": [
        "dialer_media_operations"
      ],
      "risk": "security_admin",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerRecordingSettings.get",
        "dialerRecordingSettings.update"
      ],
      "invocations": [
        {
          "operationId": "dialerRecordingSettings.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/recording-settings",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerRecordingSettings.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/dialer/recording-settings",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": [
              "read",
              "update"
            ]
          },
          "update": {
            "type": "object",
            "properties": {
              "recordingEnabled": {
                "type": "boolean"
              },
              "consentMode": {
                "type": "string",
                "enum": [
                  "always_all_party",
                  "jurisdiction_aware",
                  "always_one_party"
                ]
              },
              "allPartyConsentDefault": {
                "type": "boolean"
              },
              "unknownJurisdictionDefault": {
                "type": "string",
                "enum": [
                  "all_party",
                  "one_party"
                ]
              },
              "disclosureScript": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Description"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:recordingEnabled|consentMode|allPartyConsentDefault|unknownJurisdictionDefault|disclosureScript)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "recordingEnabled",
                "consentMode",
                "allPartyConsentDefault",
                "unknownJurisdictionDefault",
                "disclosureScript"
              ]
            },
            "minProperties": 1,
            "maxProperties": 5
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|update)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "update"
          ]
        },
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "manage_reply_labels",
      "description": "List workspace reply labels and built-in defaults, or create, update, and delete custom reply labels.\n\nUse to manage the labels that classify inbound replies for a workspace.\n\nBuilt-in labels are read-only through listDefaults; custom label names must stay unique and carry a valid sentiment.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|search|cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "search",
                "cursor",
                "limit"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list_defaults"
                    ]
                  }
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "hexColor": {
                    "$ref": "#/$defs/HexColor"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "sentiment": {
                    "type": "string",
                    "enum": [
                      "positive",
                      "negative",
                      "neutral"
                    ]
                  },
                  "aiLabelDetection": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "hexColor"
                ],
                "patternProperties": {
                  "^(?!(?:name|hexColor|description|sentiment|aiLabelDetection)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "hexColor",
                    "description",
                    "sentiment",
                    "aiLabelDetection"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|input)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "input"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "labelId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "hexColor": {
                    "$ref": "#/$defs/HexColor"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sentiment": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "positive",
                          "negative",
                          "neutral"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "aiLabelDetection": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|hexColor|description|sentiment|aiLabelDetection)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "hexColor",
                    "description",
                    "sentiment",
                    "aiLabelDetection"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 5
              }
            },
            "required": [
              "workspaceId",
              "action",
              "labelId",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|labelId|input)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "labelId",
                "input"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "labelId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "required": [
              "workspaceId",
              "action",
              "labelId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|labelId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "labelId"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "HexColor": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{6}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "HexColor": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{6}$"
          },
          "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",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "hexColor": {
                              "$ref": "#/$defs/HexColor"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sentiment": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "positive",
                                    "negative",
                                    "neutral"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "aiLabelDetection": {
                              "type": "boolean"
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "hexColor",
                            "description",
                            "sentiment",
                            "aiLabelDetection",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|hexColor|description|sentiment|aiLabelDetection|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "hexColor",
                              "description",
                              "sentiment",
                              "aiLabelDetection",
                              "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"
                            },
                            "name": {
                              "type": "string",
                              "enum": [
                                "Interested",
                                "Not Interested",
                                "Automatic Reply",
                                "Out of Office",
                                "Wrong Person",
                                "Meeting Booked",
                                "Meeting Completed"
                              ]
                            },
                            "hexColor": {
                              "$ref": "#/$defs/HexColor"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sentiment": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "positive",
                                    "negative",
                                    "neutral"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "aiLabelDetection": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "hexColor",
                            "description",
                            "sentiment",
                            "aiLabelDetection"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|hexColor|description|sentiment|aiLabelDetection)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "hexColor",
                              "description",
                              "sentiment",
                              "aiLabelDetection"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "hexColor": {
                        "$ref": "#/$defs/HexColor"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 500
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sentiment": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "positive",
                              "negative",
                              "neutral"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "aiLabelDetection": {
                        "type": "boolean"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "hexColor",
                      "description",
                      "sentiment",
                      "aiLabelDetection",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|hexColor|description|sentiment|aiLabelDetection|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "hexColor",
                        "description",
                        "sentiment",
                        "aiLabelDetection",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "deleted": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "deleted"
                    ],
                    "patternProperties": {
                      "^(?!(?:deleted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "deleted"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "hexColor": {
                                  "$ref": "#/$defs/HexColor"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sentiment": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "positive",
                                        "negative",
                                        "neutral"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "aiLabelDetection": {
                                  "type": "boolean"
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "hexColor",
                                "description",
                                "sentiment",
                                "aiLabelDetection",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|hexColor|description|sentiment|aiLabelDetection|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "hexColor",
                                  "description",
                                  "sentiment",
                                  "aiLabelDetection",
                                  "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"
                                },
                                "name": {
                                  "type": "string",
                                  "enum": [
                                    "Interested",
                                    "Not Interested",
                                    "Automatic Reply",
                                    "Out of Office",
                                    "Wrong Person",
                                    "Meeting Booked",
                                    "Meeting Completed"
                                  ]
                                },
                                "hexColor": {
                                  "$ref": "#/$defs/HexColor"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sentiment": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "positive",
                                        "negative",
                                        "neutral"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "aiLabelDetection": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "hexColor",
                                "description",
                                "sentiment",
                                "aiLabelDetection"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|hexColor|description|sentiment|aiLabelDetection)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "hexColor",
                                  "description",
                                  "sentiment",
                                  "aiLabelDetection"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "hexColor": {
                            "$ref": "#/$defs/HexColor"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 500
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sentiment": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "positive",
                                  "negative",
                                  "neutral"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "aiLabelDetection": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "hexColor",
                          "description",
                          "sentiment",
                          "aiLabelDetection",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|hexColor|description|sentiment|aiLabelDetection|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "hexColor",
                            "description",
                            "sentiment",
                            "aiLabelDetection",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "deleted": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "deleted"
                        ],
                        "patternProperties": {
                          "^(?!(?:deleted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "deleted"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_reply_labels"
      },
      "scopes": [
        "replyLabel:read",
        "replyLabel:create",
        "replyLabel:update",
        "replyLabel:delete"
      ],
      "bundles": [
        "workspace_settings"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "replyLabels.list",
        "replyLabels.listDefaults",
        "replyLabels.create",
        "replyLabels.update",
        "replyLabels.delete"
      ],
      "invocations": [
        {
          "operationId": "replyLabels.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/settings/reply-labels",
          "workspaceScoped": false
        },
        {
          "operationId": "replyLabels.listDefaults",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/settings/reply-labels/defaults",
          "workspaceScoped": false
        },
        {
          "operationId": "replyLabels.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/settings/reply-labels",
          "workspaceScoped": false
        },
        {
          "operationId": "replyLabels.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/settings/reply-labels/:labelId",
          "workspaceScoped": false
        },
        {
          "operationId": "replyLabels.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/settings/reply-labels/:labelId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|search|cursor|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "search",
                    "cursor",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list_defaults"
                    ]
                  }
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "hexColor": {
                    "$ref": "#/$defs/HexColor"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "sentiment": {
                    "type": "string",
                    "enum": [
                      "positive",
                      "negative",
                      "neutral"
                    ]
                  },
                  "aiLabelDetection": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "hexColor"
                ],
                "patternProperties": {
                  "^(?!(?:name|hexColor|description|sentiment|aiLabelDetection)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "hexColor",
                    "description",
                    "sentiment",
                    "aiLabelDetection"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|input)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "input"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "labelId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "input": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "hexColor": {
                    "$ref": "#/$defs/HexColor"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sentiment": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "positive",
                          "negative",
                          "neutral"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "aiLabelDetection": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|hexColor|description|sentiment|aiLabelDetection)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "hexColor",
                    "description",
                    "sentiment",
                    "aiLabelDetection"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 5
              }
            },
            "required": [
              "workspaceId",
              "action",
              "labelId",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|labelId|input)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "labelId",
                    "input"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "labelId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "required": [
              "workspaceId",
              "action",
              "labelId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|labelId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "labelId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "HexColor": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{6}$"
          }
        }
      }
    },
    {
      "feature": "content-support",
      "name": "manage_sequence_templates",
      "description": "Create, update, or delete a workspace-owned sequence template; the action field selects the mutation.\n\nUse to author or revise the workspace's reusable sequence library after read_sequence_templates shows the current shape.\n\nSystem templates are immutable and foreign templates reject writes; deletes and updates require explicit confirmation.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": [
              "create",
              "update",
              "delete"
            ]
          },
          "templateId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "input": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/TemplateName"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/TemplateDescription"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "category": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/TemplateCategory"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/TemplateStep"
                    },
                    "maxItems": 50
                  }
                },
                "required": [
                  "name",
                  "steps"
                ],
                "patternProperties": {
                  "^(?!(?:name|description|category|steps)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "description",
                    "category",
                    "steps"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/TemplateName"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/TemplateDescription"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "category": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/TemplateCategory"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/TemplateStep"
                    },
                    "maxItems": 50
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|description|category|steps)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "description",
                    "category",
                    "steps"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 4
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|templateId|input)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "templateId",
            "input"
          ]
        },
        "$defs": {
          "TemplateName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "TemplateDescription": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "TemplateCategory": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Arrays_"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "Arrays_": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Union_"
            }
          },
          "EditorStateJson": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Arrays_"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "TemplateStep": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "email_content"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "variants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "variantOrder": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "subject": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/EditorStateJson"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "body": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/EditorStateJson"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "variantOrder",
                        "subject",
                        "body"
                      ],
                      "patternProperties": {
                        "^(?!(?:variantOrder|subject|body)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "variantOrder",
                          "subject",
                          "body"
                        ]
                      }
                    },
                    "minItems": 1
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "variants"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|variants)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "variants"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "manual_review"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "notificationMessage": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "notificationMessage"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|notificationMessage)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "notificationMessage"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "linked_in_connection_request"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "connectionNote": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "connectionNote"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|connectionNote)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "connectionNote"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "linked_in_in_mail"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "subject": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "subject",
                  "body"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|subject|body)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "subject",
                    "body"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "phone_call"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "script": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "script"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|script)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "script"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "text_message"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "message": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mediaUrl": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "message"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|message|mediaUrl)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "message",
                    "mediaUrl"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "http_post_request"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "headers": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": true
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyTemplate": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "url",
                  "headers",
                  "bodyTemplate"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "url",
                    "headers",
                    "bodyTemplate"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "heyreach_campaign"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "connectionId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "campaignId": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "campaignName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "linkedInAccountId": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "campaignId"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "connectionId",
                    "campaignId",
                    "campaignName",
                    "linkedInAccountId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "attio_task"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "assigneeMemberIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "onMissingAssignee": {
                    "type": "string",
                    "enum": [
                      "skip",
                      "fail"
                    ]
                  },
                  "deadlineOffsetDays": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "personLink": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "sourceVariable": {
                        "type": "string"
                      },
                      "matchBy": {
                        "type": "string",
                        "enum": [
                          "email",
                          "domain",
                          "record_id"
                        ]
                      },
                      "createIfMissing": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "enabled",
                      "sourceVariable",
                      "matchBy",
                      "createIfMissing"
                    ],
                    "patternProperties": {
                      "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "sourceVariable",
                        "matchBy",
                        "createIfMissing"
                      ]
                    }
                  },
                  "companyLink": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "sourceVariable": {
                        "type": "string"
                      },
                      "matchBy": {
                        "type": "string",
                        "enum": [
                          "email",
                          "domain",
                          "record_id"
                        ]
                      },
                      "createIfMissing": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "enabled",
                      "sourceVariable",
                      "matchBy",
                      "createIfMissing"
                    ],
                    "patternProperties": {
                      "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "sourceVariable",
                        "matchBy",
                        "createIfMissing"
                      ]
                    }
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "content",
                  "assigneeMemberIds",
                  "onMissingAssignee",
                  "deadlineOffsetDays",
                  "personLink",
                  "companyLink"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "content",
                    "assigneeMemberIds",
                    "onMissingAssignee",
                    "deadlineOffsetDays",
                    "personLink",
                    "companyLink"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "TemplateName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "TemplateDescription": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "TemplateCategory": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Arrays_"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "Arrays_": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Union_"
            }
          },
          "EditorStateJson": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Arrays_"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "TemplateStep": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "email_content"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "variants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "variantOrder": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "subject": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/EditorStateJson"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "body": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/EditorStateJson"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "variantOrder",
                        "subject",
                        "body"
                      ],
                      "patternProperties": {
                        "^(?!(?:variantOrder|subject|body)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "variantOrder",
                          "subject",
                          "body"
                        ]
                      }
                    },
                    "minItems": 1
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "variants"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|variants)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "variants"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "manual_review"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "notificationMessage": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "notificationMessage"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|notificationMessage)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "notificationMessage"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "linked_in_connection_request"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "connectionNote": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "connectionNote"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|connectionNote)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "connectionNote"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "linked_in_in_mail"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "subject": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "subject",
                  "body"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|subject|body)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "subject",
                    "body"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "phone_call"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "script": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "script"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|script)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "script"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "text_message"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "message": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mediaUrl": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "message"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|message|mediaUrl)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "message",
                    "mediaUrl"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "http_post_request"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "headers": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": true
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyTemplate": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "url",
                  "headers",
                  "bodyTemplate"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "url",
                    "headers",
                    "bodyTemplate"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "heyreach_campaign"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "connectionId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "campaignId": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "campaignName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "linkedInAccountId": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "campaignId"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "connectionId",
                    "campaignId",
                    "campaignName",
                    "linkedInAccountId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "attio_task"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "assigneeMemberIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "onMissingAssignee": {
                    "type": "string",
                    "enum": [
                      "skip",
                      "fail"
                    ]
                  },
                  "deadlineOffsetDays": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "personLink": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "sourceVariable": {
                        "type": "string"
                      },
                      "matchBy": {
                        "type": "string",
                        "enum": [
                          "email",
                          "domain",
                          "record_id"
                        ]
                      },
                      "createIfMissing": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "enabled",
                      "sourceVariable",
                      "matchBy",
                      "createIfMissing"
                    ],
                    "patternProperties": {
                      "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "sourceVariable",
                        "matchBy",
                        "createIfMissing"
                      ]
                    }
                  },
                  "companyLink": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "sourceVariable": {
                        "type": "string"
                      },
                      "matchBy": {
                        "type": "string",
                        "enum": [
                          "email",
                          "domain",
                          "record_id"
                        ]
                      },
                      "createIfMissing": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "enabled",
                      "sourceVariable",
                      "matchBy",
                      "createIfMissing"
                    ],
                    "patternProperties": {
                      "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "sourceVariable",
                        "matchBy",
                        "createIfMissing"
                      ]
                    }
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "content",
                  "assigneeMemberIds",
                  "onMissingAssignee",
                  "deadlineOffsetDays",
                  "personLink",
                  "companyLink"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "content",
                    "assigneeMemberIds",
                    "onMissingAssignee",
                    "deadlineOffsetDays",
                    "personLink",
                    "companyLink"
                  ]
                }
              }
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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": {
                        "$ref": "#/$defs/TemplateName"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/TemplateDescription"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "category": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/TemplateCategory"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isSystem": {
                        "type": "boolean"
                      },
                      "organizationId": {
                        "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"
                          }
                        ]
                      },
                      "steps": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/TemplateStep"
                        },
                        "maxItems": 50
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "category",
                      "isSystem",
                      "organizationId",
                      "steps",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|description|category|isSystem|organizationId|steps|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "description",
                        "category",
                        "isSystem",
                        "organizationId",
                        "steps",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "success"
                    ],
                    "patternProperties": {
                      "^(?!(?:success)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "success"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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": {
                            "$ref": "#/$defs/TemplateName"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/TemplateDescription"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "category": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/TemplateCategory"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isSystem": {
                            "type": "boolean"
                          },
                          "organizationId": {
                            "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"
                              }
                            ]
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/TemplateStep"
                            },
                            "maxItems": 50
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "category",
                          "isSystem",
                          "organizationId",
                          "steps",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|description|category|isSystem|organizationId|steps|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "description",
                            "category",
                            "isSystem",
                            "organizationId",
                            "steps",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "success"
                        ],
                        "patternProperties": {
                          "^(?!(?:success)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "success"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_sequence_templates"
      },
      "scopes": [
        "template:create",
        "template:update",
        "template:delete"
      ],
      "bundles": [
        "content_authoring"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "templates.create",
        "templates.update",
        "templates.delete"
      ],
      "invocations": [
        {
          "operationId": "templates.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/templates",
          "workspaceScoped": false
        },
        {
          "operationId": "templates.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/templates/:templateId",
          "workspaceScoped": false
        },
        {
          "operationId": "templates.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/templates/:templateId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": [
              "create",
              "update",
              "delete"
            ]
          },
          "templateId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "input": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/TemplateName"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/TemplateDescription"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "category": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/TemplateCategory"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/TemplateStep"
                    },
                    "maxItems": 50
                  }
                },
                "required": [
                  "name",
                  "steps"
                ],
                "patternProperties": {
                  "^(?!(?:name|description|category|steps)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "description",
                    "category",
                    "steps"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/TemplateName"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/TemplateDescription"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "category": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/TemplateCategory"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/TemplateStep"
                    },
                    "maxItems": 50
                  }
                },
                "patternProperties": {
                  "^(?!(?:name|description|category|steps)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "description",
                    "category",
                    "steps"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 4
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|templateId|input)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "templateId",
            "input"
          ]
        },
        "$defs": {
          "TemplateName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "TemplateDescription": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "TemplateCategory": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Arrays_"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "Arrays_": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Union_"
            }
          },
          "EditorStateJson": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Arrays_"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "TemplateStep": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "email_content"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "variants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "variantOrder": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "subject": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/EditorStateJson"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "body": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/EditorStateJson"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "variantOrder",
                        "subject",
                        "body"
                      ],
                      "patternProperties": {
                        "^(?!(?:variantOrder|subject|body)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "variantOrder",
                          "subject",
                          "body"
                        ]
                      }
                    },
                    "minItems": 1
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "variants"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|variants)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "variants"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "manual_review"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "notificationMessage": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "notificationMessage"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|notificationMessage)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "notificationMessage"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "linked_in_connection_request"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "connectionNote": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "connectionNote"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|connectionNote)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "connectionNote"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "linked_in_in_mail"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "subject": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "subject",
                  "body"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|subject|body)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "subject",
                    "body"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "phone_call"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "script": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "script"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|script)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "script"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "text_message"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "message": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mediaUrl": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "message"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|message|mediaUrl)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "message",
                    "mediaUrl"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "http_post_request"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "headers": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": true
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyTemplate": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "url",
                  "headers",
                  "bodyTemplate"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "url",
                    "headers",
                    "bodyTemplate"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "heyreach_campaign"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "connectionId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "campaignId": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "campaignName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "linkedInAccountId": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "campaignId"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "connectionId",
                    "campaignId",
                    "campaignName",
                    "linkedInAccountId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "attio_task"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "assigneeMemberIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "onMissingAssignee": {
                    "type": "string",
                    "enum": [
                      "skip",
                      "fail"
                    ]
                  },
                  "deadlineOffsetDays": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "personLink": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "sourceVariable": {
                        "type": "string"
                      },
                      "matchBy": {
                        "type": "string",
                        "enum": [
                          "email",
                          "domain",
                          "record_id"
                        ]
                      },
                      "createIfMissing": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "enabled",
                      "sourceVariable",
                      "matchBy",
                      "createIfMissing"
                    ],
                    "patternProperties": {
                      "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "sourceVariable",
                        "matchBy",
                        "createIfMissing"
                      ]
                    }
                  },
                  "companyLink": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "sourceVariable": {
                        "type": "string"
                      },
                      "matchBy": {
                        "type": "string",
                        "enum": [
                          "email",
                          "domain",
                          "record_id"
                        ]
                      },
                      "createIfMissing": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "enabled",
                      "sourceVariable",
                      "matchBy",
                      "createIfMissing"
                    ],
                    "patternProperties": {
                      "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "sourceVariable",
                        "matchBy",
                        "createIfMissing"
                      ]
                    }
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "content",
                  "assigneeMemberIds",
                  "onMissingAssignee",
                  "deadlineOffsetDays",
                  "personLink",
                  "companyLink"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "content",
                    "assigneeMemberIds",
                    "onMissingAssignee",
                    "deadlineOffsetDays",
                    "personLink",
                    "companyLink"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "manage_sms_conversations",
      "description": "Work the SMS inbox on the workspace's dialing numbers: see which numbers can text, read threads and their messages, keep read and archive state, and send a text.\n\nUse to ground a claim about what was texted, to tidy the inbox, or — after a person has approved the wording and the recipient — to send one message from a number the caller owns.\n\nSending reaches a real phone, costs money, and cannot be recalled. It is refused for a recipient on the Do-Not-Call list or one who has opted out, and for any number the caller does not personally own. Do not send bulk or speculative messages, and do not retry a send with a fresh request id — reuse the original so the retry joins the existing message instead of texting the person twice.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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_numbers",
              "list_conversations",
              "read_conversation",
              "mark_read",
              "set_archived",
              "send"
            ]
          },
          "numberId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "counterpartyE164": {
            "$ref": "#/$defs/E164PhoneNumber"
          },
          "conversations": {
            "type": "object",
            "properties": {
              "numberId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "folder": {
                "type": "string",
                "enum": [
                  "inbox",
                  "archived",
                  "all"
                ]
              },
              "search": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50
              }
            },
            "patternProperties": {
              "^(?!(?:numberId|folder|search|cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "numberId",
                "folder",
                "search",
                "cursor",
                "limit"
              ]
            }
          },
          "conversation": {
            "type": "object",
            "properties": {
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50
              }
            },
            "patternProperties": {
              "^(?!(?:cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "cursor",
                "limit"
              ]
            }
          },
          "markRead": {
            "type": "object",
            "properties": {
              "numberId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "counterpartyE164": {
                "$ref": "#/$defs/E164PhoneNumber"
              },
              "seenThroughMessageId": {
                "$ref": "#/$defs/SmsMessageId"
              }
            },
            "required": [
              "numberId",
              "counterpartyE164",
              "seenThroughMessageId"
            ],
            "patternProperties": {
              "^(?!(?:numberId|counterpartyE164|seenThroughMessageId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "numberId",
                "counterpartyE164",
                "seenThroughMessageId"
              ]
            }
          },
          "setArchived": {
            "type": "object",
            "properties": {
              "numberId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "counterpartyE164": {
                "$ref": "#/$defs/E164PhoneNumber"
              },
              "archived": {
                "type": "boolean"
              }
            },
            "required": [
              "numberId",
              "counterpartyE164",
              "archived"
            ],
            "patternProperties": {
              "^(?!(?:numberId|counterpartyE164|archived)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "numberId",
                "counterpartyE164",
                "archived"
              ]
            }
          },
          "send": {
            "type": "object",
            "properties": {
              "numberId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "toE164": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40
              },
              "body": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1600
              }
            },
            "required": [
              "numberId",
              "toE164",
              "body"
            ],
            "patternProperties": {
              "^(?!(?:numberId|toE164|body)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "numberId",
                "toE164",
                "body"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|numberId|counterpartyE164|conversations|conversation|markRead|setArchived|send)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "numberId",
            "counterpartyE164",
            "conversations",
            "conversation",
            "markRead",
            "setArchived",
            "send"
          ]
        },
        "$defs": {
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "SmsMessageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "SmsMessageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        },
        "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"
                            },
                            "phoneE164": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "warming",
                                "inactive",
                                "error",
                                "alert",
                                "flagged",
                                "retired"
                              ]
                            },
                            "capabilities": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "voice": {
                                      "type": "boolean"
                                    },
                                    "sms": {
                                      "type": "boolean"
                                    },
                                    "mms": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "voice",
                                    "sms",
                                    "mms"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:voice|sms|mms)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "voice",
                                      "sms",
                                      "mms"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "assignedUserId": {
                              "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"
                                }
                              ]
                            },
                            "assignedToCurrentUser": {
                              "type": "boolean"
                            },
                            "canSend": {
                              "type": "boolean"
                            },
                            "sendBlockedReason": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "dialer_access_required",
                                    "reply_permission_required",
                                    "number_not_assigned",
                                    "number_unavailable",
                                    "recipient_dnc",
                                    "recipient_opted_out",
                                    "self_send"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "phoneE164",
                            "status",
                            "capabilities",
                            "assignedUserId",
                            "assignedToCurrentUser",
                            "canSend",
                            "sendBlockedReason"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|phoneE164|status|capabilities|assignedUserId|assignedToCurrentUser|canSend|sendBlockedReason)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "phoneE164",
                              "status",
                              "capabilities",
                              "assignedUserId",
                              "assignedToCurrentUser",
                              "canSend",
                              "sendBlockedReason"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "numberId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "senderNumber": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "counterpartyE164": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "displayName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastInboundAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "unreadCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "isUnread": {
                              "type": "boolean"
                            },
                            "archivedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isArchived": {
                              "type": "boolean"
                            },
                            "lastMessage": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/SmsMessageId"
                                },
                                "direction": {
                                  "type": "string",
                                  "enum": [
                                    "inbound",
                                    "outbound"
                                  ]
                                },
                                "body": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 1600
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "registered",
                                    "submitting",
                                    "queued",
                                    "sent",
                                    "delivered",
                                    "delivery_failed",
                                    "failed",
                                    "receiving",
                                    "received",
                                    "receive_failed",
                                    "unknown"
                                  ]
                                },
                                "attemptedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "attachmentCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "sentByUserId": {
                                  "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"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "direction",
                                "body",
                                "status",
                                "attemptedAt",
                                "attachmentCount",
                                "sentByUserId"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|direction|body|status|attemptedAt|attachmentCount|sentByUserId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "direction",
                                  "body",
                                  "status",
                                  "attemptedAt",
                                  "attachmentCount",
                                  "sentByUserId"
                                ]
                              }
                            }
                          },
                          "required": [
                            "numberId",
                            "senderNumber",
                            "counterpartyE164",
                            "displayName",
                            "companyName",
                            "lastInboundAt",
                            "unreadCount",
                            "isUnread",
                            "archivedAt",
                            "isArchived",
                            "lastMessage"
                          ],
                          "patternProperties": {
                            "^(?!(?:numberId|senderNumber|counterpartyE164|displayName|companyName|lastInboundAt|unreadCount|isUnread|archivedAt|isArchived|lastMessage)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "numberId",
                              "senderNumber",
                              "counterpartyE164",
                              "displayName",
                              "companyName",
                              "lastInboundAt",
                              "unreadCount",
                              "isUnread",
                              "archivedAt",
                              "isArchived",
                              "lastMessage"
                            ]
                          }
                        }
                      },
                      "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": {
                      "conversation": {
                        "type": "object",
                        "properties": {
                          "numberId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "senderNumber": {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          "counterpartyE164": {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          "displayName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "companyName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isArchived": {
                            "type": "boolean"
                          },
                          "canSend": {
                            "type": "boolean"
                          },
                          "sendBlockedReason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dialer_access_required",
                                  "reply_permission_required",
                                  "number_not_assigned",
                                  "number_unavailable",
                                  "recipient_dnc",
                                  "recipient_opted_out",
                                  "self_send"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "numberId",
                          "senderNumber",
                          "counterpartyE164",
                          "displayName",
                          "companyName",
                          "archivedAt",
                          "isArchived",
                          "canSend",
                          "sendBlockedReason"
                        ],
                        "patternProperties": {
                          "^(?!(?:numberId|senderNumber|counterpartyE164|displayName|companyName|archivedAt|isArchived|canSend|sendBlockedReason)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "numberId",
                            "senderNumber",
                            "counterpartyE164",
                            "displayName",
                            "companyName",
                            "archivedAt",
                            "isArchived",
                            "canSend",
                            "sendBlockedReason"
                          ]
                        }
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/SmsMessageId"
                            },
                            "direction": {
                              "type": "string",
                              "enum": [
                                "inbound",
                                "outbound"
                              ]
                            },
                            "fromE164": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "toE164": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "body": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1600
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "registered",
                                "submitting",
                                "queued",
                                "sent",
                                "delivered",
                                "delivery_failed",
                                "failed",
                                "receiving",
                                "received",
                                "receive_failed",
                                "unknown"
                              ]
                            },
                            "attemptedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "deliveredAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "failedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "code": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "message": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "code",
                                    "message"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:code|message)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "code",
                                      "message"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sentByUserId": {
                              "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"
                                }
                              ]
                            },
                            "attachments": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/ProviderId"
                                  },
                                  "contentType": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "sizeBytes": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "url": {
                                    "$ref": "#/$defs/HttpUrl"
                                  },
                                  "urlExpiresAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  }
                                },
                                "required": [
                                  "id",
                                  "contentType",
                                  "sizeBytes",
                                  "url",
                                  "urlExpiresAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|contentType|sizeBytes|url|urlExpiresAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "contentType",
                                    "sizeBytes",
                                    "url",
                                    "urlExpiresAt"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "id",
                            "direction",
                            "fromE164",
                            "toE164",
                            "body",
                            "status",
                            "attemptedAt",
                            "deliveredAt",
                            "failedAt",
                            "error",
                            "sentByUserId",
                            "attachments"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|direction|fromE164|toE164|body|status|attemptedAt|deliveredAt|failedAt|error|sentByUserId|attachments)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "direction",
                              "fromE164",
                              "toE164",
                              "body",
                              "status",
                              "attemptedAt",
                              "deliveredAt",
                              "failedAt",
                              "error",
                              "sentByUserId",
                              "attachments"
                            ]
                          }
                        }
                      },
                      "nextCursor": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Cursor"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "conversation",
                      "items",
                      "nextCursor"
                    ],
                    "patternProperties": {
                      "^(?!(?:conversation|items|nextCursor)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "conversation",
                        "items",
                        "nextCursor"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "readThroughAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "readThroughMessageId": {
                        "$ref": "#/$defs/SmsMessageId"
                      }
                    },
                    "required": [
                      "readThroughAt",
                      "readThroughMessageId"
                    ],
                    "patternProperties": {
                      "^(?!(?:readThroughAt|readThroughMessageId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "readThroughAt",
                        "readThroughMessageId"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "archivedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "archivedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:archivedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "archivedAt"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "messageId": {
                        "$ref": "#/$defs/SmsMessageId"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "registered",
                          "submitting",
                          "queued",
                          "sent",
                          "delivered",
                          "delivery_failed",
                          "failed",
                          "receiving",
                          "received",
                          "receive_failed",
                          "unknown"
                        ]
                      },
                      "deduplicated": {
                        "type": "boolean"
                      },
                      "enqueued": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "messageId",
                      "status",
                      "deduplicated",
                      "enqueued"
                    ],
                    "patternProperties": {
                      "^(?!(?:messageId|status|deduplicated|enqueued)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "messageId",
                        "status",
                        "deduplicated",
                        "enqueued"
                      ]
                    }
                  }
                ]
              },
              {
                "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"
                                },
                                "phoneE164": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "warming",
                                    "inactive",
                                    "error",
                                    "alert",
                                    "flagged",
                                    "retired"
                                  ]
                                },
                                "capabilities": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "voice": {
                                          "type": "boolean"
                                        },
                                        "sms": {
                                          "type": "boolean"
                                        },
                                        "mms": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "voice",
                                        "sms",
                                        "mms"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:voice|sms|mms)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "voice",
                                          "sms",
                                          "mms"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "assignedUserId": {
                                  "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"
                                    }
                                  ]
                                },
                                "assignedToCurrentUser": {
                                  "type": "boolean"
                                },
                                "canSend": {
                                  "type": "boolean"
                                },
                                "sendBlockedReason": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dialer_access_required",
                                        "reply_permission_required",
                                        "number_not_assigned",
                                        "number_unavailable",
                                        "recipient_dnc",
                                        "recipient_opted_out",
                                        "self_send"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "phoneE164",
                                "status",
                                "capabilities",
                                "assignedUserId",
                                "assignedToCurrentUser",
                                "canSend",
                                "sendBlockedReason"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|phoneE164|status|capabilities|assignedUserId|assignedToCurrentUser|canSend|sendBlockedReason)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "phoneE164",
                                  "status",
                                  "capabilities",
                                  "assignedUserId",
                                  "assignedToCurrentUser",
                                  "canSend",
                                  "sendBlockedReason"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "numberId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "senderNumber": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "counterpartyE164": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "displayName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastInboundAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unreadCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "isUnread": {
                                  "type": "boolean"
                                },
                                "archivedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isArchived": {
                                  "type": "boolean"
                                },
                                "lastMessage": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "$ref": "#/$defs/SmsMessageId"
                                    },
                                    "direction": {
                                      "type": "string",
                                      "enum": [
                                        "inbound",
                                        "outbound"
                                      ]
                                    },
                                    "body": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 1600
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "registered",
                                        "submitting",
                                        "queued",
                                        "sent",
                                        "delivered",
                                        "delivery_failed",
                                        "failed",
                                        "receiving",
                                        "received",
                                        "receive_failed",
                                        "unknown"
                                      ]
                                    },
                                    "attemptedAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "attachmentCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "sentByUserId": {
                                      "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"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "direction",
                                    "body",
                                    "status",
                                    "attemptedAt",
                                    "attachmentCount",
                                    "sentByUserId"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|direction|body|status|attemptedAt|attachmentCount|sentByUserId)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "direction",
                                      "body",
                                      "status",
                                      "attemptedAt",
                                      "attachmentCount",
                                      "sentByUserId"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "numberId",
                                "senderNumber",
                                "counterpartyE164",
                                "displayName",
                                "companyName",
                                "lastInboundAt",
                                "unreadCount",
                                "isUnread",
                                "archivedAt",
                                "isArchived",
                                "lastMessage"
                              ],
                              "patternProperties": {
                                "^(?!(?:numberId|senderNumber|counterpartyE164|displayName|companyName|lastInboundAt|unreadCount|isUnread|archivedAt|isArchived|lastMessage)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "numberId",
                                  "senderNumber",
                                  "counterpartyE164",
                                  "displayName",
                                  "companyName",
                                  "lastInboundAt",
                                  "unreadCount",
                                  "isUnread",
                                  "archivedAt",
                                  "isArchived",
                                  "lastMessage"
                                ]
                              }
                            }
                          },
                          "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": {
                          "conversation": {
                            "type": "object",
                            "properties": {
                              "numberId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "senderNumber": {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              "counterpartyE164": {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              "displayName": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "companyName": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "archivedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "isArchived": {
                                "type": "boolean"
                              },
                              "canSend": {
                                "type": "boolean"
                              },
                              "sendBlockedReason": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "dialer_access_required",
                                      "reply_permission_required",
                                      "number_not_assigned",
                                      "number_unavailable",
                                      "recipient_dnc",
                                      "recipient_opted_out",
                                      "self_send"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "numberId",
                              "senderNumber",
                              "counterpartyE164",
                              "displayName",
                              "companyName",
                              "archivedAt",
                              "isArchived",
                              "canSend",
                              "sendBlockedReason"
                            ],
                            "patternProperties": {
                              "^(?!(?:numberId|senderNumber|counterpartyE164|displayName|companyName|archivedAt|isArchived|canSend|sendBlockedReason)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "numberId",
                                "senderNumber",
                                "counterpartyE164",
                                "displayName",
                                "companyName",
                                "archivedAt",
                                "isArchived",
                                "canSend",
                                "sendBlockedReason"
                              ]
                            }
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/SmsMessageId"
                                },
                                "direction": {
                                  "type": "string",
                                  "enum": [
                                    "inbound",
                                    "outbound"
                                  ]
                                },
                                "fromE164": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "toE164": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "body": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 1600
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "registered",
                                    "submitting",
                                    "queued",
                                    "sent",
                                    "delivered",
                                    "delivery_failed",
                                    "failed",
                                    "receiving",
                                    "received",
                                    "receive_failed",
                                    "unknown"
                                  ]
                                },
                                "attemptedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "deliveredAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "failedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "error": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "code": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/ShortText"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "message": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/ShortText"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "code",
                                        "message"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:code|message)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "code",
                                          "message"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sentByUserId": {
                                  "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"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/$defs/ProviderId"
                                      },
                                      "contentType": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "sizeBytes": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "url": {
                                        "$ref": "#/$defs/HttpUrl"
                                      },
                                      "urlExpiresAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "contentType",
                                      "sizeBytes",
                                      "url",
                                      "urlExpiresAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|contentType|sizeBytes|url|urlExpiresAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "contentType",
                                        "sizeBytes",
                                        "url",
                                        "urlExpiresAt"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "direction",
                                "fromE164",
                                "toE164",
                                "body",
                                "status",
                                "attemptedAt",
                                "deliveredAt",
                                "failedAt",
                                "error",
                                "sentByUserId",
                                "attachments"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|direction|fromE164|toE164|body|status|attemptedAt|deliveredAt|failedAt|error|sentByUserId|attachments)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "direction",
                                  "fromE164",
                                  "toE164",
                                  "body",
                                  "status",
                                  "attemptedAt",
                                  "deliveredAt",
                                  "failedAt",
                                  "error",
                                  "sentByUserId",
                                  "attachments"
                                ]
                              }
                            }
                          },
                          "nextCursor": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Cursor"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "conversation",
                          "items",
                          "nextCursor"
                        ],
                        "patternProperties": {
                          "^(?!(?:conversation|items|nextCursor)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "conversation",
                            "items",
                            "nextCursor"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "readThroughAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "readThroughMessageId": {
                            "$ref": "#/$defs/SmsMessageId"
                          }
                        },
                        "required": [
                          "readThroughAt",
                          "readThroughMessageId"
                        ],
                        "patternProperties": {
                          "^(?!(?:readThroughAt|readThroughMessageId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "readThroughAt",
                            "readThroughMessageId"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "archivedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:archivedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "archivedAt"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "messageId": {
                            "$ref": "#/$defs/SmsMessageId"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "registered",
                              "submitting",
                              "queued",
                              "sent",
                              "delivered",
                              "delivery_failed",
                              "failed",
                              "receiving",
                              "received",
                              "receive_failed",
                              "unknown"
                            ]
                          },
                          "deduplicated": {
                            "type": "boolean"
                          },
                          "enqueued": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "messageId",
                          "status",
                          "deduplicated",
                          "enqueued"
                        ],
                        "patternProperties": {
                          "^(?!(?:messageId|status|deduplicated|enqueued)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "messageId",
                            "status",
                            "deduplicated",
                            "enqueued"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_sms_conversations"
      },
      "scopes": [
        "unibox:read",
        "unibox:reply",
        "dialer:read",
        "dialer:dial"
      ],
      "bundles": [
        "dialer_media_operations"
      ],
      "risk": "costly",
      "idempotency": "required",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "sms.numbers",
        "sms.conversations",
        "sms.conversation",
        "sms.markRead",
        "sms.setArchived",
        "sms.send"
      ],
      "invocations": [
        {
          "operationId": "sms.numbers",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/sms/numbers",
          "workspaceScoped": false
        },
        {
          "operationId": "sms.conversations",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/sms/conversations",
          "workspaceScoped": false
        },
        {
          "operationId": "sms.conversation",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/sms/conversations/:numberId/:counterpartyE164",
          "workspaceScoped": false
        },
        {
          "operationId": "sms.markRead",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/sms/conversations/read",
          "workspaceScoped": false
        },
        {
          "operationId": "sms.setArchived",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/sms/conversations/archive",
          "workspaceScoped": false
        },
        {
          "operationId": "sms.send",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/sms/messages",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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_numbers",
              "list_conversations",
              "read_conversation",
              "mark_read",
              "set_archived",
              "send"
            ]
          },
          "numberId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "counterpartyE164": {
            "$ref": "#/$defs/E164PhoneNumber"
          },
          "conversations": {
            "type": "object",
            "properties": {
              "numberId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "folder": {
                "type": "string",
                "enum": [
                  "inbox",
                  "archived",
                  "all"
                ]
              },
              "search": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50
              }
            },
            "patternProperties": {
              "^(?!(?:numberId|folder|search|cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "numberId",
                "folder",
                "search",
                "cursor",
                "limit"
              ]
            }
          },
          "conversation": {
            "type": "object",
            "properties": {
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50
              }
            },
            "patternProperties": {
              "^(?!(?:cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "cursor",
                "limit"
              ]
            }
          },
          "markRead": {
            "type": "object",
            "properties": {
              "numberId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "counterpartyE164": {
                "$ref": "#/$defs/E164PhoneNumber"
              },
              "seenThroughMessageId": {
                "$ref": "#/$defs/SmsMessageId"
              }
            },
            "required": [
              "numberId",
              "counterpartyE164",
              "seenThroughMessageId"
            ],
            "patternProperties": {
              "^(?!(?:numberId|counterpartyE164|seenThroughMessageId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "numberId",
                "counterpartyE164",
                "seenThroughMessageId"
              ]
            }
          },
          "setArchived": {
            "type": "object",
            "properties": {
              "numberId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "counterpartyE164": {
                "$ref": "#/$defs/E164PhoneNumber"
              },
              "archived": {
                "type": "boolean"
              }
            },
            "required": [
              "numberId",
              "counterpartyE164",
              "archived"
            ],
            "patternProperties": {
              "^(?!(?:numberId|counterpartyE164|archived)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "numberId",
                "counterpartyE164",
                "archived"
              ]
            }
          },
          "send": {
            "type": "object",
            "properties": {
              "numberId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "toE164": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40
              },
              "body": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1600
              }
            },
            "required": [
              "numberId",
              "toE164",
              "body"
            ],
            "patternProperties": {
              "^(?!(?:numberId|toE164|body)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "numberId",
                "toE164",
                "body"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|numberId|counterpartyE164|conversations|conversation|markRead|setArchived|send)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "numberId",
            "counterpartyE164",
            "conversations",
            "conversation",
            "markRead",
            "setArchived",
            "send"
          ]
        },
        "$defs": {
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "SmsMessageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "commerce",
      "name": "manage_subscription",
      "description": "Start a plan purchase, plan change, or payment-method update and hand a person the Stripe-hosted page that completes it.\n\nUse when a person wants to upgrade, switch billing cycle, or fix a failed payment. Return the `url` to them and poll the subscription until the change lands.\n\nNothing is charged until the person completes the hosted page; never ask for card details. A frozen Organization can still use this — it is the way out.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "change_plan"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "plan": {
                        "type": "string",
                        "enum": [
                          "starter",
                          "growth",
                          "pro"
                        ]
                      },
                      "billingCycle": {
                        "type": "string",
                        "enum": [
                          "monthly",
                          "annual"
                        ]
                      },
                      "successUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "cancelUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "returnUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      }
                    },
                    "required": [
                      "plan",
                      "successUrl",
                      "cancelUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:plan|billingCycle|successUrl|cancelUrl|returnUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "plan",
                        "billingCycle",
                        "successUrl",
                        "cancelUrl",
                        "returnUrl"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "update_payment_method"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "returnUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      }
                    },
                    "required": [
                      "returnUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:returnUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "returnUrl"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "organizationId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "action"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "checkout",
                          "portal"
                        ]
                      },
                      "url": {
                        "$ref": "#/$defs/HttpUrl"
                      }
                    },
                    "required": [
                      "kind",
                      "url"
                    ],
                    "patternProperties": {
                      "^(?!(?:kind|url)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "kind",
                        "url"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "subscriptions": {
                        "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"
                            },
                            "plan": {
                              "type": "string",
                              "enum": [
                                "trial",
                                "starter",
                                "growth",
                                "pro"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "incomplete",
                                "incomplete_expired",
                                "trialing",
                                "active",
                                "past_due",
                                "canceled",
                                "unpaid",
                                "paused",
                                "frozen"
                              ]
                            },
                            "billingCycle": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "monthly",
                                    "annual"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "seats": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "trialStart": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "trialEnd": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "periodStart": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "periodEnd": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cancelAtPeriodEnd": {
                              "type": "boolean"
                            },
                            "pastDueSince": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "stripeCustomerId": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ProviderId"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "stripeSubscriptionId": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ProviderId"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "priceId": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ProviderId"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "frozen": {
                              "type": "boolean"
                            },
                            "limits": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "maxEmailsPerMonth": {
                                      "type": "integer",
                                      "minimum": -1
                                    },
                                    "maxInboxes": {
                                      "type": "integer",
                                      "minimum": -1
                                    },
                                    "maxCampaigns": {
                                      "type": "integer",
                                      "minimum": -1
                                    },
                                    "maxContactsPerCampaign": {
                                      "type": "integer",
                                      "minimum": -1
                                    },
                                    "whiteLabelEnabled": {
                                      "type": "boolean"
                                    },
                                    "prioritySupport": {
                                      "type": "boolean"
                                    },
                                    "warmupPoolTier": {
                                      "type": "string",
                                      "enum": [
                                        "standard",
                                        "premium"
                                      ]
                                    },
                                    "maxWarmupEmailsPerDay": {
                                      "type": "integer",
                                      "minimum": -1
                                    },
                                    "maxWarmupInboxes": {
                                      "type": "integer",
                                      "minimum": -1
                                    },
                                    "privatePoolEnabled": {
                                      "type": "boolean"
                                    },
                                    "dedicatedEgressEnabled": {
                                      "type": "boolean"
                                    },
                                    "maxActiveEgressIps": {
                                      "type": "integer",
                                      "minimum": -1
                                    },
                                    "egressInfrastructureBudgetCents": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "byokEnabled": {
                                      "type": "boolean"
                                    },
                                    "fullMailboxSyncEnabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "maxEmailsPerMonth",
                                    "maxInboxes",
                                    "maxCampaigns",
                                    "maxContactsPerCampaign",
                                    "whiteLabelEnabled",
                                    "prioritySupport",
                                    "warmupPoolTier",
                                    "maxWarmupEmailsPerDay",
                                    "maxWarmupInboxes",
                                    "privatePoolEnabled",
                                    "dedicatedEgressEnabled",
                                    "maxActiveEgressIps",
                                    "egressInfrastructureBudgetCents",
                                    "byokEnabled",
                                    "fullMailboxSyncEnabled"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:maxEmailsPerMonth|maxInboxes|maxCampaigns|maxContactsPerCampaign|whiteLabelEnabled|prioritySupport|warmupPoolTier|maxWarmupEmailsPerDay|maxWarmupInboxes|privatePoolEnabled|dedicatedEgressEnabled|maxActiveEgressIps|egressInfrastructureBudgetCents|byokEnabled|fullMailboxSyncEnabled)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "maxEmailsPerMonth",
                                      "maxInboxes",
                                      "maxCampaigns",
                                      "maxContactsPerCampaign",
                                      "whiteLabelEnabled",
                                      "prioritySupport",
                                      "warmupPoolTier",
                                      "maxWarmupEmailsPerDay",
                                      "maxWarmupInboxes",
                                      "privatePoolEnabled",
                                      "dedicatedEgressEnabled",
                                      "maxActiveEgressIps",
                                      "egressInfrastructureBudgetCents",
                                      "byokEnabled",
                                      "fullMailboxSyncEnabled"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "plan",
                            "status",
                            "billingCycle",
                            "seats",
                            "trialStart",
                            "trialEnd",
                            "periodStart",
                            "periodEnd",
                            "cancelAtPeriodEnd",
                            "pastDueSince",
                            "stripeCustomerId",
                            "stripeSubscriptionId",
                            "priceId",
                            "frozen",
                            "limits"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|plan|status|billingCycle|seats|trialStart|trialEnd|periodStart|periodEnd|cancelAtPeriodEnd|pastDueSince|stripeCustomerId|stripeSubscriptionId|priceId|frozen|limits)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "plan",
                              "status",
                              "billingCycle",
                              "seats",
                              "trialStart",
                              "trialEnd",
                              "periodStart",
                              "periodEnd",
                              "cancelAtPeriodEnd",
                              "pastDueSince",
                              "stripeCustomerId",
                              "stripeSubscriptionId",
                              "priceId",
                              "frozen",
                              "limits"
                            ]
                          }
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "subscriptions"
                    ],
                    "patternProperties": {
                      "^(?!(?:subscriptions)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "subscriptions"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "checkout",
                              "portal"
                            ]
                          },
                          "url": {
                            "$ref": "#/$defs/HttpUrl"
                          }
                        },
                        "required": [
                          "kind",
                          "url"
                        ],
                        "patternProperties": {
                          "^(?!(?:kind|url)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "kind",
                            "url"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "subscriptions": {
                            "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"
                                },
                                "plan": {
                                  "type": "string",
                                  "enum": [
                                    "trial",
                                    "starter",
                                    "growth",
                                    "pro"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "incomplete",
                                    "incomplete_expired",
                                    "trialing",
                                    "active",
                                    "past_due",
                                    "canceled",
                                    "unpaid",
                                    "paused",
                                    "frozen"
                                  ]
                                },
                                "billingCycle": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "monthly",
                                        "annual"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "seats": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "trialStart": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "trialEnd": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "periodStart": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "periodEnd": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "cancelAtPeriodEnd": {
                                  "type": "boolean"
                                },
                                "pastDueSince": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "stripeCustomerId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ProviderId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "stripeSubscriptionId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ProviderId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "priceId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ProviderId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "frozen": {
                                  "type": "boolean"
                                },
                                "limits": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "maxEmailsPerMonth": {
                                          "type": "integer",
                                          "minimum": -1
                                        },
                                        "maxInboxes": {
                                          "type": "integer",
                                          "minimum": -1
                                        },
                                        "maxCampaigns": {
                                          "type": "integer",
                                          "minimum": -1
                                        },
                                        "maxContactsPerCampaign": {
                                          "type": "integer",
                                          "minimum": -1
                                        },
                                        "whiteLabelEnabled": {
                                          "type": "boolean"
                                        },
                                        "prioritySupport": {
                                          "type": "boolean"
                                        },
                                        "warmupPoolTier": {
                                          "type": "string",
                                          "enum": [
                                            "standard",
                                            "premium"
                                          ]
                                        },
                                        "maxWarmupEmailsPerDay": {
                                          "type": "integer",
                                          "minimum": -1
                                        },
                                        "maxWarmupInboxes": {
                                          "type": "integer",
                                          "minimum": -1
                                        },
                                        "privatePoolEnabled": {
                                          "type": "boolean"
                                        },
                                        "dedicatedEgressEnabled": {
                                          "type": "boolean"
                                        },
                                        "maxActiveEgressIps": {
                                          "type": "integer",
                                          "minimum": -1
                                        },
                                        "egressInfrastructureBudgetCents": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "byokEnabled": {
                                          "type": "boolean"
                                        },
                                        "fullMailboxSyncEnabled": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "maxEmailsPerMonth",
                                        "maxInboxes",
                                        "maxCampaigns",
                                        "maxContactsPerCampaign",
                                        "whiteLabelEnabled",
                                        "prioritySupport",
                                        "warmupPoolTier",
                                        "maxWarmupEmailsPerDay",
                                        "maxWarmupInboxes",
                                        "privatePoolEnabled",
                                        "dedicatedEgressEnabled",
                                        "maxActiveEgressIps",
                                        "egressInfrastructureBudgetCents",
                                        "byokEnabled",
                                        "fullMailboxSyncEnabled"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:maxEmailsPerMonth|maxInboxes|maxCampaigns|maxContactsPerCampaign|whiteLabelEnabled|prioritySupport|warmupPoolTier|maxWarmupEmailsPerDay|maxWarmupInboxes|privatePoolEnabled|dedicatedEgressEnabled|maxActiveEgressIps|egressInfrastructureBudgetCents|byokEnabled|fullMailboxSyncEnabled)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "maxEmailsPerMonth",
                                          "maxInboxes",
                                          "maxCampaigns",
                                          "maxContactsPerCampaign",
                                          "whiteLabelEnabled",
                                          "prioritySupport",
                                          "warmupPoolTier",
                                          "maxWarmupEmailsPerDay",
                                          "maxWarmupInboxes",
                                          "privatePoolEnabled",
                                          "dedicatedEgressEnabled",
                                          "maxActiveEgressIps",
                                          "egressInfrastructureBudgetCents",
                                          "byokEnabled",
                                          "fullMailboxSyncEnabled"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "plan",
                                "status",
                                "billingCycle",
                                "seats",
                                "trialStart",
                                "trialEnd",
                                "periodStart",
                                "periodEnd",
                                "cancelAtPeriodEnd",
                                "pastDueSince",
                                "stripeCustomerId",
                                "stripeSubscriptionId",
                                "priceId",
                                "frozen",
                                "limits"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|plan|status|billingCycle|seats|trialStart|trialEnd|periodStart|periodEnd|cancelAtPeriodEnd|pastDueSince|stripeCustomerId|stripeSubscriptionId|priceId|frozen|limits)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "plan",
                                  "status",
                                  "billingCycle",
                                  "seats",
                                  "trialStart",
                                  "trialEnd",
                                  "periodStart",
                                  "periodEnd",
                                  "cancelAtPeriodEnd",
                                  "pastDueSince",
                                  "stripeCustomerId",
                                  "stripeSubscriptionId",
                                  "priceId",
                                  "frozen",
                                  "limits"
                                ]
                              }
                            },
                            "maxItems": 20
                          }
                        },
                        "required": [
                          "subscriptions"
                        ],
                        "patternProperties": {
                          "^(?!(?:subscriptions)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "subscriptions"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "url",
        "statusOperationId": "billing.getSubscription"
      },
      "scopes": [
        "billing:manage",
        "billing:read"
      ],
      "bundles": [
        "billing_manager"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "billing.getSubscription",
        "billing.upgrade",
        "billing.billingPortal"
      ],
      "invocations": [
        {
          "operationId": "billing.getSubscription",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/billing/subscription",
          "workspaceScoped": false
        },
        {
          "operationId": "billing.upgrade",
          "method": "POST",
          "path": "/v1/organizations/:organizationId/billing/upgrade",
          "workspaceScoped": false
        },
        {
          "operationId": "billing.billingPortal",
          "method": "POST",
          "path": "/v1/organizations/:organizationId/billing/portal",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "change_plan"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "plan": {
                        "type": "string",
                        "enum": [
                          "starter",
                          "growth",
                          "pro"
                        ]
                      },
                      "billingCycle": {
                        "type": "string",
                        "enum": [
                          "monthly",
                          "annual"
                        ]
                      },
                      "successUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "cancelUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "returnUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      }
                    },
                    "required": [
                      "plan",
                      "successUrl",
                      "cancelUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:plan|billingCycle|successUrl|cancelUrl|returnUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "plan",
                        "billingCycle",
                        "successUrl",
                        "cancelUrl",
                        "returnUrl"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "update_payment_method"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "returnUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      }
                    },
                    "required": [
                      "returnUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:returnUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "returnUrl"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "organizationId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "action"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      }
    },
    {
      "feature": "verification-warmup",
      "name": "manage_verification_preferences",
      "description": "Read or update the workspace's email-verification sharing posture: communal-cache mode, strict catch-all, freshness window, and provider display.\n\nUse to audit or change how verdicts flow into the communal cache and how aggressively catch-all verdicts escalate.\n\nDoes not manage keys or run verification; payment mode is locked to BYOK.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": [
              "get",
              "update"
            ]
          },
          "patch": {
            "type": "object",
            "properties": {
              "sharingMode": {
                "type": "string",
                "enum": [
                  "contribute_and_consume",
                  "consume_only",
                  "private"
                ]
              },
              "paymentMode": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "byok"
                    ]
                  }
                ]
              },
              "strictCatchAll": {
                "type": "boolean"
              },
              "freshnessWindowSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 7776000
              },
              "providerDisplayMode": {
                "type": "string",
                "enum": [
                  "named",
                  "generic"
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:sharingMode|paymentMode|strictCatchAll|freshnessWindowSeconds|providerDisplayMode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "sharingMode",
                "paymentMode",
                "strictCatchAll",
                "freshnessWindowSeconds",
                "providerDisplayMode"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|patch)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "patch"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "sharingMode": {
                        "type": "string",
                        "enum": [
                          "contribute_and_consume",
                          "consume_only",
                          "private"
                        ]
                      },
                      "paymentMode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "byok"
                            ]
                          }
                        ]
                      },
                      "strictCatchAll": {
                        "type": "boolean"
                      },
                      "freshnessWindowSeconds": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 7776000
                      },
                      "providerDisplayMode": {
                        "type": "string",
                        "enum": [
                          "named",
                          "generic"
                        ]
                      }
                    },
                    "required": [
                      "sharingMode",
                      "paymentMode",
                      "strictCatchAll",
                      "freshnessWindowSeconds",
                      "providerDisplayMode"
                    ],
                    "patternProperties": {
                      "^(?!(?:sharingMode|paymentMode|strictCatchAll|freshnessWindowSeconds|providerDisplayMode)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "sharingMode",
                        "paymentMode",
                        "strictCatchAll",
                        "freshnessWindowSeconds",
                        "providerDisplayMode"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "success"
                    ],
                    "patternProperties": {
                      "^(?!(?:success)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "success"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "sharingMode": {
                            "type": "string",
                            "enum": [
                              "contribute_and_consume",
                              "consume_only",
                              "private"
                            ]
                          },
                          "paymentMode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "byok"
                                ]
                              }
                            ]
                          },
                          "strictCatchAll": {
                            "type": "boolean"
                          },
                          "freshnessWindowSeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 7776000
                          },
                          "providerDisplayMode": {
                            "type": "string",
                            "enum": [
                              "named",
                              "generic"
                            ]
                          }
                        },
                        "required": [
                          "sharingMode",
                          "paymentMode",
                          "strictCatchAll",
                          "freshnessWindowSeconds",
                          "providerDisplayMode"
                        ],
                        "patternProperties": {
                          "^(?!(?:sharingMode|paymentMode|strictCatchAll|freshnessWindowSeconds|providerDisplayMode)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "sharingMode",
                            "paymentMode",
                            "strictCatchAll",
                            "freshnessWindowSeconds",
                            "providerDisplayMode"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "success"
                        ],
                        "patternProperties": {
                          "^(?!(?:success)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "success"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_verification_preferences"
      },
      "scopes": [
        "emailVerification:manage_sharing",
        "emailVerification:read"
      ],
      "bundles": [
        "verification_admin"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "emailVerification.sharingPreferences",
        "emailVerification.updateSharing"
      ],
      "invocations": [
        {
          "operationId": "emailVerification.sharingPreferences",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/verification/sharing",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.updateSharing",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/verification/sharing",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": [
              "get",
              "update"
            ]
          },
          "patch": {
            "type": "object",
            "properties": {
              "sharingMode": {
                "type": "string",
                "enum": [
                  "contribute_and_consume",
                  "consume_only",
                  "private"
                ]
              },
              "paymentMode": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "byok"
                    ]
                  }
                ]
              },
              "strictCatchAll": {
                "type": "boolean"
              },
              "freshnessWindowSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 7776000
              },
              "providerDisplayMode": {
                "type": "string",
                "enum": [
                  "named",
                  "generic"
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:sharingMode|paymentMode|strictCatchAll|freshnessWindowSeconds|providerDisplayMode)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "sharingMode",
                "paymentMode",
                "strictCatchAll",
                "freshnessWindowSeconds",
                "providerDisplayMode"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|patch)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "patch"
          ]
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "manage_voicemail_greetings",
      "description": "Keep the library of pre-recorded greetings a rep can drop into a prospect's voicemail: list them, register a newly uploaded one, and delete one nobody uses.\n\nUse to report which greetings exist and whether each is ready to drop, to finish an upload the person has already made, or to retire a greeting that is out of date.\n\nThis does not record audio and does not drop a voicemail — dropping one is part of a live call and belongs to a human at a softphone. Only MP3 and WAV reach a carrier directly; anything else is transcoded first and cannot be dropped until its status says so. Deleting a greeting also deletes its audio.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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_upload_intent",
              "finalize",
              "delete"
            ]
          },
          "voicemailId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "uploadIntent": {
            "type": "object",
            "properties": {
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "contentType": {
                "type": "string",
                "enum": [
                  "audio/mpeg",
                  "audio/mp3",
                  "audio/wav",
                  "audio/x-wav",
                  "audio/mp4",
                  "audio/m4a",
                  "audio/x-m4a",
                  "audio/ogg",
                  "audio/webm"
                ]
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10485760
              }
            },
            "required": [
              "fileName",
              "contentType",
              "sizeBytes"
            ],
            "patternProperties": {
              "^(?!(?:fileName|contentType|sizeBytes)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "fileName",
                "contentType",
                "sizeBytes"
              ]
            }
          },
          "finalize": {
            "type": "object",
            "properties": {
              "uploadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "contentType": {
                "type": "string",
                "enum": [
                  "audio/mpeg",
                  "audio/mp3",
                  "audio/wav",
                  "audio/x-wav",
                  "audio/mp4",
                  "audio/m4a",
                  "audio/x-m4a",
                  "audio/ogg",
                  "audio/webm"
                ]
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10485760
              },
              "durationSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 120
              }
            },
            "required": [
              "uploadId",
              "fileName",
              "name",
              "contentType",
              "sizeBytes"
            ],
            "patternProperties": {
              "^(?!(?:uploadId|fileName|name|contentType|sizeBytes|durationSeconds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "uploadId",
                "fileName",
                "name",
                "contentType",
                "sizeBytes",
                "durationSeconds"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|voicemailId|uploadIntent|finalize)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "voicemailId",
            "uploadIntent",
            "finalize"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "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": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "durationSeconds": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "transcodingStatus": {
                              "type": "string",
                              "enum": [
                                "not_required",
                                "pending",
                                "processing",
                                "completed",
                                "failed"
                              ]
                            },
                            "transcodingError": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "playbackUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "playbackUrlExpiresAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "playbackUnavailableReason": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "missing_object",
                                    "storage_error",
                                    "not_prepared"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "durationSeconds",
                            "transcodingStatus",
                            "transcodingError",
                            "playbackUrl",
                            "playbackUrlExpiresAt",
                            "playbackUnavailableReason",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|durationSeconds|transcodingStatus|transcodingError|playbackUrl|playbackUrlExpiresAt|playbackUnavailableReason|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "durationSeconds",
                              "transcodingStatus",
                              "transcodingError",
                              "playbackUrl",
                              "playbackUrlExpiresAt",
                              "playbackUnavailableReason",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "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": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "durationSeconds": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "transcodingStatus": {
                        "type": "string",
                        "enum": [
                          "not_required",
                          "pending",
                          "processing",
                          "completed",
                          "failed"
                        ]
                      },
                      "transcodingError": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "playbackUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "playbackUrlExpiresAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "playbackUnavailableReason": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "missing_object",
                              "storage_error",
                              "not_prepared"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "durationSeconds",
                      "transcodingStatus",
                      "transcodingError",
                      "playbackUrl",
                      "playbackUrlExpiresAt",
                      "playbackUnavailableReason",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|durationSeconds|transcodingStatus|transcodingError|playbackUrl|playbackUrlExpiresAt|playbackUnavailableReason|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "durationSeconds",
                        "transcodingStatus",
                        "transcodingError",
                        "playbackUrl",
                        "playbackUrlExpiresAt",
                        "playbackUnavailableReason",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "uploadId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "uploadUrl": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "method": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "PUT"
                            ]
                          }
                        ]
                      },
                      "expiresAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "uploadId",
                      "uploadUrl",
                      "method",
                      "expiresAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:uploadId|uploadUrl|method|expiresAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "uploadId",
                        "uploadUrl",
                        "method",
                        "expiresAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "voicemailId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "deletedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "voicemailId",
                      "deletedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:voicemailId|deletedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "voicemailId",
                        "deletedAt"
                      ]
                    }
                  }
                ]
              },
              {
                "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": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "durationSeconds": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "transcodingStatus": {
                                  "type": "string",
                                  "enum": [
                                    "not_required",
                                    "pending",
                                    "processing",
                                    "completed",
                                    "failed"
                                  ]
                                },
                                "transcodingError": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "playbackUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/HttpUrl"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "playbackUrlExpiresAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "playbackUnavailableReason": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "missing_object",
                                        "storage_error",
                                        "not_prepared"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "durationSeconds",
                                "transcodingStatus",
                                "transcodingError",
                                "playbackUrl",
                                "playbackUrlExpiresAt",
                                "playbackUnavailableReason",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|durationSeconds|transcodingStatus|transcodingError|playbackUrl|playbackUrlExpiresAt|playbackUnavailableReason|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "durationSeconds",
                                  "transcodingStatus",
                                  "transcodingError",
                                  "playbackUrl",
                                  "playbackUrlExpiresAt",
                                  "playbackUnavailableReason",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "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": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "durationSeconds": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "transcodingStatus": {
                            "type": "string",
                            "enum": [
                              "not_required",
                              "pending",
                              "processing",
                              "completed",
                              "failed"
                            ]
                          },
                          "transcodingError": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "playbackUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "playbackUrlExpiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "playbackUnavailableReason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "missing_object",
                                  "storage_error",
                                  "not_prepared"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "durationSeconds",
                          "transcodingStatus",
                          "transcodingError",
                          "playbackUrl",
                          "playbackUrlExpiresAt",
                          "playbackUnavailableReason",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|durationSeconds|transcodingStatus|transcodingError|playbackUrl|playbackUrlExpiresAt|playbackUnavailableReason|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "durationSeconds",
                            "transcodingStatus",
                            "transcodingError",
                            "playbackUrl",
                            "playbackUrlExpiresAt",
                            "playbackUnavailableReason",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "uploadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "uploadUrl": {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          "method": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "PUT"
                                ]
                              }
                            ]
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "uploadId",
                          "uploadUrl",
                          "method",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:uploadId|uploadUrl|method|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "uploadId",
                            "uploadUrl",
                            "method",
                            "expiresAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "voicemailId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "deletedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "voicemailId",
                          "deletedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:voicemailId|deletedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "voicemailId",
                            "deletedAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_voicemail_greetings"
      },
      "scopes": [
        "dialer:read",
        "dialer:manage_voicemails"
      ],
      "bundles": [
        "dialer_media_operations"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerVoicemails.list",
        "dialerVoicemails.createUploadIntent",
        "dialerVoicemails.finalize",
        "dialerVoicemails.delete"
      ],
      "invocations": [
        {
          "operationId": "dialerVoicemails.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/voicemails",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerVoicemails.createUploadIntent",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/voicemails/upload-url",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerVoicemails.finalize",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/voicemails",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerVoicemails.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/dialer/voicemails/:voicemailId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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_upload_intent",
              "finalize",
              "delete"
            ]
          },
          "voicemailId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "uploadIntent": {
            "type": "object",
            "properties": {
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "contentType": {
                "type": "string",
                "enum": [
                  "audio/mpeg",
                  "audio/mp3",
                  "audio/wav",
                  "audio/x-wav",
                  "audio/mp4",
                  "audio/m4a",
                  "audio/x-m4a",
                  "audio/ogg",
                  "audio/webm"
                ]
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10485760
              }
            },
            "required": [
              "fileName",
              "contentType",
              "sizeBytes"
            ],
            "patternProperties": {
              "^(?!(?:fileName|contentType|sizeBytes)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "fileName",
                "contentType",
                "sizeBytes"
              ]
            }
          },
          "finalize": {
            "type": "object",
            "properties": {
              "uploadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "contentType": {
                "type": "string",
                "enum": [
                  "audio/mpeg",
                  "audio/mp3",
                  "audio/wav",
                  "audio/x-wav",
                  "audio/mp4",
                  "audio/m4a",
                  "audio/x-m4a",
                  "audio/ogg",
                  "audio/webm"
                ]
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10485760
              },
              "durationSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 120
              }
            },
            "required": [
              "uploadId",
              "fileName",
              "name",
              "contentType",
              "sizeBytes"
            ],
            "patternProperties": {
              "^(?!(?:uploadId|fileName|name|contentType|sizeBytes|durationSeconds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "uploadId",
                "fileName",
                "name",
                "contentType",
                "sizeBytes",
                "durationSeconds"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|voicemailId|uploadIntent|finalize)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "voicemailId",
            "uploadIntent",
            "finalize"
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "manage_warmup",
      "description": "Toggles warmup enrollment and patches warmup limits, ramp, schedule, and policy overrides, in single-inbox and bulk form.\n\nWhen asked to enable/disable warmup or change warmup configuration.\n\nFor non-warmup settings — use manage_inbox_settings.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "get"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "update"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "patch": {
                "type": "object",
                "properties": {
                  "warmupEnabled": {
                    "type": "boolean"
                  },
                  "warmupFilterTag": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "warmupIncludeFilterTag": {
                    "type": "boolean"
                  },
                  "dailyWarmupLimit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50
                  },
                  "warmupRampUp": {
                    "type": "boolean"
                  },
                  "warmupInitialDailyLimit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50
                  },
                  "warmupDailyIncrement": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20
                  },
                  "warmupRandomizedLimitEnabled": {
                    "type": "boolean"
                  },
                  "warmupRandomizedLimitPercent": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "warmupBusinessType": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "warmupScheduleEnabled": {
                    "type": "boolean"
                  },
                  "warmupTimezone": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "warmupWeekdaysOnly": {
                    "type": "boolean"
                  },
                  "warmupStartTime": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86399
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "warmupEndTime": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86399
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "warmupReplyRate": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "advancedPolicy": {
                    "type": "object",
                    "properties": {
                      "engagement": {
                        "type": "object",
                        "properties": {
                          "replyRate": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:replyRate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "replyRate"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:engagement)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "engagement"
                          ]
                        }
                      ]
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:warmupEnabled|warmupFilterTag|warmupIncludeFilterTag|dailyWarmupLimit|warmupRampUp|warmupInitialDailyLimit|warmupDailyIncrement|warmupRandomizedLimitEnabled|warmupRandomizedLimitPercent|warmupBusinessType|warmupScheduleEnabled|warmupTimezone|warmupWeekdaysOnly|warmupStartTime|warmupEndTime|warmupReplyRate|advancedPolicy)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "warmupEnabled",
                    "warmupFilterTag",
                    "warmupIncludeFilterTag",
                    "dailyWarmupLimit",
                    "warmupRampUp",
                    "warmupInitialDailyLimit",
                    "warmupDailyIncrement",
                    "warmupRandomizedLimitEnabled",
                    "warmupRandomizedLimitPercent",
                    "warmupBusinessType",
                    "warmupScheduleEnabled",
                    "warmupTimezone",
                    "warmupWeekdaysOnly",
                    "warmupStartTime",
                    "warmupEndTime",
                    "warmupReplyRate",
                    "advancedPolicy"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 17
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "patch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|patch)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "patch"
              ]
            }
          },
          {
            "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": [
                  "toggle"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "enabled"
                ],
                "patternProperties": {
                  "^(?!(?:enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "enabled"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "send_test"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "to": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "required": [
                  "to"
                ],
                "patternProperties": {
                  "^(?!(?:to)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "to"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "bulk_enable"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "inboxIds",
                  "enabled"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "enabled"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "bulk_policy"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "policy": {
                    "type": "object",
                    "properties": {
                      "engagement": {
                        "type": "object",
                        "properties": {
                          "replyRate": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          }
                        },
                        "required": [
                          "replyRate"
                        ],
                        "patternProperties": {
                          "^(?!(?:replyRate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "replyRate"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "engagement"
                    ],
                    "patternProperties": {
                      "^(?!(?:engagement)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "engagement"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "inboxIds",
                  "policy"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|policy)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "policy"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "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$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "emailAddress": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "google_workspace",
                          "microsoft_365",
                          "other"
                        ]
                      },
                      "warmupEnabled": {
                        "type": "boolean"
                      },
                      "isPlacementTestRecipient": {
                        "type": "boolean"
                      },
                      "warmupFilterTag": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupIncludeFilterTag": {
                        "type": "boolean"
                      },
                      "dailyWarmupLimit": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupRampUp": {
                        "type": "boolean"
                      },
                      "warmupInitialDailyLimit": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupDailyIncrement": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupRandomizedLimitEnabled": {
                        "type": "boolean"
                      },
                      "warmupRandomizedLimitPercent": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupBusinessType": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupScheduleEnabled": {
                        "type": "boolean"
                      },
                      "warmupTimezone": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupWeekdaysOnly": {
                        "type": "boolean"
                      },
                      "warmupStartTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86399
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupEndTime": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 86399
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupReplyRate": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupStartedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "pool": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "configId": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "underfillStrategy": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "configId",
                              "name",
                              "underfillStrategy"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|configId|name|underfillStrategy)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "configId",
                                "name",
                                "underfillStrategy"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "policyOverride": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "engagement": {
                                "type": "object",
                                "properties": {
                                  "replyRate": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 100
                                  }
                                },
                                "patternProperties": {
                                  "^(?!(?:replyRate)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "replyRate"
                                      ]
                                    }
                                  ]
                                }
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:engagement)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "engagement"
                                  ]
                                }
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "effectivePolicy": {
                        "$ref": "#/$defs/Union_"
                      }
                    },
                    "required": [
                      "id",
                      "emailAddress",
                      "provider",
                      "warmupEnabled",
                      "isPlacementTestRecipient",
                      "warmupFilterTag",
                      "warmupIncludeFilterTag",
                      "dailyWarmupLimit",
                      "warmupRampUp",
                      "warmupInitialDailyLimit",
                      "warmupDailyIncrement",
                      "warmupRandomizedLimitEnabled",
                      "warmupRandomizedLimitPercent",
                      "warmupBusinessType",
                      "warmupScheduleEnabled",
                      "warmupTimezone",
                      "warmupWeekdaysOnly",
                      "warmupStartTime",
                      "warmupEndTime",
                      "warmupReplyRate",
                      "warmupStartedAt",
                      "pool",
                      "policyOverride",
                      "effectivePolicy"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|emailAddress|provider|warmupEnabled|isPlacementTestRecipient|warmupFilterTag|warmupIncludeFilterTag|dailyWarmupLimit|warmupRampUp|warmupInitialDailyLimit|warmupDailyIncrement|warmupRandomizedLimitEnabled|warmupRandomizedLimitPercent|warmupBusinessType|warmupScheduleEnabled|warmupTimezone|warmupWeekdaysOnly|warmupStartTime|warmupEndTime|warmupReplyRate|warmupStartedAt|pool|policyOverride|effectivePolicy)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "emailAddress",
                        "provider",
                        "warmupEnabled",
                        "isPlacementTestRecipient",
                        "warmupFilterTag",
                        "warmupIncludeFilterTag",
                        "dailyWarmupLimit",
                        "warmupRampUp",
                        "warmupInitialDailyLimit",
                        "warmupDailyIncrement",
                        "warmupRandomizedLimitEnabled",
                        "warmupRandomizedLimitPercent",
                        "warmupBusinessType",
                        "warmupScheduleEnabled",
                        "warmupTimezone",
                        "warmupWeekdaysOnly",
                        "warmupStartTime",
                        "warmupEndTime",
                        "warmupReplyRate",
                        "warmupStartedAt",
                        "pool",
                        "policyOverride",
                        "effectivePolicy"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "warmupEnabled": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "warmupEnabled"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|warmupEnabled)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "warmupEnabled"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "outcomes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "inboxId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "updated",
                                "skipped",
                                "failed"
                              ]
                            },
                            "reason": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "inboxId",
                            "status",
                            "reason"
                          ],
                          "patternProperties": {
                            "^(?!(?:inboxId|status|reason)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "inboxId",
                              "status",
                              "reason"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "outcomes"
                    ],
                    "patternProperties": {
                      "^(?!(?:outcomes)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "outcomes"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "requestId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "operation": {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    },
                    "required": [
                      "runId",
                      "requestId",
                      "operation"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|requestId|operation)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "requestId",
                        "operation"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "emailAddress": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "google_workspace",
                              "microsoft_365",
                              "other"
                            ]
                          },
                          "warmupEnabled": {
                            "type": "boolean"
                          },
                          "isPlacementTestRecipient": {
                            "type": "boolean"
                          },
                          "warmupFilterTag": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupIncludeFilterTag": {
                            "type": "boolean"
                          },
                          "dailyWarmupLimit": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupRampUp": {
                            "type": "boolean"
                          },
                          "warmupInitialDailyLimit": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupDailyIncrement": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupRandomizedLimitEnabled": {
                            "type": "boolean"
                          },
                          "warmupRandomizedLimitPercent": {
                            "anyOf": [
                              {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupBusinessType": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupScheduleEnabled": {
                            "type": "boolean"
                          },
                          "warmupTimezone": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupWeekdaysOnly": {
                            "type": "boolean"
                          },
                          "warmupStartTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86399
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupEndTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86399
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupReplyRate": {
                            "anyOf": [
                              {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupStartedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "pool": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/OpaqueId"
                                  },
                                  "configId": {
                                    "$ref": "#/$defs/OpaqueId"
                                  },
                                  "name": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "underfillStrategy": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "configId",
                                  "name",
                                  "underfillStrategy"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|configId|name|underfillStrategy)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "configId",
                                    "name",
                                    "underfillStrategy"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "policyOverride": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "engagement": {
                                    "type": "object",
                                    "properties": {
                                      "replyRate": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 100
                                      }
                                    },
                                    "patternProperties": {
                                      "^(?!(?:replyRate)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "replyRate"
                                          ]
                                        }
                                      ]
                                    }
                                  }
                                },
                                "patternProperties": {
                                  "^(?!(?:engagement)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "engagement"
                                      ]
                                    }
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectivePolicy": {
                            "$ref": "#/$defs/Union_"
                          }
                        },
                        "required": [
                          "id",
                          "emailAddress",
                          "provider",
                          "warmupEnabled",
                          "isPlacementTestRecipient",
                          "warmupFilterTag",
                          "warmupIncludeFilterTag",
                          "dailyWarmupLimit",
                          "warmupRampUp",
                          "warmupInitialDailyLimit",
                          "warmupDailyIncrement",
                          "warmupRandomizedLimitEnabled",
                          "warmupRandomizedLimitPercent",
                          "warmupBusinessType",
                          "warmupScheduleEnabled",
                          "warmupTimezone",
                          "warmupWeekdaysOnly",
                          "warmupStartTime",
                          "warmupEndTime",
                          "warmupReplyRate",
                          "warmupStartedAt",
                          "pool",
                          "policyOverride",
                          "effectivePolicy"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|emailAddress|provider|warmupEnabled|isPlacementTestRecipient|warmupFilterTag|warmupIncludeFilterTag|dailyWarmupLimit|warmupRampUp|warmupInitialDailyLimit|warmupDailyIncrement|warmupRandomizedLimitEnabled|warmupRandomizedLimitPercent|warmupBusinessType|warmupScheduleEnabled|warmupTimezone|warmupWeekdaysOnly|warmupStartTime|warmupEndTime|warmupReplyRate|warmupStartedAt|pool|policyOverride|effectivePolicy)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "emailAddress",
                            "provider",
                            "warmupEnabled",
                            "isPlacementTestRecipient",
                            "warmupFilterTag",
                            "warmupIncludeFilterTag",
                            "dailyWarmupLimit",
                            "warmupRampUp",
                            "warmupInitialDailyLimit",
                            "warmupDailyIncrement",
                            "warmupRandomizedLimitEnabled",
                            "warmupRandomizedLimitPercent",
                            "warmupBusinessType",
                            "warmupScheduleEnabled",
                            "warmupTimezone",
                            "warmupWeekdaysOnly",
                            "warmupStartTime",
                            "warmupEndTime",
                            "warmupReplyRate",
                            "warmupStartedAt",
                            "pool",
                            "policyOverride",
                            "effectivePolicy"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "warmupEnabled": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "warmupEnabled"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|warmupEnabled)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "warmupEnabled"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "outcomes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "inboxId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "updated",
                                    "skipped",
                                    "failed"
                                  ]
                                },
                                "reason": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "inboxId",
                                "status",
                                "reason"
                              ],
                              "patternProperties": {
                                "^(?!(?:inboxId|status|reason)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "inboxId",
                                  "status",
                                  "reason"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "outcomes"
                        ],
                        "patternProperties": {
                          "^(?!(?:outcomes)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "outcomes"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "requestId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "operation": {
                            "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"
                              },
                              "statusUrl": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HttpUrl"
                                  },
                                  {
                                    "$ref": "#/$defs/HttpResourcePath"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "waiting_for_user",
                                  "succeeded",
                                  "partially_succeeded",
                                  "failed",
                                  "canceled",
                                  "canceling"
                                ]
                              },
                              "acceptedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "progress": {
                                "type": "object",
                                "properties": {
                                  "completed": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "message": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "required": [
                                  "completed"
                                ],
                                "patternProperties": {
                                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "completed",
                                    "total",
                                    "message"
                                  ]
                                }
                              },
                              "canCancel": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "statusUrl",
                              "state",
                              "acceptedAt",
                              "canCancel"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "statusUrl",
                                "state",
                                "acceptedAt",
                                "progress",
                                "canCancel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "runId",
                          "requestId",
                          "operation"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|requestId|operation)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "requestId",
                            "operation"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_warmup"
      },
      "scopes": [
        "inbox:warmup_manage"
      ],
      "bundles": [
        "inbox_operations"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxSettings.toggleWarmup",
        "inboxWarmupSettings.get",
        "inboxWarmupSettings.update",
        "inboxWarmupSettings.sendTest",
        "inboxBulk.setWarmupEnabled",
        "inboxBulk.updateWarmupPolicy"
      ],
      "invocations": [
        {
          "operationId": "inboxSettings.toggleWarmup",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/warmup",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxWarmupSettings.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/warmup-settings",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxWarmupSettings.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/warmup-settings",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxWarmupSettings.sendTest",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/warmup-settings/test",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxBulk.setWarmupEnabled",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/inboxes/bulk/warmup",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxBulk.updateWarmupPolicy",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/inboxes/bulk/warmup-policy",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "get"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "update"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "patch": {
                "type": "object",
                "properties": {
                  "warmupEnabled": {
                    "type": "boolean"
                  },
                  "warmupFilterTag": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "warmupIncludeFilterTag": {
                    "type": "boolean"
                  },
                  "dailyWarmupLimit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50
                  },
                  "warmupRampUp": {
                    "type": "boolean"
                  },
                  "warmupInitialDailyLimit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50
                  },
                  "warmupDailyIncrement": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20
                  },
                  "warmupRandomizedLimitEnabled": {
                    "type": "boolean"
                  },
                  "warmupRandomizedLimitPercent": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "warmupBusinessType": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "warmupScheduleEnabled": {
                    "type": "boolean"
                  },
                  "warmupTimezone": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "warmupWeekdaysOnly": {
                    "type": "boolean"
                  },
                  "warmupStartTime": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86399
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "warmupEndTime": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86399
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "warmupReplyRate": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "advancedPolicy": {
                    "type": "object",
                    "properties": {
                      "engagement": {
                        "type": "object",
                        "properties": {
                          "replyRate": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:replyRate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "replyRate"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:engagement)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "engagement"
                          ]
                        }
                      ]
                    }
                  }
                },
                "patternProperties": {
                  "^(?!(?:warmupEnabled|warmupFilterTag|warmupIncludeFilterTag|dailyWarmupLimit|warmupRampUp|warmupInitialDailyLimit|warmupDailyIncrement|warmupRandomizedLimitEnabled|warmupRandomizedLimitPercent|warmupBusinessType|warmupScheduleEnabled|warmupTimezone|warmupWeekdaysOnly|warmupStartTime|warmupEndTime|warmupReplyRate|advancedPolicy)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "warmupEnabled",
                    "warmupFilterTag",
                    "warmupIncludeFilterTag",
                    "dailyWarmupLimit",
                    "warmupRampUp",
                    "warmupInitialDailyLimit",
                    "warmupDailyIncrement",
                    "warmupRandomizedLimitEnabled",
                    "warmupRandomizedLimitPercent",
                    "warmupBusinessType",
                    "warmupScheduleEnabled",
                    "warmupTimezone",
                    "warmupWeekdaysOnly",
                    "warmupStartTime",
                    "warmupEndTime",
                    "warmupReplyRate",
                    "advancedPolicy"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 17
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "patch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|patch)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "patch"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "toggle"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "enabled"
                ],
                "patternProperties": {
                  "^(?!(?:enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "enabled"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "send_test"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "to": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "required": [
                  "to"
                ],
                "patternProperties": {
                  "^(?!(?:to)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "to"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "bulk_enable"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "inboxIds",
                  "enabled"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|enabled)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "enabled"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "bulk_policy"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "policy": {
                    "type": "object",
                    "properties": {
                      "engagement": {
                        "type": "object",
                        "properties": {
                          "replyRate": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          }
                        },
                        "required": [
                          "replyRate"
                        ],
                        "patternProperties": {
                          "^(?!(?:replyRate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "replyRate"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "engagement"
                    ],
                    "patternProperties": {
                      "^(?!(?:engagement)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "engagement"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "inboxIds",
                  "policy"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds|policy)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "policy"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "manage_webhooks",
      "description": "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.\n\nUse to manage event subscriptions and to fire a test delivery after the target URL is configured.\n\nDeletion is a separate confirmed capability; the signing secret is write-only and never returned after creation.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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
          }
        }
      },
      "outputSchema": {
        "$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
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_webhooks"
      },
      "scopes": [
        "webhook:read",
        "webhook:create",
        "webhook:update"
      ],
      "bundles": [
        "workspace_settings"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "webhooks.list",
        "webhooks.create",
        "webhooks.update",
        "webhooks.test",
        "webhooks.deliveries",
        "webhooks.delivery",
        "webhooks.retry"
      ],
      "invocations": [
        {
          "operationId": "webhooks.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/webhooks",
          "workspaceScoped": false
        },
        {
          "operationId": "webhooks.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/webhooks",
          "workspaceScoped": false
        },
        {
          "operationId": "webhooks.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/webhooks/:webhookId",
          "workspaceScoped": false
        },
        {
          "operationId": "webhooks.test",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/webhooks/test-delivery",
          "workspaceScoped": false
        },
        {
          "operationId": "webhooks.deliveries",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/webhook-deliveries",
          "workspaceScoped": false
        },
        {
          "operationId": "webhooks.delivery",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/webhook-deliveries/:deliveryId",
          "workspaceScoped": false
        },
        {
          "operationId": "webhooks.retry",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/webhook-deliveries/:deliveryId/retry",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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
          }
        }
      }
    },
    {
      "feature": "commerce",
      "name": "manage_website_routes",
      "description": "Manage workspace website routes independently of domain registrar DNS operations.\n\nUse to list or inspect configured website routes, add a hostname route, update or retire a route, or check its provider reconciliation state. New routes return an opaque ownership TXT challenge; remove only that TXT record when ownershipRecord.removable is true, and retain certificate-validation CNAME, website routing and mail records.\n\nUse manage_domain_dns for registrar DNS records.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  },
                  "routeId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "routeId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|routeId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "routeId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "targetUrl": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "redirect",
                          "proxy"
                        ]
                      },
                      "pathMode": {
                        "type": "string",
                        "enum": [
                          "preserve",
                          "prefix"
                        ]
                      },
                      "hostname": {
                        "$ref": "#/$defs/DomainName"
                      }
                    },
                    "required": [
                      "targetUrl",
                      "mode",
                      "pathMode",
                      "hostname"
                    ],
                    "patternProperties": {
                      "^(?!(?:targetUrl|mode|pathMode|hostname)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "targetUrl",
                        "mode",
                        "pathMode",
                        "hostname"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "save"
                    ]
                  },
                  "routeId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "targetUrl": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "redirect",
                          "proxy"
                        ]
                      },
                      "pathMode": {
                        "type": "string",
                        "enum": [
                          "preserve",
                          "prefix"
                        ]
                      },
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "desiredState": {
                        "type": "string",
                        "enum": [
                          "enabled",
                          "retired"
                        ]
                      }
                    },
                    "required": [
                      "targetUrl",
                      "mode",
                      "pathMode",
                      "expectedRevision",
                      "desiredState"
                    ],
                    "patternProperties": {
                      "^(?!(?:targetUrl|mode|pathMode|expectedRevision|desiredState)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "targetUrl",
                        "mode",
                        "pathMode",
                        "expectedRevision",
                        "desiredState"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "routeId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|routeId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "routeId",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "check"
                    ]
                  },
                  "routeId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "expectedRevision"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "expectedRevision"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "routeId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|routeId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "routeId",
                    "request"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "routes": {
                        "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"
                            },
                            "hostname": {
                              "$ref": "#/$defs/DomainName"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "aws_cloudfront"
                              ]
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "redirect",
                                "proxy"
                              ]
                            },
                            "target": {
                              "type": "string"
                            },
                            "pathMode": {
                              "type": "string",
                              "enum": [
                                "preserve",
                                "prefix"
                              ]
                            },
                            "desiredRevision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "desiredState": {
                              "type": "string",
                              "enum": [
                                "enabled",
                                "retired"
                              ]
                            },
                            "activeProvider": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "aws_cloudfront"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "activeRevision": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "activeMode": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "redirect",
                                    "proxy"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "activeTarget": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "phase": {
                              "type": "string",
                              "enum": [
                                "not_configured",
                                "waiting_dns",
                                "waiting_tls",
                                "waiting_publication",
                                "active",
                                "degraded",
                                "retired",
                                "needs_attention"
                              ]
                            },
                            "reason": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "ownership_required",
                                    "certificate_pending",
                                    "certificate_failed",
                                    "route_pending",
                                    "dns_pending",
                                    "health_mismatch",
                                    "origin_unavailable",
                                    "origin_redirects",
                                    "provider_unavailable",
                                    "provider_drift",
                                    "retiring",
                                    "provider_managed_dns",
                                    "deployment_unconfigured"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "checkedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "ownershipRecord": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "TXT"
                                  ]
                                },
                                "value": {
                                  "type": "string"
                                },
                                "removable": {
                                  "anyOf": [
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "name",
                                  "type",
                                  "value",
                                  "removable"
                                ]
                              }
                            },
                            "validationRecords": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "CNAME"
                                    ]
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "value"
                                ],
                                "patternProperties": {
                                  "^(?!(?:name|type|value)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "name",
                                    "type",
                                    "value"
                                  ]
                                }
                              }
                            },
                            "routingEndpoint": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "hostname",
                            "provider",
                            "mode",
                            "target",
                            "pathMode",
                            "desiredRevision",
                            "desiredState",
                            "activeProvider",
                            "activeRevision",
                            "activeMode",
                            "activeTarget",
                            "phase",
                            "reason",
                            "checkedAt",
                            "ownershipRecord",
                            "validationRecords",
                            "routingEndpoint"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|hostname|provider|mode|target|pathMode|desiredRevision|desiredState|activeProvider|activeRevision|activeMode|activeTarget|phase|reason|checkedAt|ownershipRecord|validationRecords|routingEndpoint)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "hostname",
                              "provider",
                              "mode",
                              "target",
                              "pathMode",
                              "desiredRevision",
                              "desiredState",
                              "activeProvider",
                              "activeRevision",
                              "activeMode",
                              "activeTarget",
                              "phase",
                              "reason",
                              "checkedAt",
                              "ownershipRecord",
                              "validationRecords",
                              "routingEndpoint"
                            ]
                          }
                        }
                      },
                      "truncated": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "routes",
                      "truncated"
                    ],
                    "patternProperties": {
                      "^(?!(?:routes|truncated)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "routes",
                        "truncated"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "route": {
                        "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"
                          },
                          "hostname": {
                            "$ref": "#/$defs/DomainName"
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "aws_cloudfront"
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "redirect",
                              "proxy"
                            ]
                          },
                          "target": {
                            "type": "string"
                          },
                          "pathMode": {
                            "type": "string",
                            "enum": [
                              "preserve",
                              "prefix"
                            ]
                          },
                          "desiredRevision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "desiredState": {
                            "type": "string",
                            "enum": [
                              "enabled",
                              "retired"
                            ]
                          },
                          "activeProvider": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "aws_cloudfront"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activeRevision": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activeMode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "redirect",
                                  "proxy"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activeTarget": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phase": {
                            "type": "string",
                            "enum": [
                              "not_configured",
                              "waiting_dns",
                              "waiting_tls",
                              "waiting_publication",
                              "active",
                              "degraded",
                              "retired",
                              "needs_attention"
                            ]
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "ownership_required",
                                  "certificate_pending",
                                  "certificate_failed",
                                  "route_pending",
                                  "dns_pending",
                                  "health_mismatch",
                                  "origin_unavailable",
                                  "origin_redirects",
                                  "provider_unavailable",
                                  "provider_drift",
                                  "retiring",
                                  "provider_managed_dns",
                                  "deployment_unconfigured"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "checkedAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ownershipRecord": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "TXT"
                                ]
                              },
                              "value": {
                                "type": "string"
                              },
                              "removable": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "type",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "name",
                                "type",
                                "value",
                                "removable"
                              ]
                            }
                          },
                          "validationRecords": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "CNAME"
                                  ]
                                },
                                "value": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:name|type|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "name",
                                  "type",
                                  "value"
                                ]
                              }
                            }
                          },
                          "routingEndpoint": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "hostname",
                          "provider",
                          "mode",
                          "target",
                          "pathMode",
                          "desiredRevision",
                          "desiredState",
                          "activeProvider",
                          "activeRevision",
                          "activeMode",
                          "activeTarget",
                          "phase",
                          "reason",
                          "checkedAt",
                          "ownershipRecord",
                          "validationRecords",
                          "routingEndpoint"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|hostname|provider|mode|target|pathMode|desiredRevision|desiredState|activeProvider|activeRevision|activeMode|activeTarget|phase|reason|checkedAt|ownershipRecord|validationRecords|routingEndpoint)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "hostname",
                            "provider",
                            "mode",
                            "target",
                            "pathMode",
                            "desiredRevision",
                            "desiredState",
                            "activeProvider",
                            "activeRevision",
                            "activeMode",
                            "activeTarget",
                            "phase",
                            "reason",
                            "checkedAt",
                            "ownershipRecord",
                            "validationRecords",
                            "routingEndpoint"
                          ]
                        }
                      },
                      "history": {
                        "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"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "kind": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            },
                            "reason": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "ownership_required",
                                    "certificate_pending",
                                    "certificate_failed",
                                    "route_pending",
                                    "dns_pending",
                                    "health_mismatch",
                                    "origin_unavailable",
                                    "origin_redirects",
                                    "provider_unavailable",
                                    "provider_drift",
                                    "retiring",
                                    "provider_managed_dns",
                                    "deployment_unconfigured"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "occurredAt": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "revision",
                            "kind",
                            "status",
                            "reason",
                            "occurredAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|revision|kind|status|reason|occurredAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "revision",
                              "kind",
                              "status",
                              "reason",
                              "occurredAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "route",
                      "history"
                    ],
                    "patternProperties": {
                      "^(?!(?:route|history)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "route",
                        "history"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "hostname": {
                        "$ref": "#/$defs/DomainName"
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "aws_cloudfront"
                        ]
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "redirect",
                          "proxy"
                        ]
                      },
                      "target": {
                        "type": "string"
                      },
                      "pathMode": {
                        "type": "string",
                        "enum": [
                          "preserve",
                          "prefix"
                        ]
                      },
                      "desiredRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "desiredState": {
                        "type": "string",
                        "enum": [
                          "enabled",
                          "retired"
                        ]
                      },
                      "activeProvider": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "aws_cloudfront"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "activeRevision": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "activeMode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "redirect",
                              "proxy"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "activeTarget": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phase": {
                        "type": "string",
                        "enum": [
                          "not_configured",
                          "waiting_dns",
                          "waiting_tls",
                          "waiting_publication",
                          "active",
                          "degraded",
                          "retired",
                          "needs_attention"
                        ]
                      },
                      "reason": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "ownership_required",
                              "certificate_pending",
                              "certificate_failed",
                              "route_pending",
                              "dns_pending",
                              "health_mismatch",
                              "origin_unavailable",
                              "origin_redirects",
                              "provider_unavailable",
                              "provider_drift",
                              "retiring",
                              "provider_managed_dns",
                              "deployment_unconfigured"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "checkedAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "ownershipRecord": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "TXT"
                            ]
                          },
                          "value": {
                            "type": "string"
                          },
                          "removable": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "name",
                          "type",
                          "value"
                        ],
                        "patternProperties": {
                          "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "name",
                            "type",
                            "value",
                            "removable"
                          ]
                        }
                      },
                      "validationRecords": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "CNAME"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "value"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|type|value)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "type",
                              "value"
                            ]
                          }
                        }
                      },
                      "routingEndpoint": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "hostname",
                      "provider",
                      "mode",
                      "target",
                      "pathMode",
                      "desiredRevision",
                      "desiredState",
                      "activeProvider",
                      "activeRevision",
                      "activeMode",
                      "activeTarget",
                      "phase",
                      "reason",
                      "checkedAt",
                      "ownershipRecord",
                      "validationRecords",
                      "routingEndpoint"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|hostname|provider|mode|target|pathMode|desiredRevision|desiredState|activeProvider|activeRevision|activeMode|activeTarget|phase|reason|checkedAt|ownershipRecord|validationRecords|routingEndpoint)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "hostname",
                        "provider",
                        "mode",
                        "target",
                        "pathMode",
                        "desiredRevision",
                        "desiredState",
                        "activeProvider",
                        "activeRevision",
                        "activeMode",
                        "activeTarget",
                        "phase",
                        "reason",
                        "checkedAt",
                        "ownershipRecord",
                        "validationRecords",
                        "routingEndpoint"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "routes": {
                            "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"
                                },
                                "hostname": {
                                  "$ref": "#/$defs/DomainName"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "aws_cloudfront"
                                  ]
                                },
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "redirect",
                                    "proxy"
                                  ]
                                },
                                "target": {
                                  "type": "string"
                                },
                                "pathMode": {
                                  "type": "string",
                                  "enum": [
                                    "preserve",
                                    "prefix"
                                  ]
                                },
                                "desiredRevision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "desiredState": {
                                  "type": "string",
                                  "enum": [
                                    "enabled",
                                    "retired"
                                  ]
                                },
                                "activeProvider": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "aws_cloudfront"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activeRevision": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activeMode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "redirect",
                                        "proxy"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activeTarget": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "phase": {
                                  "type": "string",
                                  "enum": [
                                    "not_configured",
                                    "waiting_dns",
                                    "waiting_tls",
                                    "waiting_publication",
                                    "active",
                                    "degraded",
                                    "retired",
                                    "needs_attention"
                                  ]
                                },
                                "reason": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "ownership_required",
                                        "certificate_pending",
                                        "certificate_failed",
                                        "route_pending",
                                        "dns_pending",
                                        "health_mismatch",
                                        "origin_unavailable",
                                        "origin_redirects",
                                        "provider_unavailable",
                                        "provider_drift",
                                        "retiring",
                                        "provider_managed_dns",
                                        "deployment_unconfigured"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "checkedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ownershipRecord": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "TXT"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "removable": {
                                      "anyOf": [
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "type",
                                    "value"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "name",
                                      "type",
                                      "value",
                                      "removable"
                                    ]
                                  }
                                },
                                "validationRecords": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "CNAME"
                                        ]
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "value"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:name|type|value)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "name",
                                        "type",
                                        "value"
                                      ]
                                    }
                                  }
                                },
                                "routingEndpoint": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "hostname",
                                "provider",
                                "mode",
                                "target",
                                "pathMode",
                                "desiredRevision",
                                "desiredState",
                                "activeProvider",
                                "activeRevision",
                                "activeMode",
                                "activeTarget",
                                "phase",
                                "reason",
                                "checkedAt",
                                "ownershipRecord",
                                "validationRecords",
                                "routingEndpoint"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|hostname|provider|mode|target|pathMode|desiredRevision|desiredState|activeProvider|activeRevision|activeMode|activeTarget|phase|reason|checkedAt|ownershipRecord|validationRecords|routingEndpoint)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "hostname",
                                  "provider",
                                  "mode",
                                  "target",
                                  "pathMode",
                                  "desiredRevision",
                                  "desiredState",
                                  "activeProvider",
                                  "activeRevision",
                                  "activeMode",
                                  "activeTarget",
                                  "phase",
                                  "reason",
                                  "checkedAt",
                                  "ownershipRecord",
                                  "validationRecords",
                                  "routingEndpoint"
                                ]
                              }
                            }
                          },
                          "truncated": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "routes",
                          "truncated"
                        ],
                        "patternProperties": {
                          "^(?!(?:routes|truncated)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "routes",
                            "truncated"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "route": {
                            "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"
                              },
                              "hostname": {
                                "$ref": "#/$defs/DomainName"
                              },
                              "provider": {
                                "type": "string",
                                "enum": [
                                  "aws_cloudfront"
                                ]
                              },
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "redirect",
                                  "proxy"
                                ]
                              },
                              "target": {
                                "type": "string"
                              },
                              "pathMode": {
                                "type": "string",
                                "enum": [
                                  "preserve",
                                  "prefix"
                                ]
                              },
                              "desiredRevision": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "desiredState": {
                                "type": "string",
                                "enum": [
                                  "enabled",
                                  "retired"
                                ]
                              },
                              "activeProvider": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "aws_cloudfront"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "activeRevision": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "activeMode": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "redirect",
                                      "proxy"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "activeTarget": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "phase": {
                                "type": "string",
                                "enum": [
                                  "not_configured",
                                  "waiting_dns",
                                  "waiting_tls",
                                  "waiting_publication",
                                  "active",
                                  "degraded",
                                  "retired",
                                  "needs_attention"
                                ]
                              },
                              "reason": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "ownership_required",
                                      "certificate_pending",
                                      "certificate_failed",
                                      "route_pending",
                                      "dns_pending",
                                      "health_mismatch",
                                      "origin_unavailable",
                                      "origin_redirects",
                                      "provider_unavailable",
                                      "provider_drift",
                                      "retiring",
                                      "provider_managed_dns",
                                      "deployment_unconfigured"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "checkedAt": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "ownershipRecord": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "TXT"
                                    ]
                                  },
                                  "value": {
                                    "type": "string"
                                  },
                                  "removable": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "value"
                                ],
                                "patternProperties": {
                                  "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "name",
                                    "type",
                                    "value",
                                    "removable"
                                  ]
                                }
                              },
                              "validationRecords": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "CNAME"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "type",
                                    "value"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:name|type|value)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "name",
                                      "type",
                                      "value"
                                    ]
                                  }
                                }
                              },
                              "routingEndpoint": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "hostname",
                              "provider",
                              "mode",
                              "target",
                              "pathMode",
                              "desiredRevision",
                              "desiredState",
                              "activeProvider",
                              "activeRevision",
                              "activeMode",
                              "activeTarget",
                              "phase",
                              "reason",
                              "checkedAt",
                              "ownershipRecord",
                              "validationRecords",
                              "routingEndpoint"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|hostname|provider|mode|target|pathMode|desiredRevision|desiredState|activeProvider|activeRevision|activeMode|activeTarget|phase|reason|checkedAt|ownershipRecord|validationRecords|routingEndpoint)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "hostname",
                                "provider",
                                "mode",
                                "target",
                                "pathMode",
                                "desiredRevision",
                                "desiredState",
                                "activeProvider",
                                "activeRevision",
                                "activeMode",
                                "activeTarget",
                                "phase",
                                "reason",
                                "checkedAt",
                                "ownershipRecord",
                                "validationRecords",
                                "routingEndpoint"
                              ]
                            }
                          },
                          "history": {
                            "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"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "kind": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "reason": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "ownership_required",
                                        "certificate_pending",
                                        "certificate_failed",
                                        "route_pending",
                                        "dns_pending",
                                        "health_mismatch",
                                        "origin_unavailable",
                                        "origin_redirects",
                                        "provider_unavailable",
                                        "provider_drift",
                                        "retiring",
                                        "provider_managed_dns",
                                        "deployment_unconfigured"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "revision",
                                "kind",
                                "status",
                                "reason",
                                "occurredAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|revision|kind|status|reason|occurredAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "revision",
                                  "kind",
                                  "status",
                                  "reason",
                                  "occurredAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "route",
                          "history"
                        ],
                        "patternProperties": {
                          "^(?!(?:route|history)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "route",
                            "history"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "hostname": {
                            "$ref": "#/$defs/DomainName"
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "aws_cloudfront"
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "redirect",
                              "proxy"
                            ]
                          },
                          "target": {
                            "type": "string"
                          },
                          "pathMode": {
                            "type": "string",
                            "enum": [
                              "preserve",
                              "prefix"
                            ]
                          },
                          "desiredRevision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "desiredState": {
                            "type": "string",
                            "enum": [
                              "enabled",
                              "retired"
                            ]
                          },
                          "activeProvider": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "aws_cloudfront"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activeRevision": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activeMode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "redirect",
                                  "proxy"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activeTarget": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phase": {
                            "type": "string",
                            "enum": [
                              "not_configured",
                              "waiting_dns",
                              "waiting_tls",
                              "waiting_publication",
                              "active",
                              "degraded",
                              "retired",
                              "needs_attention"
                            ]
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "ownership_required",
                                  "certificate_pending",
                                  "certificate_failed",
                                  "route_pending",
                                  "dns_pending",
                                  "health_mismatch",
                                  "origin_unavailable",
                                  "origin_redirects",
                                  "provider_unavailable",
                                  "provider_drift",
                                  "retiring",
                                  "provider_managed_dns",
                                  "deployment_unconfigured"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "checkedAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ownershipRecord": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "TXT"
                                ]
                              },
                              "value": {
                                "type": "string"
                              },
                              "removable": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "type",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:name|type|value|removable)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "name",
                                "type",
                                "value",
                                "removable"
                              ]
                            }
                          },
                          "validationRecords": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "CNAME"
                                  ]
                                },
                                "value": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:name|type|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "name",
                                  "type",
                                  "value"
                                ]
                              }
                            }
                          },
                          "routingEndpoint": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "hostname",
                          "provider",
                          "mode",
                          "target",
                          "pathMode",
                          "desiredRevision",
                          "desiredState",
                          "activeProvider",
                          "activeRevision",
                          "activeMode",
                          "activeTarget",
                          "phase",
                          "reason",
                          "checkedAt",
                          "ownershipRecord",
                          "validationRecords",
                          "routingEndpoint"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|hostname|provider|mode|target|pathMode|desiredRevision|desiredState|activeProvider|activeRevision|activeMode|activeTarget|phase|reason|checkedAt|ownershipRecord|validationRecords|routingEndpoint)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "hostname",
                            "provider",
                            "mode",
                            "target",
                            "pathMode",
                            "desiredRevision",
                            "desiredState",
                            "activeProvider",
                            "activeRevision",
                            "activeMode",
                            "activeTarget",
                            "phase",
                            "reason",
                            "checkedAt",
                            "ownershipRecord",
                            "validationRecords",
                            "routingEndpoint"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_website_routes"
      },
      "scopes": [
        "domain:manage_dns"
      ],
      "bundles": [
        "domain_manager"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "websiteRoutes.list",
        "websiteRoutes.get",
        "websiteRoutes.create",
        "websiteRoutes.save",
        "websiteRoutes.check"
      ],
      "invocations": [
        {
          "operationId": "websiteRoutes.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains/website-routes",
          "workspaceScoped": false
        },
        {
          "operationId": "websiteRoutes.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains/website-routes/:routeId",
          "workspaceScoped": false
        },
        {
          "operationId": "websiteRoutes.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/website-routes",
          "workspaceScoped": false
        },
        {
          "operationId": "websiteRoutes.save",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/domains/website-routes/:routeId",
          "workspaceScoped": false
        },
        {
          "operationId": "websiteRoutes.check",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/website-routes/:routeId/check",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  },
                  "routeId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "routeId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|routeId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "routeId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "targetUrl": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "redirect",
                          "proxy"
                        ]
                      },
                      "pathMode": {
                        "type": "string",
                        "enum": [
                          "preserve",
                          "prefix"
                        ]
                      },
                      "hostname": {
                        "$ref": "#/$defs/DomainName"
                      }
                    },
                    "required": [
                      "targetUrl",
                      "mode",
                      "pathMode",
                      "hostname"
                    ],
                    "patternProperties": {
                      "^(?!(?:targetUrl|mode|pathMode|hostname)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "targetUrl",
                        "mode",
                        "pathMode",
                        "hostname"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "save"
                    ]
                  },
                  "routeId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "targetUrl": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "redirect",
                          "proxy"
                        ]
                      },
                      "pathMode": {
                        "type": "string",
                        "enum": [
                          "preserve",
                          "prefix"
                        ]
                      },
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "desiredState": {
                        "type": "string",
                        "enum": [
                          "enabled",
                          "retired"
                        ]
                      }
                    },
                    "required": [
                      "targetUrl",
                      "mode",
                      "pathMode",
                      "expectedRevision",
                      "desiredState"
                    ],
                    "patternProperties": {
                      "^(?!(?:targetUrl|mode|pathMode|expectedRevision|desiredState)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "targetUrl",
                        "mode",
                        "pathMode",
                        "expectedRevision",
                        "desiredState"
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "routeId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|routeId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "routeId",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "check"
                    ]
                  },
                  "routeId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "expectedRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "expectedRevision"
                    ],
                    "patternProperties": {
                      "^(?!(?:expectedRevision)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "expectedRevision"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "routeId",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|routeId|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "routeId",
                    "request"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          }
        }
      }
    },
    {
      "feature": "workflows",
      "name": "manage_workflow_connectors",
      "description": "Retire a connector or change what it exposes: disconnect a provider key, an app connection, an MCP server, or a Clay/Floqer connection; re-read an external or MXToolbox catalog; and replace the tool allowlist an agent block may call on a connected app.\n\nUse to clean up a connector nobody uses, to narrow what an agent block may call through one, or to re-read a catalog after the customer changed something on the provider's side.\n\nDisconnecting is refused while a workflow that needs the provider is live, and is otherwise the thing that pauses those workflows — the result names every one it stopped. Re-reading a catalog can discover that a routine was deleted, which pauses the workflows referencing it. Widening a tool allowlist widens what an unattended agent block may do with the customer's account, so it is a security change, not a setting.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "disconnect_provider"
                ]
              },
              "provider": {
                "$ref": "#/$defs/ProviderKeyConnector"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "provider"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|provider)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "provider"
              ]
            }
          },
          {
            "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": [
                  "disconnect_external"
                ]
              },
              "externalProvider": {
                "$ref": "#/$defs/ExternalWorkflowProvider"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "externalProvider",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|externalProvider|connectionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "externalProvider",
                "connectionId"
              ]
            }
          },
          {
            "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": [
                  "refresh_external_catalog"
                ]
              },
              "externalProvider": {
                "$ref": "#/$defs/ExternalWorkflowProvider"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "externalProvider",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|externalProvider|connectionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "externalProvider",
                "connectionId"
              ]
            }
          },
          {
            "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": [
                  "disconnect_app"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|connectionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "connectionId"
              ]
            }
          },
          {
            "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": [
                  "set_app_tool_permissions"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "toolPermissions": {
                "type": "object",
                "properties": {
                  "toolNames": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "maxItems": 40
                  }
                },
                "required": [
                  "toolNames"
                ],
                "patternProperties": {
                  "^(?!(?:toolNames)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "toolNames"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId",
              "toolPermissions"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|connectionId|toolPermissions)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "connectionId",
                "toolPermissions"
              ]
            }
          },
          {
            "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": [
                  "sync_app"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|connectionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "connectionId"
              ]
            }
          },
          {
            "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": [
                  "remove_mcp_server"
                ]
              },
              "serverId": {
                "$ref": "#/$defs/WorkflowMcpServerId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "serverId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|serverId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "serverId"
              ]
            }
          },
          {
            "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": [
                  "disconnect_mxtoolbox"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|connectionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "connectionId"
              ]
            }
          },
          {
            "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": [
                  "refresh_mxtoolbox_catalog"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|connectionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "connectionId"
              ]
            }
          }
        ],
        "$defs": {
          "ProviderKeyConnector": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor"
            ]
          },
          "ExternalWorkflowProvider": {
            "type": "string",
            "enum": [
              "clay",
              "floqer"
            ]
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "WorkflowMcpServerId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "WorkflowConnectorProvider": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer"
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ExternalWorkflowProvider": {
            "type": "string",
            "enum": [
              "clay",
              "floqer"
            ]
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ConnectorMediumText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "ConnectorLongText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8192
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "WorkflowMcpServerId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "$ref": "#/$defs/WorkflowConnectorProvider"
                      },
                      "connected": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      },
                      "disconnectedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "provider",
                      "connected",
                      "disconnectedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|connected|disconnectedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "connected",
                        "disconnectedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "$ref": "#/$defs/ExternalWorkflowProvider"
                      },
                      "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"
                      },
                      "connected": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      },
                      "disconnectedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "pausedWorkflowIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "provider",
                      "id",
                      "connected",
                      "disconnectedAt",
                      "pausedWorkflowIds"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|id|connected|disconnectedAt|pausedWorkflowIds)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "id",
                        "connected",
                        "disconnectedAt",
                        "pausedWorkflowIds"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "$ref": "#/$defs/ExternalWorkflowProvider"
                      },
                      "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"
                      },
                      "catalog": {
                        "type": "object",
                        "properties": {
                          "fetchedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "workspaceRef": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "targets": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ConnectorMediumText"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ConnectorLongText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "function",
                                    "workflow",
                                    "shortcut"
                                  ]
                                },
                                "inputs": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "key": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "name": {
                                        "$ref": "#/$defs/ConnectorMediumText"
                                      },
                                      "description": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string",
                                          "number",
                                          "integer",
                                          "boolean",
                                          "object",
                                          "array",
                                          "unsupported"
                                        ]
                                      },
                                      "required": {
                                        "type": "boolean"
                                      },
                                      "defaultValue": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/ConnectorMediumText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "key",
                                      "name",
                                      "description",
                                      "type",
                                      "required",
                                      "defaultValue"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:key|name|description|type|required|defaultValue)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "key",
                                        "name",
                                        "description",
                                        "type",
                                        "required",
                                        "defaultValue"
                                      ]
                                    }
                                  },
                                  "maxItems": 100
                                },
                                "outputs": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "maxItems": 100
                                },
                                "available": {
                                  "type": "boolean"
                                },
                                "schemaAvailable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "description",
                                "kind",
                                "inputs",
                                "outputs",
                                "available",
                                "schemaAvailable"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|description|kind|inputs|outputs|available|schemaAvailable)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "description",
                                  "kind",
                                  "inputs",
                                  "outputs",
                                  "available",
                                  "schemaAvailable"
                                ]
                              }
                            },
                            "maxItems": 1000
                          }
                        },
                        "required": [
                          "fetchedAt",
                          "workspaceRef",
                          "targets"
                        ],
                        "patternProperties": {
                          "^(?!(?:fetchedAt|workspaceRef|targets)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "fetchedAt",
                            "workspaceRef",
                            "targets"
                          ]
                        }
                      },
                      "pausedWorkflowIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "provider",
                      "id",
                      "catalog",
                      "pausedWorkflowIds"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|id|catalog|pausedWorkflowIds)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "id",
                        "catalog",
                        "pausedWorkflowIds"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/WorkflowMcpServerId"
                      },
                      "connected": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      },
                      "disconnectedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "connected",
                      "disconnectedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|connected|disconnectedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "connected",
                        "disconnectedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/WorkflowMcpServerId"
                      },
                      "name": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "url": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "composio": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "toolkitSlug": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "custom": {
                                "type": "boolean"
                              },
                              "noAuth": {
                                "type": "boolean"
                              },
                              "authorizationPending": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "toolkitSlug",
                              "custom",
                              "noAuth",
                              "authorizationPending"
                            ],
                            "patternProperties": {
                              "^(?!(?:toolkitSlug|custom|noAuth|authorizationPending)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "toolkitSlug",
                                "custom",
                                "noAuth",
                                "authorizationPending"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "allowedToolNames": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "maxItems": 40
                      },
                      "active": {
                        "type": "boolean"
                      },
                      "authorizationConfigured": {
                        "type": "boolean"
                      },
                      "credentialRefId": {
                        "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"
                          }
                        ]
                      },
                      "lastValidatedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "url",
                      "composio",
                      "allowedToolNames",
                      "active",
                      "authorizationConfigured",
                      "credentialRefId",
                      "lastValidatedAt",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|url|composio|allowedToolNames|active|authorizationConfigured|credentialRefId|lastValidatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "url",
                        "composio",
                        "allowedToolNames",
                        "active",
                        "authorizationConfigured",
                        "credentialRefId",
                        "lastValidatedAt",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/WorkflowMcpServerId"
                      },
                      "syncedCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "id",
                      "syncedCount"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|syncedCount)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "syncedCount"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/WorkflowMcpServerId"
                      },
                      "removed": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "removed"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|removed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "removed"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "enum": [
                          "mxtoolbox"
                        ]
                      },
                      "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"
                      },
                      "connected": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      },
                      "disconnectedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "pausedWorkflowIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "provider",
                      "id",
                      "connected",
                      "disconnectedAt",
                      "pausedWorkflowIds"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|id|connected|disconnectedAt|pausedWorkflowIds)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "id",
                        "connected",
                        "disconnectedAt",
                        "pausedWorkflowIds"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "enum": [
                          "mxtoolbox"
                        ]
                      },
                      "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"
                      },
                      "catalog": {
                        "type": "object",
                        "properties": {
                          "fetchedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "entries": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ConnectorMediumText"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name"
                                ]
                              }
                            },
                            "minItems": 1,
                            "maxItems": 1000
                          }
                        },
                        "required": [
                          "fetchedAt",
                          "entries"
                        ],
                        "patternProperties": {
                          "^(?!(?:fetchedAt|entries)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "fetchedAt",
                            "entries"
                          ]
                        }
                      }
                    },
                    "required": [
                      "provider",
                      "id",
                      "catalog"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|id|catalog)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "id",
                        "catalog"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "$ref": "#/$defs/WorkflowConnectorProvider"
                          },
                          "connected": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          },
                          "disconnectedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "provider",
                          "connected",
                          "disconnectedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|connected|disconnectedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "connected",
                            "disconnectedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "$ref": "#/$defs/ExternalWorkflowProvider"
                          },
                          "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"
                          },
                          "connected": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          },
                          "disconnectedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "pausedWorkflowIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "maxItems": 500
                          }
                        },
                        "required": [
                          "provider",
                          "id",
                          "connected",
                          "disconnectedAt",
                          "pausedWorkflowIds"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|id|connected|disconnectedAt|pausedWorkflowIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "id",
                            "connected",
                            "disconnectedAt",
                            "pausedWorkflowIds"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "$ref": "#/$defs/ExternalWorkflowProvider"
                          },
                          "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"
                          },
                          "catalog": {
                            "type": "object",
                            "properties": {
                              "fetchedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "workspaceRef": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/OpaqueId"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "name": {
                                      "$ref": "#/$defs/ConnectorMediumText"
                                    },
                                    "description": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ConnectorLongText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "function",
                                        "workflow",
                                        "shortcut"
                                      ]
                                    },
                                    "inputs": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "key": {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          "name": {
                                            "$ref": "#/$defs/ConnectorMediumText"
                                          },
                                          "description": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 4096
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "string",
                                              "number",
                                              "integer",
                                              "boolean",
                                              "object",
                                              "array",
                                              "unsupported"
                                            ]
                                          },
                                          "required": {
                                            "type": "boolean"
                                          },
                                          "defaultValue": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/$defs/ConnectorMediumText"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "key",
                                          "name",
                                          "description",
                                          "type",
                                          "required",
                                          "defaultValue"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:key|name|description|type|required|defaultValue)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "key",
                                            "name",
                                            "description",
                                            "type",
                                            "required",
                                            "defaultValue"
                                          ]
                                        }
                                      },
                                      "maxItems": 100
                                    },
                                    "outputs": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "maxItems": 100
                                    },
                                    "available": {
                                      "type": "boolean"
                                    },
                                    "schemaAvailable": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "name",
                                    "description",
                                    "kind",
                                    "inputs",
                                    "outputs",
                                    "available",
                                    "schemaAvailable"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|name|description|kind|inputs|outputs|available|schemaAvailable)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "name",
                                      "description",
                                      "kind",
                                      "inputs",
                                      "outputs",
                                      "available",
                                      "schemaAvailable"
                                    ]
                                  }
                                },
                                "maxItems": 1000
                              }
                            },
                            "required": [
                              "fetchedAt",
                              "workspaceRef",
                              "targets"
                            ],
                            "patternProperties": {
                              "^(?!(?:fetchedAt|workspaceRef|targets)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "fetchedAt",
                                "workspaceRef",
                                "targets"
                              ]
                            }
                          },
                          "pausedWorkflowIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "maxItems": 500
                          }
                        },
                        "required": [
                          "provider",
                          "id",
                          "catalog",
                          "pausedWorkflowIds"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|id|catalog|pausedWorkflowIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "id",
                            "catalog",
                            "pausedWorkflowIds"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/WorkflowMcpServerId"
                          },
                          "connected": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          },
                          "disconnectedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "connected",
                          "disconnectedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|connected|disconnectedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "connected",
                            "disconnectedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/WorkflowMcpServerId"
                          },
                          "name": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "url": {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          "composio": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "toolkitSlug": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "custom": {
                                    "type": "boolean"
                                  },
                                  "noAuth": {
                                    "type": "boolean"
                                  },
                                  "authorizationPending": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "toolkitSlug",
                                  "custom",
                                  "noAuth",
                                  "authorizationPending"
                                ],
                                "patternProperties": {
                                  "^(?!(?:toolkitSlug|custom|noAuth|authorizationPending)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "toolkitSlug",
                                    "custom",
                                    "noAuth",
                                    "authorizationPending"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "allowedToolNames": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 40
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "authorizationConfigured": {
                            "type": "boolean"
                          },
                          "credentialRefId": {
                            "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"
                              }
                            ]
                          },
                          "lastValidatedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "url",
                          "composio",
                          "allowedToolNames",
                          "active",
                          "authorizationConfigured",
                          "credentialRefId",
                          "lastValidatedAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|url|composio|allowedToolNames|active|authorizationConfigured|credentialRefId|lastValidatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "url",
                            "composio",
                            "allowedToolNames",
                            "active",
                            "authorizationConfigured",
                            "credentialRefId",
                            "lastValidatedAt",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/WorkflowMcpServerId"
                          },
                          "syncedCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "id",
                          "syncedCount"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|syncedCount)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "syncedCount"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/WorkflowMcpServerId"
                          },
                          "removed": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "removed"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|removed)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "removed"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "enum": [
                              "mxtoolbox"
                            ]
                          },
                          "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"
                          },
                          "connected": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          },
                          "disconnectedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "pausedWorkflowIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "maxItems": 500
                          }
                        },
                        "required": [
                          "provider",
                          "id",
                          "connected",
                          "disconnectedAt",
                          "pausedWorkflowIds"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|id|connected|disconnectedAt|pausedWorkflowIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "id",
                            "connected",
                            "disconnectedAt",
                            "pausedWorkflowIds"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "enum": [
                              "mxtoolbox"
                            ]
                          },
                          "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"
                          },
                          "catalog": {
                            "type": "object",
                            "properties": {
                              "fetchedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "entries": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "name": {
                                      "$ref": "#/$defs/ConnectorMediumText"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "name"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|name)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "name"
                                    ]
                                  }
                                },
                                "minItems": 1,
                                "maxItems": 1000
                              }
                            },
                            "required": [
                              "fetchedAt",
                              "entries"
                            ],
                            "patternProperties": {
                              "^(?!(?:fetchedAt|entries)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "fetchedAt",
                                "entries"
                              ]
                            }
                          }
                        },
                        "required": [
                          "provider",
                          "id",
                          "catalog"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|id|catalog)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "id",
                            "catalog"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_workflow_connectors"
      },
      "scopes": [
        "integration:update",
        "integration:delete"
      ],
      "bundles": [
        "workflow_connectors"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "workflowConnectors.disconnectApollo",
        "workflowConnectors.disconnectProspeo",
        "workflowConnectors.disconnectConductor",
        "workflowConnectors.disconnectExternal",
        "workflowConnectors.refreshExternalCatalog",
        "workflowIntegrations.permissions",
        "workflowIntegrations.sync",
        "workflowIntegrations.disconnect",
        "workflowMcpServers.remove",
        "workflowDomainHealth.refreshCatalog",
        "workflowDomainHealth.disconnectMxtoolbox"
      ],
      "invocations": [
        {
          "operationId": "workflowConnectors.disconnectApollo",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/apollo",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowConnectors.disconnectProspeo",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/prospeo",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowConnectors.disconnectConductor",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/conductor",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowConnectors.disconnectExternal",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/external/:provider/:connectionId",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowConnectors.refreshExternalCatalog",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/external/:provider/:connectionId/refresh",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowIntegrations.permissions",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/apps/:connectionId/permissions",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowIntegrations.sync",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/apps/:connectionId/sync",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowIntegrations.disconnect",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/apps/:connectionId",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowMcpServers.remove",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/workflows/mcp-servers/:serverId",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowDomainHealth.refreshCatalog",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/mxtoolbox/:connectionId/refresh",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowDomainHealth.disconnectMxtoolbox",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/mxtoolbox/:connectionId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "disconnect_provider"
                ]
              },
              "provider": {
                "$ref": "#/$defs/ProviderKeyConnector"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "provider"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|provider)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "provider"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "disconnect_external"
                ]
              },
              "externalProvider": {
                "$ref": "#/$defs/ExternalWorkflowProvider"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "externalProvider",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|externalProvider|connectionId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "externalProvider",
                    "connectionId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "refresh_external_catalog"
                ]
              },
              "externalProvider": {
                "$ref": "#/$defs/ExternalWorkflowProvider"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "externalProvider",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|externalProvider|connectionId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "externalProvider",
                    "connectionId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "disconnect_app"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|connectionId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "connectionId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "set_app_tool_permissions"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "toolPermissions": {
                "type": "object",
                "properties": {
                  "toolNames": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "maxItems": 40
                  }
                },
                "required": [
                  "toolNames"
                ],
                "patternProperties": {
                  "^(?!(?:toolNames)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "toolNames"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId",
              "toolPermissions"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|connectionId|toolPermissions)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "connectionId",
                    "toolPermissions"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "sync_app"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|connectionId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "connectionId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "remove_mcp_server"
                ]
              },
              "serverId": {
                "$ref": "#/$defs/WorkflowMcpServerId"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "serverId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|serverId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "serverId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "disconnect_mxtoolbox"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|connectionId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "connectionId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "refresh_mxtoolbox_catalog"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|connectionId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "connectionId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ProviderKeyConnector": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor"
            ]
          },
          "ExternalWorkflowProvider": {
            "type": "string",
            "enum": [
              "clay",
              "floqer"
            ]
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "WorkflowMcpServerId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "workflows",
      "name": "manage_workflows",
      "description": "Author a workflow's graph and decide whether it is live: create a draft, save an edit, publish the draft as the runnable version, turn a published workflow on or off, and delete one. Trigger data.campaignFilter uses the same filter as webhook campaignScope: modes all/campaigns/tags/folders/names/rules, ids for selections, match any/all for selected tags and name terms. Rules compose nested AND/OR/NOT: field campaigns/folders/tags with ids, names with terms, tagged/filed with boolean value, or group with rules; root/groups default to match all, tags/names to any, exclude negates each rule. A campaign has many tags but one folder. excludeCampaignIds/excludeTagIds/excludeFolderIds/excludeNameContains, taggedOnly and filedOnly are available in every mode. Folder filters include live descendants. Global exclusions win; deleted references fail closed even inside NOT/OR. This supersedes legacy positiveReplyAllCampaigns/positiveReplyCampaignIds when set.\n\nUse to build or change automation. A draft only has to be well formed, so iterate freely; publishing is the step that checks every runnability rule and freezes what the executor will load.\n\nPublishing or activating a graph that sends mail, enriches contacts, or starts an AI follow-up loop commits the workspace to spending, and needs an active subscription plus — for the thread-automation blocks — the ai_follow_up feature. Deleting ends every run the workflow still owns, including loops waiting on a reply, and cannot be undone. Pausing a workflow that others enrol into alerts them too.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "create"
                ]
              },
              "create": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "recipe": {
                    "type": "string",
                    "enum": [
                      "blank",
                      "positive_reply_to_dialer",
                      "plusvibe_to_dialer",
                      "dialer_to_plusvibe",
                      "positive_reply_labels",
                      "email_health_recovery",
                      "domain_blacklist",
                      "domain_rotation",
                      "inbox_rotation",
                      "thread_follow_up",
                      "no_show_playbook"
                    ]
                  },
                  "callListId": {
                    "$ref": "#/$defs/CallListId"
                  },
                  "sequenceId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|recipe|callListId|sequenceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "recipe",
                    "callListId",
                    "sequenceId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "create"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|create)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "create"
              ]
            }
          },
          {
            "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": [
                  "save"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "save": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "graph": {
                    "type": "object",
                    "properties": {
                      "schemaVersion": {
                        "anyOf": [
                          {
                            "type": "number",
                            "enum": [
                              1
                            ]
                          }
                        ]
                      },
                      "nodes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "type": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128,
                              "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                            },
                            "position": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y"
                              ],
                              "patternProperties": {
                                "^(?!(?:x|y)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "x",
                                  "y"
                                ]
                              }
                            },
                            "data": {
                              "type": "object",
                              "additionalProperties": {
                                "$ref": "#/$defs/Union_"
                              }
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "position",
                            "data"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "type",
                              "position",
                              "data"
                            ]
                          }
                        },
                        "maxItems": 200
                      },
                      "edges": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "source": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "target": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "sourceHandle": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "yes",
                                    "no"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "source",
                            "target"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "source",
                              "target",
                              "sourceHandle"
                            ]
                          }
                        },
                        "maxItems": 400
                      }
                    },
                    "required": [
                      "schemaVersion",
                      "nodes",
                      "edges"
                    ],
                    "patternProperties": {
                      "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "schemaVersion",
                        "nodes",
                        "edges"
                      ]
                    }
                  }
                },
                "required": [
                  "name",
                  "graph"
                ],
                "patternProperties": {
                  "^(?!(?:name|graph)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "graph"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId",
              "save"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|workflowId|save)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "workflowId",
                "save"
              ]
            }
          },
          {
            "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": [
                  "publish"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "workflowId"
              ]
            }
          },
          {
            "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": [
                  "activate"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "workflowId"
              ]
            }
          },
          {
            "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": [
                  "pause"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "workflowId"
              ]
            }
          },
          {
            "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": [
                  "remove"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "workflowId"
              ]
            }
          }
        ],
        "$defs": {
          "CallListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "WorkflowVersionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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": 120
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "active",
                          "paused",
                          "deleting"
                        ]
                      },
                      "publishedVersionId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/WorkflowVersionId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "triggerType": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "alertCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "version": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "$ref": "#/$defs/WorkflowVersionId"
                              },
                              "workflowId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "version": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "graph": {
                                "type": "object",
                                "properties": {
                                  "schemaVersion": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "enum": [
                                          1
                                        ]
                                      }
                                    ]
                                  },
                                  "nodes": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "type": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128,
                                          "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                        },
                                        "position": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:x|y)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "x",
                                              "y"
                                            ]
                                          }
                                        },
                                        "data": {
                                          "type": "object",
                                          "additionalProperties": {
                                            "$ref": "#/$defs/Union_"
                                          }
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "position",
                                        "data"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "id",
                                          "type",
                                          "position",
                                          "data"
                                        ]
                                      }
                                    },
                                    "maxItems": 200
                                  },
                                  "edges": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "source": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "target": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "sourceHandle": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "yes",
                                                "no"
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "source",
                                        "target"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "id",
                                          "source",
                                          "target",
                                          "sourceHandle"
                                        ]
                                      }
                                    },
                                    "maxItems": 400
                                  }
                                },
                                "required": [
                                  "schemaVersion",
                                  "nodes",
                                  "edges"
                                ],
                                "patternProperties": {
                                  "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "schemaVersion",
                                    "nodes",
                                    "edges"
                                  ]
                                }
                              },
                              "publishedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "id",
                              "workflowId",
                              "version",
                              "graph",
                              "publishedAt",
                              "createdAt",
                              "updatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "workflowId",
                                "version",
                                "graph",
                                "publishedAt",
                                "createdAt",
                                "updatedAt"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "status",
                      "publishedVersionId",
                      "triggerType",
                      "alertCount",
                      "createdAt",
                      "updatedAt",
                      "version"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt|version)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "status",
                        "publishedVersionId",
                        "triggerType",
                        "alertCount",
                        "createdAt",
                        "updatedAt",
                        "version"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/WorkflowVersionId"
                      },
                      "workflowId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "version": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "graph": {
                        "type": "object",
                        "properties": {
                          "schemaVersion": {
                            "anyOf": [
                              {
                                "type": "number",
                                "enum": [
                                  1
                                ]
                              }
                            ]
                          },
                          "nodes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "type": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128,
                                  "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                },
                                "position": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:x|y)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "x",
                                      "y"
                                    ]
                                  }
                                },
                                "data": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "$ref": "#/$defs/Union_"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "position",
                                "data"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "type",
                                  "position",
                                  "data"
                                ]
                              }
                            },
                            "maxItems": 200
                          },
                          "edges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "source": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "target": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "sourceHandle": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "yes",
                                        "no"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "source",
                                "target"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "source",
                                  "target",
                                  "sourceHandle"
                                ]
                              }
                            },
                            "maxItems": 400
                          }
                        },
                        "required": [
                          "schemaVersion",
                          "nodes",
                          "edges"
                        ],
                        "patternProperties": {
                          "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "schemaVersion",
                            "nodes",
                            "edges"
                          ]
                        }
                      },
                      "publishedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "workflowId",
                      "version",
                      "graph",
                      "publishedAt",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "workflowId",
                        "version",
                        "graph",
                        "publishedAt",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "workflowId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "publishedVersionId": {
                        "$ref": "#/$defs/WorkflowVersionId"
                      },
                      "version": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "active",
                          "paused",
                          "deleting"
                        ]
                      }
                    },
                    "required": [
                      "workflowId",
                      "publishedVersionId",
                      "version",
                      "status"
                    ],
                    "patternProperties": {
                      "^(?!(?:workflowId|publishedVersionId|version|status)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "workflowId",
                        "publishedVersionId",
                        "version",
                        "status"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "workflowId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "active",
                          "paused",
                          "deleting"
                        ]
                      },
                      "alertedDependentWorkflowIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "workflowId",
                      "status",
                      "alertedDependentWorkflowIds"
                    ],
                    "patternProperties": {
                      "^(?!(?:workflowId|status|alertedDependentWorkflowIds)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "workflowId",
                        "status",
                        "alertedDependentWorkflowIds"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "workflowId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "canceledRunIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "maxItems": 1000
                      }
                    },
                    "required": [
                      "workflowId",
                      "canceledRunIds"
                    ],
                    "patternProperties": {
                      "^(?!(?:workflowId|canceledRunIds)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "workflowId",
                        "canceledRunIds"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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": 120
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "deleting"
                            ]
                          },
                          "publishedVersionId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/WorkflowVersionId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "triggerType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "alertCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "version": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/WorkflowVersionId"
                                  },
                                  "workflowId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "version": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "graph": {
                                    "type": "object",
                                    "properties": {
                                      "schemaVersion": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "enum": [
                                              1
                                            ]
                                          }
                                        ]
                                      },
                                      "nodes": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "type": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128,
                                              "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                            },
                                            "position": {
                                              "type": "object",
                                              "properties": {
                                                "x": {
                                                  "type": "number"
                                                },
                                                "y": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "x",
                                                "y"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:x|y)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "x",
                                                  "y"
                                                ]
                                              }
                                            },
                                            "data": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "position",
                                            "data"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "id",
                                              "type",
                                              "position",
                                              "data"
                                            ]
                                          }
                                        },
                                        "maxItems": 200
                                      },
                                      "edges": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "source": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "target": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "sourceHandle": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "yes",
                                                    "no"
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "source",
                                            "target"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "id",
                                              "source",
                                              "target",
                                              "sourceHandle"
                                            ]
                                          }
                                        },
                                        "maxItems": 400
                                      }
                                    },
                                    "required": [
                                      "schemaVersion",
                                      "nodes",
                                      "edges"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "schemaVersion",
                                        "nodes",
                                        "edges"
                                      ]
                                    }
                                  },
                                  "publishedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "createdAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "updatedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  }
                                },
                                "required": [
                                  "id",
                                  "workflowId",
                                  "version",
                                  "graph",
                                  "publishedAt",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "workflowId",
                                    "version",
                                    "graph",
                                    "publishedAt",
                                    "createdAt",
                                    "updatedAt"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "status",
                          "publishedVersionId",
                          "triggerType",
                          "alertCount",
                          "createdAt",
                          "updatedAt",
                          "version"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt|version)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "status",
                            "publishedVersionId",
                            "triggerType",
                            "alertCount",
                            "createdAt",
                            "updatedAt",
                            "version"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/WorkflowVersionId"
                          },
                          "workflowId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "version": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "graph": {
                            "type": "object",
                            "properties": {
                              "schemaVersion": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "enum": [
                                      1
                                    ]
                                  }
                                ]
                              },
                              "nodes": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "type": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128,
                                      "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                    },
                                    "position": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:x|y)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "x",
                                          "y"
                                        ]
                                      }
                                    },
                                    "data": {
                                      "type": "object",
                                      "additionalProperties": {
                                        "$ref": "#/$defs/Union_"
                                      }
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "position",
                                    "data"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "type",
                                      "position",
                                      "data"
                                    ]
                                  }
                                },
                                "maxItems": 200
                              },
                              "edges": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "source": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "target": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "sourceHandle": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "yes",
                                            "no"
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "source",
                                    "target"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "source",
                                      "target",
                                      "sourceHandle"
                                    ]
                                  }
                                },
                                "maxItems": 400
                              }
                            },
                            "required": [
                              "schemaVersion",
                              "nodes",
                              "edges"
                            ],
                            "patternProperties": {
                              "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "schemaVersion",
                                "nodes",
                                "edges"
                              ]
                            }
                          },
                          "publishedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "workflowId",
                          "version",
                          "graph",
                          "publishedAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "workflowId",
                            "version",
                            "graph",
                            "publishedAt",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "workflowId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "publishedVersionId": {
                            "$ref": "#/$defs/WorkflowVersionId"
                          },
                          "version": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "deleting"
                            ]
                          }
                        },
                        "required": [
                          "workflowId",
                          "publishedVersionId",
                          "version",
                          "status"
                        ],
                        "patternProperties": {
                          "^(?!(?:workflowId|publishedVersionId|version|status)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "workflowId",
                            "publishedVersionId",
                            "version",
                            "status"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "workflowId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "deleting"
                            ]
                          },
                          "alertedDependentWorkflowIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "maxItems": 500
                          }
                        },
                        "required": [
                          "workflowId",
                          "status",
                          "alertedDependentWorkflowIds"
                        ],
                        "patternProperties": {
                          "^(?!(?:workflowId|status|alertedDependentWorkflowIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "workflowId",
                            "status",
                            "alertedDependentWorkflowIds"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "workflowId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "canceledRunIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "maxItems": 1000
                          }
                        },
                        "required": [
                          "workflowId",
                          "canceledRunIds"
                        ],
                        "patternProperties": {
                          "^(?!(?:workflowId|canceledRunIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "workflowId",
                            "canceledRunIds"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_workflows"
      },
      "scopes": [
        "workflow:create",
        "workflow:update",
        "workflow:publish",
        "workflow:delete"
      ],
      "bundles": [
        "workflow_automation"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "workflows.create",
        "workflows.save",
        "workflows.publish",
        "workflows.setStatus",
        "workflows.remove"
      ],
      "invocations": [
        {
          "operationId": "workflows.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.save",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.publish",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/publish",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.setStatus",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/status",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.remove",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "create"
                ]
              },
              "create": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "recipe": {
                    "type": "string",
                    "enum": [
                      "blank",
                      "positive_reply_to_dialer",
                      "plusvibe_to_dialer",
                      "dialer_to_plusvibe",
                      "positive_reply_labels",
                      "email_health_recovery",
                      "domain_blacklist",
                      "domain_rotation",
                      "inbox_rotation",
                      "thread_follow_up",
                      "no_show_playbook"
                    ]
                  },
                  "callListId": {
                    "$ref": "#/$defs/CallListId"
                  },
                  "sequenceId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|recipe|callListId|sequenceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "recipe",
                    "callListId",
                    "sequenceId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "create"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|create)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "create"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "save"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "save": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "graph": {
                    "type": "object",
                    "properties": {
                      "schemaVersion": {
                        "anyOf": [
                          {
                            "type": "number",
                            "enum": [
                              1
                            ]
                          }
                        ]
                      },
                      "nodes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "type": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128,
                              "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                            },
                            "position": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y"
                              ],
                              "patternProperties": {
                                "^(?!(?:x|y)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "x",
                                  "y"
                                ]
                              }
                            },
                            "data": {
                              "type": "object",
                              "additionalProperties": {
                                "$ref": "#/$defs/Union_"
                              }
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "position",
                            "data"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "type",
                              "position",
                              "data"
                            ]
                          }
                        },
                        "maxItems": 200
                      },
                      "edges": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "source": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "target": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "sourceHandle": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "yes",
                                    "no"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "source",
                            "target"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "source",
                              "target",
                              "sourceHandle"
                            ]
                          }
                        },
                        "maxItems": 400
                      }
                    },
                    "required": [
                      "schemaVersion",
                      "nodes",
                      "edges"
                    ],
                    "patternProperties": {
                      "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "schemaVersion",
                        "nodes",
                        "edges"
                      ]
                    }
                  }
                },
                "required": [
                  "name",
                  "graph"
                ],
                "patternProperties": {
                  "^(?!(?:name|graph)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "graph"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId",
              "save"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId|save)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "workflowId",
                    "save"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "publish"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "workflowId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "activate"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "workflowId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "pause"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "workflowId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "remove"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "workflowId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "CallListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "manage_workspace_branding",
      "description": "Set or clear a workspace's logo, deleting the prior public asset on change.\n\nUse to update a workspace's public logo asset.\n\nOnly accepts a hosted public asset URL; it does not upload raw bytes.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "set"
                    ]
                  }
                ]
              },
              "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"
              },
              "logo": {
                "$ref": "#/$defs/HttpUrl"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "logo"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|logo)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "logo"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          }
        ],
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "ManageWorkspaceBrandingInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "set"
                        ]
                      }
                    ]
                  },
                  "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"
                  },
                  "logo": {
                    "$ref": "#/$defs/HttpUrl"
                  }
                },
                "required": [
                  "action",
                  "workspaceId",
                  "logo"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId|logo)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "logo"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "delete"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "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": {
            "$ref": "#/$defs/ShortText"
          },
          "slug": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "logo": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "logo",
          "createdAt"
        ],
        "patternProperties": {
          "^(?!(?:id|name|slug|logo|createdAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "name",
            "slug",
            "logo",
            "createdAt"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_workspace_branding"
      },
      "scopes": [
        "workspace:update"
      ],
      "bundles": [
        "workspace_administration"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "workspaces.setLogo",
        "workspaces.deleteLogo"
      ],
      "invocations": [
        {
          "operationId": "workspaces.setLogo",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/logo",
          "workspaceScoped": false
        },
        {
          "operationId": "workspaces.deleteLogo",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/logo",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "set"
                    ]
                  }
                ]
              },
              "logo": {
                "$ref": "#/$defs/HttpUrl"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "logo"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|logo)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "logo"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "ManageWorkspaceBrandingInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "set"
                        ]
                      }
                    ]
                  },
                  "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"
                  },
                  "logo": {
                    "$ref": "#/$defs/HttpUrl"
                  }
                },
                "required": [
                  "action",
                  "workspaceId",
                  "logo"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId|logo)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "logo"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "delete"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "manage_workspace_lifecycle",
      "description": "Create, update, delete, or leave a workspace; delete/leave are human-gated and irreversible.\n\nUse to manage a workspace's identity and lifecycle under the caller's permission.\n\nDeletion cascades and is owner-only; leave/remove govern membership, not the workspace row.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "name": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "slug": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            },
            "required": [
              "action",
              "name"
            ],
            "patternProperties": {
              "^(?!(?:action|name|slug|metadata)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "name",
                "slug",
                "metadata"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "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"
              },
              "name": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "slug": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|name|slug|metadata)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "name",
                "slug",
                "metadata"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "leave"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          }
        ],
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ManageWorkspaceLifecycleInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "create"
                        ]
                      }
                    ]
                  },
                  "name": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "slug": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/Union_"
                    }
                  }
                },
                "required": [
                  "action",
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:action|name|slug|metadata)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "name",
                    "slug",
                    "metadata"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "update"
                        ]
                      }
                    ]
                  },
                  "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"
                  },
                  "name": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "slug": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/Union_"
                    }
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId|name|slug|metadata)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "name",
                    "slug",
                    "metadata"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "delete"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "leave"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ManageWorkspaceLifecycleOutput": {
            "anyOf": [
              {
                "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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "slug": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "logo": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "createdAt": {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "slug",
                  "logo",
                  "createdAt"
                ],
                "patternProperties": {
                  "^(?!(?:id|name|slug|logo|createdAt)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name",
                    "slug",
                    "logo",
                    "createdAt"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "deleted": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "deleted"
                ],
                "patternProperties": {
                  "^(?!(?:deleted)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "deleted"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "left": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "left"
                ],
                "patternProperties": {
                  "^(?!(?:left)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "left"
                      ]
                    }
                  ]
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/ManageWorkspaceLifecycleOutput"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/ManageWorkspaceLifecycleOutput"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_workspace_lifecycle"
      },
      "scopes": [
        "workspace:update",
        "workspace:delete",
        "workspaceMember:remove"
      ],
      "bundles": [
        "workspace_administration"
      ],
      "risk": "destructive",
      "idempotency": "required",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "workspaces.create",
        "workspaces.update",
        "workspaces.delete",
        "workspaces.leave"
      ],
      "invocations": [
        {
          "operationId": "workspaces.create",
          "method": "POST",
          "path": "/v1/workspaces",
          "workspaceScoped": false
        },
        {
          "operationId": "workspaces.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId",
          "workspaceScoped": false
        },
        {
          "operationId": "workspaces.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId",
          "workspaceScoped": false
        },
        {
          "operationId": "workspaces.leave",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/leave",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "name": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "slug": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            },
            "required": [
              "action",
              "name"
            ],
            "patternProperties": {
              "^(?!(?:action|name|slug|metadata)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "name",
                "slug",
                "metadata"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "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"
              },
              "name": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "slug": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|name|slug|metadata)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "name",
                "slug",
                "metadata"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "leave"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          }
        ],
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ManageWorkspaceLifecycleInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "create"
                        ]
                      }
                    ]
                  },
                  "name": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "slug": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/Union_"
                    }
                  }
                },
                "required": [
                  "action",
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:action|name|slug|metadata)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "name",
                    "slug",
                    "metadata"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "update"
                        ]
                      }
                    ]
                  },
                  "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"
                  },
                  "name": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "slug": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/Union_"
                    }
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId|name|slug|metadata)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "name",
                    "slug",
                    "metadata"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "delete"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "leave"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "manage_workspace_settings",
      "description": "Update organization settings or AI-label settings for a workspace; the action selects which settings document is patched.\n\nUse to change workspace behaviour after read_workspace_settings shows the current values.\n\nPatch payloads must carry at least one field; empty patches are rejected rather than no-oped.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update_workspace_settings"
                    ]
                  }
                ]
              },
              "patch": {
                "type": "object",
                "properties": {
                  "contactSuggestionsAutoConfirm": {
                    "type": "boolean"
                  },
                  "autoReminderEnabled": {
                    "type": "boolean"
                  },
                  "autoReminderDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  },
                  "autoReminderBusinessDaysOnly": {
                    "type": "boolean"
                  },
                  "dailyCapPerRecipientDomain": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "textMessageSenderNumber": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/E164PhoneNumber"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:contactSuggestionsAutoConfirm|autoReminderEnabled|autoReminderDays|autoReminderBusinessDaysOnly|dailyCapPerRecipientDomain|textMessageSenderNumber)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactSuggestionsAutoConfirm",
                    "autoReminderEnabled",
                    "autoReminderDays",
                    "autoReminderBusinessDaysOnly",
                    "dailyCapPerRecipientDomain",
                    "textMessageSenderNumber"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 6
              }
            },
            "required": [
              "workspaceId",
              "action",
              "patch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|patch)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "patch"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update_ai_label_settings"
                    ]
                  }
                ]
              },
              "patch": {
                "type": "object",
                "properties": {
                  "aiLabelDetection": {
                    "type": "boolean"
                  },
                  "labelCategorizationPrompt": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "emailNotificationForPositiveReplies": {
                    "type": "boolean"
                  },
                  "emailNotificationForAiFollowUpApprovals": {
                    "type": "boolean"
                  },
                  "notificationEmails": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "maxItems": 100
                  }
                },
                "patternProperties": {
                  "^(?!(?:aiLabelDetection|labelCategorizationPrompt|emailNotificationForPositiveReplies|emailNotificationForAiFollowUpApprovals|notificationEmails)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "aiLabelDetection",
                    "labelCategorizationPrompt",
                    "emailNotificationForPositiveReplies",
                    "emailNotificationForAiFollowUpApprovals",
                    "notificationEmails"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 5
              }
            },
            "required": [
              "workspaceId",
              "action",
              "patch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|patch)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "patch"
              ]
            }
          }
        ],
        "$defs": {
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "contactSuggestionsAutoConfirm": {
                        "type": "boolean"
                      },
                      "contactSuggestionsAutoConfirmSince": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "replyDetectionAiPrompt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "googleEspMatch": {
                        "type": "string",
                        "enum": [
                          "google",
                          "microsoft",
                          "other",
                          "all",
                          "tags",
                          "skip"
                        ]
                      },
                      "microsoftEspMatch": {
                        "type": "string",
                        "enum": [
                          "google",
                          "microsoft",
                          "other",
                          "all",
                          "tags",
                          "skip"
                        ]
                      },
                      "otherEspMatch": {
                        "type": "string",
                        "enum": [
                          "google",
                          "microsoft",
                          "other",
                          "all",
                          "tags",
                          "skip"
                        ]
                      },
                      "timezone": {
                        "$ref": "#/$defs/IanaTimeZone"
                      },
                      "dailySendingLimit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "textMessageSenderNumber": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dailyCapPerRecipientDomain": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "autoReminderEnabled": {
                        "type": "boolean"
                      },
                      "autoReminderDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365
                      },
                      "autoReminderBusinessDaysOnly": {
                        "type": "boolean"
                      },
                      "verificationSharingMode": {
                        "type": "string",
                        "enum": [
                          "contribute_and_consume",
                          "consume_only",
                          "private"
                        ]
                      },
                      "createdAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "workspaceId",
                      "contactSuggestionsAutoConfirm",
                      "contactSuggestionsAutoConfirmSince",
                      "replyDetectionAiPrompt",
                      "googleEspMatch",
                      "microsoftEspMatch",
                      "otherEspMatch",
                      "timezone",
                      "dailySendingLimit",
                      "textMessageSenderNumber",
                      "dailyCapPerRecipientDomain",
                      "autoReminderEnabled",
                      "autoReminderDays",
                      "autoReminderBusinessDaysOnly",
                      "verificationSharingMode",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:workspaceId|contactSuggestionsAutoConfirm|contactSuggestionsAutoConfirmSince|replyDetectionAiPrompt|googleEspMatch|microsoftEspMatch|otherEspMatch|timezone|dailySendingLimit|textMessageSenderNumber|dailyCapPerRecipientDomain|autoReminderEnabled|autoReminderDays|autoReminderBusinessDaysOnly|verificationSharingMode|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "workspaceId",
                        "contactSuggestionsAutoConfirm",
                        "contactSuggestionsAutoConfirmSince",
                        "replyDetectionAiPrompt",
                        "googleEspMatch",
                        "microsoftEspMatch",
                        "otherEspMatch",
                        "timezone",
                        "dailySendingLimit",
                        "textMessageSenderNumber",
                        "dailyCapPerRecipientDomain",
                        "autoReminderEnabled",
                        "autoReminderDays",
                        "autoReminderBusinessDaysOnly",
                        "verificationSharingMode",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "aiLabelDetection": {
                        "type": "boolean"
                      },
                      "labelCategorizationPrompt": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "emailNotificationForPositiveReplies": {
                        "type": "boolean"
                      },
                      "emailNotificationForAiFollowUpApprovals": {
                        "type": "boolean"
                      },
                      "notificationEmails": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "aiLabelDetection",
                      "labelCategorizationPrompt",
                      "emailNotificationForPositiveReplies",
                      "emailNotificationForAiFollowUpApprovals",
                      "notificationEmails"
                    ],
                    "patternProperties": {
                      "^(?!(?:aiLabelDetection|labelCategorizationPrompt|emailNotificationForPositiveReplies|emailNotificationForAiFollowUpApprovals|notificationEmails)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "aiLabelDetection",
                        "labelCategorizationPrompt",
                        "emailNotificationForPositiveReplies",
                        "emailNotificationForAiFollowUpApprovals",
                        "notificationEmails"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "contactSuggestionsAutoConfirm": {
                            "type": "boolean"
                          },
                          "contactSuggestionsAutoConfirmSince": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replyDetectionAiPrompt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Description"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "googleEspMatch": {
                            "type": "string",
                            "enum": [
                              "google",
                              "microsoft",
                              "other",
                              "all",
                              "tags",
                              "skip"
                            ]
                          },
                          "microsoftEspMatch": {
                            "type": "string",
                            "enum": [
                              "google",
                              "microsoft",
                              "other",
                              "all",
                              "tags",
                              "skip"
                            ]
                          },
                          "otherEspMatch": {
                            "type": "string",
                            "enum": [
                              "google",
                              "microsoft",
                              "other",
                              "all",
                              "tags",
                              "skip"
                            ]
                          },
                          "timezone": {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          "dailySendingLimit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "textMessageSenderNumber": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dailyCapPerRecipientDomain": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "autoReminderEnabled": {
                            "type": "boolean"
                          },
                          "autoReminderDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 365
                          },
                          "autoReminderBusinessDaysOnly": {
                            "type": "boolean"
                          },
                          "verificationSharingMode": {
                            "type": "string",
                            "enum": [
                              "contribute_and_consume",
                              "consume_only",
                              "private"
                            ]
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "workspaceId",
                          "contactSuggestionsAutoConfirm",
                          "contactSuggestionsAutoConfirmSince",
                          "replyDetectionAiPrompt",
                          "googleEspMatch",
                          "microsoftEspMatch",
                          "otherEspMatch",
                          "timezone",
                          "dailySendingLimit",
                          "textMessageSenderNumber",
                          "dailyCapPerRecipientDomain",
                          "autoReminderEnabled",
                          "autoReminderDays",
                          "autoReminderBusinessDaysOnly",
                          "verificationSharingMode",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:workspaceId|contactSuggestionsAutoConfirm|contactSuggestionsAutoConfirmSince|replyDetectionAiPrompt|googleEspMatch|microsoftEspMatch|otherEspMatch|timezone|dailySendingLimit|textMessageSenderNumber|dailyCapPerRecipientDomain|autoReminderEnabled|autoReminderDays|autoReminderBusinessDaysOnly|verificationSharingMode|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "workspaceId",
                            "contactSuggestionsAutoConfirm",
                            "contactSuggestionsAutoConfirmSince",
                            "replyDetectionAiPrompt",
                            "googleEspMatch",
                            "microsoftEspMatch",
                            "otherEspMatch",
                            "timezone",
                            "dailySendingLimit",
                            "textMessageSenderNumber",
                            "dailyCapPerRecipientDomain",
                            "autoReminderEnabled",
                            "autoReminderDays",
                            "autoReminderBusinessDaysOnly",
                            "verificationSharingMode",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "aiLabelDetection": {
                            "type": "boolean"
                          },
                          "labelCategorizationPrompt": {
                            "type": "string",
                            "maxLength": 2000
                          },
                          "emailNotificationForPositiveReplies": {
                            "type": "boolean"
                          },
                          "emailNotificationForAiFollowUpApprovals": {
                            "type": "boolean"
                          },
                          "notificationEmails": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "maxItems": 100
                          }
                        },
                        "required": [
                          "aiLabelDetection",
                          "labelCategorizationPrompt",
                          "emailNotificationForPositiveReplies",
                          "emailNotificationForAiFollowUpApprovals",
                          "notificationEmails"
                        ],
                        "patternProperties": {
                          "^(?!(?:aiLabelDetection|labelCategorizationPrompt|emailNotificationForPositiveReplies|emailNotificationForAiFollowUpApprovals|notificationEmails)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "aiLabelDetection",
                            "labelCategorizationPrompt",
                            "emailNotificationForPositiveReplies",
                            "emailNotificationForAiFollowUpApprovals",
                            "notificationEmails"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_workspace_settings"
      },
      "scopes": [
        "workspace:update"
      ],
      "bundles": [
        "workspace_settings"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "workspaceSettings.update",
        "aiLabels.update"
      ],
      "invocations": [
        {
          "operationId": "workspaceSettings.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/settings",
          "workspaceScoped": false
        },
        {
          "operationId": "aiLabels.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/settings/ai-labels",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update_workspace_settings"
                    ]
                  }
                ]
              },
              "patch": {
                "type": "object",
                "properties": {
                  "contactSuggestionsAutoConfirm": {
                    "type": "boolean"
                  },
                  "autoReminderEnabled": {
                    "type": "boolean"
                  },
                  "autoReminderDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  },
                  "autoReminderBusinessDaysOnly": {
                    "type": "boolean"
                  },
                  "dailyCapPerRecipientDomain": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "textMessageSenderNumber": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/E164PhoneNumber"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:contactSuggestionsAutoConfirm|autoReminderEnabled|autoReminderDays|autoReminderBusinessDaysOnly|dailyCapPerRecipientDomain|textMessageSenderNumber)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactSuggestionsAutoConfirm",
                    "autoReminderEnabled",
                    "autoReminderDays",
                    "autoReminderBusinessDaysOnly",
                    "dailyCapPerRecipientDomain",
                    "textMessageSenderNumber"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 6
              }
            },
            "required": [
              "workspaceId",
              "action",
              "patch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|patch)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "patch"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update_ai_label_settings"
                    ]
                  }
                ]
              },
              "patch": {
                "type": "object",
                "properties": {
                  "aiLabelDetection": {
                    "type": "boolean"
                  },
                  "labelCategorizationPrompt": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "emailNotificationForPositiveReplies": {
                    "type": "boolean"
                  },
                  "emailNotificationForAiFollowUpApprovals": {
                    "type": "boolean"
                  },
                  "notificationEmails": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "maxItems": 100
                  }
                },
                "patternProperties": {
                  "^(?!(?:aiLabelDetection|labelCategorizationPrompt|emailNotificationForPositiveReplies|emailNotificationForAiFollowUpApprovals|notificationEmails)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "aiLabelDetection",
                    "labelCategorizationPrompt",
                    "emailNotificationForPositiveReplies",
                    "emailNotificationForAiFollowUpApprovals",
                    "notificationEmails"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 5
              }
            },
            "required": [
              "workspaceId",
              "action",
              "patch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|patch)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "patch"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "manage_workspace_variables",
      "description": "List, create, update, or delete organization variables used as substitution values in campaign content.\n\nUse to manage the workspace-level key/value pairs that campaigns can reference as variables.\n\nVariable keys must be unique per workspace and follow the allowed key grammar; values are never shown in telemetry.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "input": {
                "type": "object",
                "properties": {
                  "key": {
                    "$ref": "#/$defs/OrganizationVariableKey"
                  },
                  "value": {
                    "$ref": "#/$defs/OrganizationVariableValue"
                  },
                  "label": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "key",
                  "value"
                ],
                "patternProperties": {
                  "^(?!(?:key|value|label|description)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "key",
                    "value",
                    "label",
                    "description"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|input)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "input"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "variableId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "input": {
                "type": "object",
                "properties": {
                  "value": {
                    "$ref": "#/$defs/OrganizationVariableValue"
                  },
                  "label": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:value|label|description)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "value",
                    "label",
                    "description"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 3
              }
            },
            "required": [
              "workspaceId",
              "action",
              "variableId",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|variableId|input)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "variableId",
                "input"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "variableId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "required": [
              "workspaceId",
              "action",
              "variableId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|variableId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "variableId"
              ]
            }
          }
        ],
        "$defs": {
          "OrganizationVariableKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z][a-z0-9_]*$"
          },
          "OrganizationVariableValue": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "OrganizationVariableKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z][a-z0-9_]*$"
          },
          "OrganizationVariableValue": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "key": {
                              "$ref": "#/$defs/OrganizationVariableKey"
                            },
                            "value": {
                              "$ref": "#/$defs/OrganizationVariableValue"
                            },
                            "label": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "key",
                            "value",
                            "label",
                            "description",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|key|value|label|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "key",
                              "value",
                              "label",
                              "description",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "key": {
                        "$ref": "#/$defs/OrganizationVariableKey"
                      },
                      "value": {
                        "$ref": "#/$defs/OrganizationVariableValue"
                      },
                      "label": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 500
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "key",
                      "value",
                      "label",
                      "description",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|key|value|label|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "key",
                        "value",
                        "label",
                        "description",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "deleted": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "deleted"
                    ],
                    "patternProperties": {
                      "^(?!(?:deleted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "deleted"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "key": {
                                  "$ref": "#/$defs/OrganizationVariableKey"
                                },
                                "value": {
                                  "$ref": "#/$defs/OrganizationVariableValue"
                                },
                                "label": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "key",
                                "value",
                                "label",
                                "description",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|key|value|label|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "key",
                                  "value",
                                  "label",
                                  "description",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "key": {
                            "$ref": "#/$defs/OrganizationVariableKey"
                          },
                          "value": {
                            "$ref": "#/$defs/OrganizationVariableValue"
                          },
                          "label": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 500
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "key",
                          "value",
                          "label",
                          "description",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|key|value|label|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "key",
                            "value",
                            "label",
                            "description",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "deleted": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "deleted"
                        ],
                        "patternProperties": {
                          "^(?!(?:deleted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "deleted"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "manage_workspace_variables"
      },
      "scopes": [
        "workspace:read",
        "workspace:update"
      ],
      "bundles": [
        "workspace_settings"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationVariables.list",
        "organizationVariables.create",
        "organizationVariables.update",
        "organizationVariables.delete"
      ],
      "invocations": [
        {
          "operationId": "organizationVariables.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/settings/variables",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationVariables.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/settings/variables",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationVariables.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/settings/variables/:variableId",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationVariables.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/settings/variables/:variableId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create"
                    ]
                  }
                ]
              },
              "input": {
                "type": "object",
                "properties": {
                  "key": {
                    "$ref": "#/$defs/OrganizationVariableKey"
                  },
                  "value": {
                    "$ref": "#/$defs/OrganizationVariableValue"
                  },
                  "label": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "key",
                  "value"
                ],
                "patternProperties": {
                  "^(?!(?:key|value|label|description)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "key",
                    "value",
                    "label",
                    "description"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|input)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "input"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "update"
                    ]
                  }
                ]
              },
              "variableId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "input": {
                "type": "object",
                "properties": {
                  "value": {
                    "$ref": "#/$defs/OrganizationVariableValue"
                  },
                  "label": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:value|label|description)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "value",
                    "label",
                    "description"
                  ]
                },
                "minProperties": 1,
                "maxProperties": 3
              }
            },
            "required": [
              "workspaceId",
              "action",
              "variableId",
              "input"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|variableId|input)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "variableId",
                    "input"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "delete"
                    ]
                  }
                ]
              },
              "variableId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "required": [
              "workspaceId",
              "action",
              "variableId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|variableId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "variableId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "OrganizationVariableKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z][a-z0-9_]*$"
          },
          "OrganizationVariableValue": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "message_heyreach",
      "description": "Reply in an existing LinkedIn conversation as one of the workspace's senders, or mark a conversation seen or unseen.\n\nUse to send a reply a person has approved into a thread returned by read_heyreach, naming the sender account that owns the conversation.\n\nA sent LinkedIn message reaches a real person and cannot be recalled; it is refused on a frozen subscription. The server deduplicates retries of the same send. Marking seen sends nothing and is always available.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "conversationId": {
                "$ref": "#/$defs/HeyReachConversationId"
              },
              "action": {
                "type": "string",
                "enum": [
                  "send"
                ]
              },
              "send": {
                "$ref": "#/$defs/SendHeyReachMessageInput"
              }
            },
            "required": [
              "workspaceId",
              "conversationId",
              "action",
              "send"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|conversationId|action|send)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "conversationId",
                "action",
                "send"
              ]
            }
          },
          {
            "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"
              },
              "conversationId": {
                "$ref": "#/$defs/HeyReachConversationId"
              },
              "action": {
                "type": "string",
                "enum": [
                  "mark_seen"
                ]
              },
              "seen": {
                "$ref": "#/$defs/SetHeyReachSeenInput"
              }
            },
            "required": [
              "workspaceId",
              "conversationId",
              "action",
              "seen"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|conversationId|action|seen)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "conversationId",
                "action",
                "seen"
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachConversationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "SendHeyReachMessageInput": {
            "type": "object",
            "properties": {
              "linkedInAccountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "message": {
                "type": "string",
                "minLength": 1,
                "maxLength": 8000
              },
              "subject": {
                "type": "string",
                "minLength": 0,
                "maxLength": 200
              }
            },
            "required": [
              "linkedInAccountId",
              "message"
            ],
            "patternProperties": {
              "^(?!(?:linkedInAccountId|message|subject)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "linkedInAccountId",
                "message",
                "subject"
              ]
            }
          },
          "SetHeyReachSeenInput": {
            "type": "object",
            "properties": {
              "linkedInAccountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "seen": {
                "type": "boolean"
              }
            },
            "required": [
              "linkedInAccountId",
              "seen"
            ],
            "patternProperties": {
              "^(?!(?:linkedInAccountId|seen)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "linkedInAccountId",
                "seen"
              ]
            }
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          }
        },
        "required": [
          "success"
        ],
        "patternProperties": {
          "^(?!(?:success)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "success"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "message_heyreach"
      },
      "scopes": [
        "integration:update",
        "unibox:reply"
      ],
      "bundles": [
        "heyreach"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "heyreachConversations.send",
        "heyreachConversations.seen"
      ],
      "invocations": [
        {
          "operationId": "heyreachConversations.send",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/conversations/:conversationId/messages",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachConversations.seen",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/conversations/:conversationId/seen",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "conversationId": {
                "$ref": "#/$defs/HeyReachConversationId"
              },
              "action": {
                "type": "string",
                "enum": [
                  "send"
                ]
              },
              "send": {
                "$ref": "#/$defs/SendHeyReachMessageInput"
              }
            },
            "required": [
              "workspaceId",
              "conversationId",
              "action",
              "send"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|conversationId|action|send)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "conversationId",
                    "action",
                    "send"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "conversationId": {
                "$ref": "#/$defs/HeyReachConversationId"
              },
              "action": {
                "type": "string",
                "enum": [
                  "mark_seen"
                ]
              },
              "seen": {
                "$ref": "#/$defs/SetHeyReachSeenInput"
              }
            },
            "required": [
              "workspaceId",
              "conversationId",
              "action",
              "seen"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|conversationId|action|seen)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "conversationId",
                    "action",
                    "seen"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachConversationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "SendHeyReachMessageInput": {
            "type": "object",
            "properties": {
              "linkedInAccountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "message": {
                "type": "string",
                "minLength": 1,
                "maxLength": 8000
              },
              "subject": {
                "type": "string",
                "minLength": 0,
                "maxLength": 200
              }
            },
            "required": [
              "linkedInAccountId",
              "message"
            ],
            "patternProperties": {
              "^(?!(?:linkedInAccountId|message|subject)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "linkedInAccountId",
                "message",
                "subject"
              ]
            }
          },
          "SetHeyReachSeenInput": {
            "type": "object",
            "properties": {
              "linkedInAccountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "seen": {
                "type": "boolean"
              }
            },
            "required": [
              "linkedInAccountId",
              "seen"
            ],
            "patternProperties": {
              "^(?!(?:linkedInAccountId|seen)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "linkedInAccountId",
                "seen"
              ]
            }
          }
        }
      }
    },
    {
      "feature": "workflows",
      "name": "monitor_job_progress",
      "description": "Read one bounded batch of up to 250 events for a workflow run, number provisioning, domain registration, mailbox order, verification run, or mailbox migration. Repeat with the returned cursor until the operation is terminal.\n\nUse after starting long work to report what it is actually doing rather than guessing from a status field. Each batch carries a cursor; repeat with that cursor to continue without losing later events.\n\nThe stream is scoped to one operation the caller already owns; it cannot enumerate a workspace's work. Each kind is authorized against the permission that owns the underlying resource, so a credential that may follow a verification run may not follow a domain registration.",
      "inputSchema": {
        "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"
          },
          "kind": {
            "$ref": "#/$defs/JobProgressKind"
          },
          "resourceId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "cursor": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "workspaceId",
          "kind",
          "resourceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|kind|resourceId|cursor)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "kind",
            "resourceId",
            "cursor"
          ]
        },
        "$defs": {
          "JobProgressKind": {
            "type": "string",
            "enum": [
              "dialer-provision",
              "domain-registration",
              "email-verification",
              "phone-verification",
              "inbox-migration",
              "workflow"
            ]
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/$defs/JobProgressKind"
          },
          "resourceId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "cursor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "events": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "_tag": {
                      "type": "string",
                      "enum": [
                        "SpanStart"
                      ]
                    },
                    "traceId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "spanId": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{16}$"
                    },
                    "parentSpanId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^[0-9a-f]{16}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "timestamp": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "attempt": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "_tag",
                    "traceId",
                    "spanId",
                    "parentSpanId",
                    "name",
                    "timestamp",
                    "attempt"
                  ],
                  "patternProperties": {
                    "^(?!(?:_tag|traceId|spanId|parentSpanId|name|timestamp|attempt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "_tag",
                      "traceId",
                      "spanId",
                      "parentSpanId",
                      "name",
                      "timestamp",
                      "attempt"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "_tag": {
                      "type": "string",
                      "enum": [
                        "SpanEnd"
                      ]
                    },
                    "traceId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "spanId": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{16}$"
                    },
                    "timestamp": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "durationMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok",
                        "error"
                      ]
                    }
                  },
                  "required": [
                    "_tag",
                    "traceId",
                    "spanId",
                    "timestamp",
                    "durationMs",
                    "status"
                  ],
                  "patternProperties": {
                    "^(?!(?:_tag|traceId|spanId|timestamp|durationMs|status)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "_tag",
                      "traceId",
                      "spanId",
                      "timestamp",
                      "durationMs",
                      "status"
                    ]
                  }
                }
              ]
            },
            "maxItems": 250
          },
          "status": {
            "$ref": "#/$defs/ShortText"
          },
          "terminal": {
            "type": "boolean"
          },
          "migrationConnection": {
            "$ref": "#/$defs/MigrationConnectionProgress"
          }
        },
        "required": [
          "kind",
          "resourceId",
          "cursor",
          "events",
          "status",
          "terminal"
        ],
        "patternProperties": {
          "^(?!(?:kind|resourceId|cursor|events|status|terminal|migrationConnection)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "kind",
            "resourceId",
            "cursor",
            "events",
            "status",
            "terminal",
            "migrationConnection"
          ]
        },
        "$defs": {
          "JobProgressKind": {
            "type": "string",
            "enum": [
              "dialer-provision",
              "domain-registration",
              "email-verification",
              "phone-verification",
              "inbox-migration",
              "workflow"
            ]
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "MigrationConnectionProgress": {
            "type": "object",
            "properties": {
              "itemId": {
                "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"
                  }
                ]
              },
              "stage": {
                "type": "string",
                "enum": [
                  "checking_existing",
                  "finding_admin",
                  "approving_app",
                  "signing_in",
                  "submitting_login",
                  "waiting_for_provider",
                  "granting_consent",
                  "confirming_connection",
                  "connected",
                  "needs_attention"
                ]
              },
              "completed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "failed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updatedAt": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "itemId",
              "stage",
              "completed",
              "failed",
              "total",
              "updatedAt"
            ],
            "patternProperties": {
              "^(?!(?:itemId|stage|completed|failed|total|updatedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "itemId",
                "stage",
                "completed",
                "failed",
                "total",
                "updatedAt"
              ]
            }
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "monitor_job_progress"
      },
      "scopes": [
        "workspace:read",
        "dialer:read",
        "domain:read",
        "emailVerification:read",
        "phoneVerification:read",
        "workflow:read",
        "inbox:read"
      ],
      "bundles": [
        "workflow_connectors"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "stream",
      "underlyingOperations": [
        "jobProgress.stream"
      ],
      "invocations": [
        {
          "operationId": "jobProgress.stream",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/job-progress/:kind/:resourceId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "kind": {
            "$ref": "#/$defs/JobProgressKind"
          },
          "resourceId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "cursor": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "workspaceId",
          "kind",
          "resourceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|kind|resourceId|cursor)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "kind",
            "resourceId",
            "cursor"
          ]
        },
        "$defs": {
          "JobProgressKind": {
            "type": "string",
            "enum": [
              "dialer-provision",
              "domain-registration",
              "email-verification",
              "phone-verification",
              "inbox-migration",
              "workflow"
            ]
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "organize_campaign_folders",
      "description": "Browse and reorganize the campaign folder hierarchy, and file campaigns into it.\n\nUse to tidy a workspace's campaign list; folder counts roll up through subfolders, so a parent's count already includes everything nested beneath it.\n\nDeleting a folder never deletes campaigns — they move one level up. There is deliberately no way to delete a folder together with its contents.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "list",
              "tree",
              "breadcrumb",
              "create",
              "rename",
              "move",
              "delete",
              "move_campaigns",
              "unfiled_count"
            ]
          },
          "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"
          },
          "folderId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "create": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "parentId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|parentId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "parentId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "name"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "parentId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "parentId"
                ],
                "patternProperties": {
                  "^(?!(?:parentId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "parentId"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "campaignIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "folderId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "campaignIds",
                  "folderId"
                ],
                "patternProperties": {
                  "^(?!(?:campaignIds|folderId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "campaignIds",
                    "folderId"
                  ]
                }
              }
            ]
          },
          "parentId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "campaignIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          }
        },
        "required": [
          "action",
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|folderId|create|parentId|campaignIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "folderId",
            "create",
            "parentId",
            "campaignIds"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "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$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "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"
                      },
                      "name": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "parentId": {
                        "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"
                          }
                        ]
                      },
                      "campaignCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "subfolderCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "workspaceId",
                      "name",
                      "parentId",
                      "campaignCount",
                      "subfolderCount",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|workspaceId|name|parentId|campaignCount|subfolderCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "workspaceId",
                        "name",
                        "parentId",
                        "campaignCount",
                        "subfolderCount",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "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"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "parentId": {
                              "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"
                                }
                              ]
                            },
                            "campaignCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subfolderCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "workspaceId",
                            "name",
                            "parentId",
                            "campaignCount",
                            "subfolderCount",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|workspaceId|name|parentId|campaignCount|subfolderCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "workspaceId",
                              "name",
                              "parentId",
                              "campaignCount",
                              "subfolderCount",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "nodes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "folder": {
                              "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"
                                },
                                "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"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "parentId": {
                                  "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"
                                    }
                                  ]
                                },
                                "campaignCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "subfolderCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "workspaceId",
                                "name",
                                "parentId",
                                "campaignCount",
                                "subfolderCount",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|workspaceId|name|parentId|campaignCount|subfolderCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "workspaceId",
                                  "name",
                                  "parentId",
                                  "campaignCount",
                                  "subfolderCount",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            },
                            "depth": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "path": {
                              "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": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|name)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "name"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "folder",
                            "depth",
                            "path"
                          ],
                          "patternProperties": {
                            "^(?!(?:folder|depth|path)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "folder",
                              "depth",
                              "path"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "nodes"
                    ],
                    "patternProperties": {
                      "^(?!(?:nodes)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "nodes"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "path": {
                        "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": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "path"
                    ],
                    "patternProperties": {
                      "^(?!(?:path)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "path"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "folderId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "movedTo": {
                        "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"
                          }
                        ]
                      }
                    },
                    "required": [
                      "folderId",
                      "movedTo"
                    ],
                    "patternProperties": {
                      "^(?!(?:folderId|movedTo)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "folderId",
                        "movedTo"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "movedCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "folderId": {
                        "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"
                          }
                        ]
                      }
                    },
                    "required": [
                      "movedCount",
                      "folderId"
                    ],
                    "patternProperties": {
                      "^(?!(?:movedCount|folderId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "movedCount",
                        "folderId"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "count"
                    ],
                    "patternProperties": {
                      "^(?!(?:count)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "count"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "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"
                          },
                          "name": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "parentId": {
                            "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"
                              }
                            ]
                          },
                          "campaignCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "subfolderCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "workspaceId",
                          "name",
                          "parentId",
                          "campaignCount",
                          "subfolderCount",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|workspaceId|name|parentId|campaignCount|subfolderCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "workspaceId",
                            "name",
                            "parentId",
                            "campaignCount",
                            "subfolderCount",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "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"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "parentId": {
                                  "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"
                                    }
                                  ]
                                },
                                "campaignCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "subfolderCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "workspaceId",
                                "name",
                                "parentId",
                                "campaignCount",
                                "subfolderCount",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|workspaceId|name|parentId|campaignCount|subfolderCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "workspaceId",
                                  "name",
                                  "parentId",
                                  "campaignCount",
                                  "subfolderCount",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "nodes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "folder": {
                                  "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"
                                    },
                                    "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"
                                    },
                                    "name": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "parentId": {
                                      "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"
                                        }
                                      ]
                                    },
                                    "campaignCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "subfolderCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "createdAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "updatedAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "workspaceId",
                                    "name",
                                    "parentId",
                                    "campaignCount",
                                    "subfolderCount",
                                    "createdAt",
                                    "updatedAt"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|workspaceId|name|parentId|campaignCount|subfolderCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "workspaceId",
                                      "name",
                                      "parentId",
                                      "campaignCount",
                                      "subfolderCount",
                                      "createdAt",
                                      "updatedAt"
                                    ]
                                  }
                                },
                                "depth": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "path": {
                                  "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": {
                                        "$ref": "#/$defs/ShortText"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|name)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "name"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "folder",
                                "depth",
                                "path"
                              ],
                              "patternProperties": {
                                "^(?!(?:folder|depth|path)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "folder",
                                  "depth",
                                  "path"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "nodes"
                        ],
                        "patternProperties": {
                          "^(?!(?:nodes)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "nodes"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "path": {
                            "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": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "path"
                        ],
                        "patternProperties": {
                          "^(?!(?:path)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "path"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "folderId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "movedTo": {
                            "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"
                              }
                            ]
                          }
                        },
                        "required": [
                          "folderId",
                          "movedTo"
                        ],
                        "patternProperties": {
                          "^(?!(?:folderId|movedTo)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "folderId",
                            "movedTo"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "movedCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "folderId": {
                            "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"
                              }
                            ]
                          }
                        },
                        "required": [
                          "movedCount",
                          "folderId"
                        ],
                        "patternProperties": {
                          "^(?!(?:movedCount|folderId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "movedCount",
                            "folderId"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "count": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "count"
                        ],
                        "patternProperties": {
                          "^(?!(?:count)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "count"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "organize_campaign_folders"
      },
      "scopes": [
        "campaign:read",
        "campaign:update"
      ],
      "bundles": [
        "campaign_authoring"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignFolders.list",
        "campaignFolders.tree",
        "campaignFolders.breadcrumb",
        "campaignFolders.create",
        "campaignFolders.rename",
        "campaignFolders.move",
        "campaignFolders.delete",
        "campaignFolders.moveCampaigns",
        "campaignFolders.unfiledCount"
      ],
      "invocations": [
        {
          "operationId": "campaignFolders.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaign-folders",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignFolders.tree",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaign-folders/tree",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignFolders.breadcrumb",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaign-folders/:folderId/breadcrumb",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignFolders.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaign-folders",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignFolders.rename",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/campaign-folders/:folderId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignFolders.move",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaign-folders/:folderId/move",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignFolders.delete",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/campaign-folders/:folderId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignFolders.moveCampaigns",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaign-folders/move-campaigns",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignFolders.unfiledCount",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaign-folders/unfiled-count",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "list",
              "tree",
              "breadcrumb",
              "create",
              "rename",
              "move",
              "delete",
              "move_campaigns",
              "unfiled_count"
            ]
          },
          "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"
          },
          "folderId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "create": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "parentId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name|parentId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "name",
                    "parentId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "required": [
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:name)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "name"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "parentId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "parentId"
                ],
                "patternProperties": {
                  "^(?!(?:parentId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "parentId"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "campaignIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "folderId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "campaignIds",
                  "folderId"
                ],
                "patternProperties": {
                  "^(?!(?:campaignIds|folderId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "campaignIds",
                    "folderId"
                  ]
                }
              }
            ]
          },
          "parentId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "campaignIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          }
        },
        "required": [
          "action",
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:action|workspaceId|folderId|create|parentId|campaignIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "workspaceId",
            "folderId",
            "create",
            "parentId",
            "campaignIds"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "agent-platform",
      "name": "prepare_confirmation",
      "description": "Build a bounded preview of a mutation and return a confirmation token bound to the exact input.\n\nUse before any capability whose confirmation policy is preview_token; the returned token is required to commit.\n\nA preview executes nothing; do not treat it as a substitute for the commit call.\n\nUse the native preview first and pass its confirmation token unchanged to commit. A token does not bypass current permissions or Workspace checks.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "capabilityId": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,63}$"
          },
          "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"
          },
          "input": {
            "$ref": "#/$defs/Union_"
          }
        },
        "required": [
          "capabilityId",
          "workspaceId",
          "input"
        ],
        "patternProperties": {
          "^(?!(?:capabilityId|workspaceId|input)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "capabilityId",
            "workspaceId",
            "input"
          ]
        },
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "preview": {
            "type": "object",
            "properties": {
              "summary": {
                "$ref": "#/$defs/Description"
              },
              "affected": {
                "type": "object",
                "properties": {
                  "resourceCounts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "type",
                        "count"
                      ],
                      "patternProperties": {
                        "^(?!(?:type|count)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "type",
                          "count"
                        ]
                      }
                    },
                    "maxItems": 64
                  },
                  "resourceIds": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/OpaqueId"
                    },
                    "maxItems": 256
                  }
                },
                "required": [
                  "resourceCounts",
                  "resourceIds"
                ],
                "patternProperties": {
                  "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "resourceCounts",
                    "resourceIds"
                  ]
                }
              },
              "costEstimate": {
                "type": "object",
                "properties": {
                  "min": {
                    "$ref": "#/$defs/Money"
                  },
                  "max": {
                    "$ref": "#/$defs/Money"
                  }
                },
                "required": [
                  "min",
                  "max"
                ],
                "patternProperties": {
                  "^(?!(?:min|max)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "min",
                    "max"
                  ]
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ShortText"
                },
                "maxItems": 32
              },
              "irreversibleFacts": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ShortText"
                },
                "maxItems": 32
              },
              "inputHash": {
                "$ref": "#/$defs/OpaqueId"
              },
              "previewVersion": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "summary",
              "affected",
              "warnings",
              "irreversibleFacts",
              "inputHash",
              "previewVersion",
              "expiresAt"
            ],
            "patternProperties": {
              "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "summary",
                "affected",
                "costEstimate",
                "warnings",
                "irreversibleFacts",
                "inputHash",
                "previewVersion",
                "expiresAt"
              ]
            }
          },
          "confirmationToken": {
            "$ref": "#/$defs/OpaqueId"
          }
        },
        "required": [
          "preview",
          "confirmationToken"
        ],
        "patternProperties": {
          "^(?!(?:preview|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "preview",
            "confirmationToken"
          ]
        },
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Money": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BOV",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHE",
                  "CHF",
                  "CHW",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "COU",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MXV",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLE",
                  "SOS",
                  "SRD",
                  "SSP",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "USN",
                  "UYI",
                  "UYU",
                  "UYW",
                  "UZS",
                  "VED",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAD",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XBA",
                  "XBB",
                  "XBC",
                  "XBD",
                  "XCD",
                  "XCG",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "XSU",
                  "XTS",
                  "XUA",
                  "XXX",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWG"
                ]
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "patternProperties": {
              "^(?!(?:amountMinor|currency)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "amountMinor",
                "currency"
              ]
            }
          },
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "prepare_confirmation"
      },
      "scopes": [
        "agent:capabilities"
      ],
      "bundles": [
        "platform"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "preview_token",
      "resultMode": "inline",
      "underlyingOperations": [
        "agent.prepareConfirmation"
      ],
      "invocations": [
        {
          "operationId": "agent.prepareConfirmation",
          "method": "POST",
          "path": "/agent/confirmations",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "capabilityId": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,63}$"
          },
          "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"
          },
          "input": {
            "$ref": "#/$defs/Union_"
          }
        },
        "required": [
          "capabilityId",
          "workspaceId",
          "input"
        ],
        "patternProperties": {
          "^(?!(?:capabilityId|workspaceId|input)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "capabilityId",
            "workspaceId",
            "input"
          ]
        },
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "preview_integration_share_detach",
      "description": "Preview what detaching a shared connection would pause or stop in this workspace.\n\nCall before detach_integration_share and show the affected workflows and steps to the user.\n\nThe preview changes nothing; blocking items must be resolved before a detach succeeds.",
      "inputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "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"
          },
          "connectionId": {
            "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"
              }
            ]
          },
          "canDetach": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "workflow",
                    "campaign_step",
                    "in_flight_run",
                    "webhook",
                    "scheduling",
                    "verification",
                    "other"
                  ]
                },
                "label": {
                  "$ref": "#/$defs/ShortText"
                },
                "effect": {
                  "$ref": "#/$defs/ShortText"
                },
                "blocking": {
                  "type": "boolean"
                }
              },
              "required": [
                "kind",
                "label",
                "effect",
                "blocking"
              ],
              "patternProperties": {
                "^(?!(?:kind|label|effect|blocking)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "kind",
                  "label",
                  "effect",
                  "blocking"
                ]
              }
            },
            "maxItems": 200
          }
        },
        "required": [
          "shareId",
          "workspaceId",
          "connectionId",
          "canDetach",
          "items"
        ],
        "patternProperties": {
          "^(?!(?:shareId|workspaceId|connectionId|canDetach|items)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "shareId",
            "workspaceId",
            "connectionId",
            "canDetach",
            "items"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "preview_integration_share_detach"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "integration_sharing"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationShares.detachPreview"
      ],
      "invocations": [
        {
          "operationId": "integrationShares.detachPreview",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integration-shares/:shareId/detach-preview",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId"
          ]
        }
      }
    },
    {
      "feature": "unibox",
      "name": "preview_unibox_reply",
      "description": "Resolve reply personalization variables or preview a full draft. A full preview shows the final recipient set after auto-CC/BCC and suppression, and the rendered body. Inbox custom values require inbox:read; built-in sender values remain available without it.\n\nUse before composing and again before sending. It sends nothing, and it keeps working while a subscription is frozen — so it is also how you find out that sending is what is blocked.\n\nChoose personalization with a recipient, or preview with a complete draft. A preview is not authorization to send: only its confirmation token is, and only through send_unibox_reply.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "personalization"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "recipient": {
                "$ref": "#/$defs/EmailAddress"
              },
              "fromInboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId",
              "recipient"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId|recipient|fromInboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId",
                "recipient",
                "fromInboxId"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "preview"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "draft": {
                "type": "object",
                "properties": {
                  "fromInboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "to": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "minItems": 1,
                    "maxItems": 50
                  },
                  "cc": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "minItems": 0,
                    "maxItems": 50
                  },
                  "bcc": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "minItems": 0,
                    "maxItems": 50
                  },
                  "body": {
                    "$ref": "#/$defs/ReplyBody"
                  },
                  "bodyContentType": {
                    "type": "string",
                    "enum": [
                      "html",
                      "plain"
                    ]
                  },
                  "personalizationTemplate": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100000
                  },
                  "track": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "to",
                  "body",
                  "bodyContentType"
                ],
                "patternProperties": {
                  "^(?!(?:fromInboxId|to|cc|bcc|body|bodyContentType|personalizationTemplate|track)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "fromInboxId",
                    "to",
                    "cc",
                    "bcc",
                    "body",
                    "bodyContentType",
                    "personalizationTemplate",
                    "track"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId",
              "draft"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId|draft)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId",
                "draft"
              ]
            }
          }
        ],
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "ReplyBody": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000000
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "AttachmentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Money": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BOV",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHE",
                  "CHF",
                  "CHW",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "COU",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MXV",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLE",
                  "SOS",
                  "SRD",
                  "SSP",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "USN",
                  "UYI",
                  "UYU",
                  "UYW",
                  "UZS",
                  "VED",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAD",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XBA",
                  "XBB",
                  "XBC",
                  "XBD",
                  "XCD",
                  "XCG",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "XSU",
                  "XTS",
                  "XUA",
                  "XXX",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWG"
                ]
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "patternProperties": {
              "^(?!(?:amountMinor|currency)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "amountMinor",
                "currency"
              ]
            }
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "messageId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "recipient": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "inboxId": {
                        "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"
                          }
                        ]
                      },
                      "leadId": {
                        "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"
                          }
                        ]
                      },
                      "matched": {
                        "type": "boolean"
                      },
                      "leadData": {
                        "type": "object",
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 4096
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "platformData": {
                        "type": "object",
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 4096
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "customFieldNames": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "maxItems": 256
                      }
                    },
                    "required": [
                      "messageId",
                      "recipient",
                      "inboxId",
                      "leadId",
                      "matched",
                      "leadData",
                      "platformData",
                      "customFieldNames"
                    ],
                    "patternProperties": {
                      "^(?!(?:messageId|recipient|inboxId|leadId|matched|leadData|platformData|customFieldNames)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "messageId",
                        "recipient",
                        "inboxId",
                        "leadId",
                        "matched",
                        "leadData",
                        "platformData",
                        "customFieldNames"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "messageId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "threadId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "resolved": {
                        "type": "object",
                        "properties": {
                          "fromInboxId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "fromAddress": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "to": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            }
                          },
                          "cc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            }
                          },
                          "bcc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            }
                          },
                          "renderedSubject": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "renderedBodyHtml": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 2000000
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "renderedBodyText": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 2000000
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attachments": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/AttachmentId"
                                },
                                "filename": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "contentType": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inline": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "filename",
                                "contentType",
                                "size",
                                "inline"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "filename",
                                  "contentType",
                                  "size",
                                  "inline"
                                ]
                              }
                            },
                            "maxItems": 25
                          },
                          "missingAttachments": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 25
                          },
                          "suppressedRecipients": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "maxItems": 150
                          },
                          "missingVariables": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 128
                          }
                        },
                        "required": [
                          "fromInboxId",
                          "fromAddress",
                          "to",
                          "cc",
                          "bcc",
                          "renderedSubject",
                          "renderedBodyHtml",
                          "renderedBodyText",
                          "attachments",
                          "missingAttachments",
                          "suppressedRecipients",
                          "missingVariables"
                        ],
                        "patternProperties": {
                          "^(?!(?:fromInboxId|fromAddress|to|cc|bcc|renderedSubject|renderedBodyHtml|renderedBodyText|attachments|missingAttachments|suppressedRecipients|missingVariables)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "fromInboxId",
                            "fromAddress",
                            "to",
                            "cc",
                            "bcc",
                            "renderedSubject",
                            "renderedBodyHtml",
                            "renderedBodyText",
                            "attachments",
                            "missingAttachments",
                            "suppressedRecipients",
                            "missingVariables"
                          ]
                        }
                      },
                      "preview": {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "$ref": "#/$defs/Description"
                          },
                          "affected": {
                            "type": "object",
                            "properties": {
                              "resourceCounts": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    "count": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "count"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|count)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "count"
                                    ]
                                  }
                                },
                                "maxItems": 64
                              },
                              "resourceIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "resourceCounts",
                              "resourceIds"
                            ],
                            "patternProperties": {
                              "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "resourceCounts",
                                "resourceIds"
                              ]
                            }
                          },
                          "costEstimate": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "$ref": "#/$defs/Money"
                              },
                              "max": {
                                "$ref": "#/$defs/Money"
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "patternProperties": {
                              "^(?!(?:min|max)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "min",
                                "max"
                              ]
                            }
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "irreversibleFacts": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "inputHash": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "previewVersion": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "summary",
                          "affected",
                          "warnings",
                          "irreversibleFacts",
                          "inputHash",
                          "previewVersion",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "affected",
                            "costEstimate",
                            "warnings",
                            "irreversibleFacts",
                            "inputHash",
                            "previewVersion",
                            "expiresAt"
                          ]
                        }
                      },
                      "confirmationToken": {
                        "$ref": "#/$defs/OpaqueId"
                      }
                    },
                    "required": [
                      "messageId",
                      "threadId",
                      "resolved",
                      "preview",
                      "confirmationToken"
                    ],
                    "patternProperties": {
                      "^(?!(?:messageId|threadId|resolved|preview|confirmationToken)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "messageId",
                        "threadId",
                        "resolved",
                        "preview",
                        "confirmationToken"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "messageId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "recipient": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "inboxId": {
                            "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"
                              }
                            ]
                          },
                          "leadId": {
                            "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"
                              }
                            ]
                          },
                          "matched": {
                            "type": "boolean"
                          },
                          "leadData": {
                            "type": "object",
                            "additionalProperties": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 4096
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "platformData": {
                            "type": "object",
                            "additionalProperties": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 4096
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "customFieldNames": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 256
                          }
                        },
                        "required": [
                          "messageId",
                          "recipient",
                          "inboxId",
                          "leadId",
                          "matched",
                          "leadData",
                          "platformData",
                          "customFieldNames"
                        ],
                        "patternProperties": {
                          "^(?!(?:messageId|recipient|inboxId|leadId|matched|leadData|platformData|customFieldNames)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "messageId",
                            "recipient",
                            "inboxId",
                            "leadId",
                            "matched",
                            "leadData",
                            "platformData",
                            "customFieldNames"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "messageId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "threadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "resolved": {
                            "type": "object",
                            "properties": {
                              "fromInboxId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "fromAddress": {
                                "$ref": "#/$defs/EmailAddress"
                              },
                              "to": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/EmailAddress"
                                }
                              },
                              "cc": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/EmailAddress"
                                }
                              },
                              "bcc": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/EmailAddress"
                                }
                              },
                              "renderedSubject": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "renderedBodyHtml": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2000000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "renderedBodyText": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2000000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "attachments": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "$ref": "#/$defs/AttachmentId"
                                    },
                                    "filename": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "contentType": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "size": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "inline": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "filename",
                                    "contentType",
                                    "size",
                                    "inline"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "filename",
                                      "contentType",
                                      "size",
                                      "inline"
                                    ]
                                  }
                                },
                                "maxItems": 25
                              },
                              "missingAttachments": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 25
                              },
                              "suppressedRecipients": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "maxItems": 150
                              },
                              "missingVariables": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 128
                              }
                            },
                            "required": [
                              "fromInboxId",
                              "fromAddress",
                              "to",
                              "cc",
                              "bcc",
                              "renderedSubject",
                              "renderedBodyHtml",
                              "renderedBodyText",
                              "attachments",
                              "missingAttachments",
                              "suppressedRecipients",
                              "missingVariables"
                            ],
                            "patternProperties": {
                              "^(?!(?:fromInboxId|fromAddress|to|cc|bcc|renderedSubject|renderedBodyHtml|renderedBodyText|attachments|missingAttachments|suppressedRecipients|missingVariables)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "fromInboxId",
                                "fromAddress",
                                "to",
                                "cc",
                                "bcc",
                                "renderedSubject",
                                "renderedBodyHtml",
                                "renderedBodyText",
                                "attachments",
                                "missingAttachments",
                                "suppressedRecipients",
                                "missingVariables"
                              ]
                            }
                          },
                          "preview": {
                            "type": "object",
                            "properties": {
                              "summary": {
                                "$ref": "#/$defs/Description"
                              },
                              "affected": {
                                "type": "object",
                                "properties": {
                                  "resourceCounts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "$ref": "#/$defs/NonEmptyString"
                                        },
                                        "count": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "count"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:type|count)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "type",
                                          "count"
                                        ]
                                      }
                                    },
                                    "maxItems": 64
                                  },
                                  "resourceIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "maxItems": 256
                                  }
                                },
                                "required": [
                                  "resourceCounts",
                                  "resourceIds"
                                ],
                                "patternProperties": {
                                  "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "resourceCounts",
                                    "resourceIds"
                                  ]
                                }
                              },
                              "costEstimate": {
                                "type": "object",
                                "properties": {
                                  "min": {
                                    "$ref": "#/$defs/Money"
                                  },
                                  "max": {
                                    "$ref": "#/$defs/Money"
                                  }
                                },
                                "required": [
                                  "min",
                                  "max"
                                ],
                                "patternProperties": {
                                  "^(?!(?:min|max)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "min",
                                    "max"
                                  ]
                                }
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "irreversibleFacts": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "inputHash": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "previewVersion": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "expiresAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "summary",
                              "affected",
                              "warnings",
                              "irreversibleFacts",
                              "inputHash",
                              "previewVersion",
                              "expiresAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "summary",
                                "affected",
                                "costEstimate",
                                "warnings",
                                "irreversibleFacts",
                                "inputHash",
                                "previewVersion",
                                "expiresAt"
                              ]
                            }
                          },
                          "confirmationToken": {
                            "$ref": "#/$defs/OpaqueId"
                          }
                        },
                        "required": [
                          "messageId",
                          "threadId",
                          "resolved",
                          "preview",
                          "confirmationToken"
                        ],
                        "patternProperties": {
                          "^(?!(?:messageId|threadId|resolved|preview|confirmationToken)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "messageId",
                            "threadId",
                            "resolved",
                            "preview",
                            "confirmationToken"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "preview_unibox_reply"
      },
      "scopes": [
        "unibox:reply",
        "lead:read"
      ],
      "bundles": [
        "unibox_reply_flow"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "uniboxMessages.getReplyPersonalization",
        "uniboxMessages.previewReply"
      ],
      "invocations": [
        {
          "operationId": "uniboxMessages.getReplyPersonalization",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId/reply-personalization",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxMessages.previewReply",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId/reply-preview",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "personalization"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "recipient": {
                "$ref": "#/$defs/EmailAddress"
              },
              "fromInboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId",
              "recipient"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId|recipient|fromInboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId",
                "recipient",
                "fromInboxId"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "preview"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "draft": {
                "type": "object",
                "properties": {
                  "fromInboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "to": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "minItems": 1,
                    "maxItems": 50
                  },
                  "cc": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "minItems": 0,
                    "maxItems": 50
                  },
                  "bcc": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "minItems": 0,
                    "maxItems": 50
                  },
                  "body": {
                    "$ref": "#/$defs/ReplyBody"
                  },
                  "bodyContentType": {
                    "type": "string",
                    "enum": [
                      "html",
                      "plain"
                    ]
                  },
                  "personalizationTemplate": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100000
                  },
                  "track": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "to",
                  "body",
                  "bodyContentType"
                ],
                "patternProperties": {
                  "^(?!(?:fromInboxId|to|cc|bcc|body|bodyContentType|personalizationTemplate|track)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "fromInboxId",
                    "to",
                    "cc",
                    "bcc",
                    "body",
                    "bodyContentType",
                    "personalizationTemplate",
                    "track"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId",
              "draft"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId|draft)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId",
                "draft"
              ]
            }
          }
        ],
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "ReplyBody": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000000
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "provision_dialer_numbers",
      "description": "Buy dialing numbers for the workspace or read the latest purchase's per-number progress.\n\nUse action provision (or omit action for existing callers) to start a purchase. Use action status to read the workspace's latest per-number provisioning progress; get_operation only reports the generic operation state.\n\nThis spends the workspace's money with the carrier and cannot be undone by cancelling the operation — a number that has already been bought must be released instead. Numbers are bought per country under a configured regulatory bundle; check the provisioning options first.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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": [
              "provision",
              "status"
            ]
          },
          "provision": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10
              },
              "countryCode": {
                "type": "string",
                "enum": [
                  "US",
                  "CA",
                  "GB",
                  "AU",
                  "NZ"
                ]
              },
              "areaCode": {
                "$ref": "#/$defs/AreaCode"
              },
              "assignedUserId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "phoneNumbers": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/E164PhoneNumber"
                },
                "minItems": 1,
                "maxItems": 10
              }
            },
            "required": [
              "count"
            ],
            "patternProperties": {
              "^(?!(?:count|countryCode|areaCode|assignedUserId|phoneNumbers)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "count",
                "countryCode",
                "areaCode",
                "assignedUserId",
                "phoneNumbers"
              ]
            }
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|provision)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "provision"
          ]
        },
        "$defs": {
          "AreaCode": {
            "type": "string",
            "pattern": "^\\d{3}$"
          },
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "statusUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "$ref": "#/$defs/HttpResourcePath"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "waiting_for_user",
                          "succeeded",
                          "partially_succeeded",
                          "failed",
                          "canceled",
                          "canceling"
                        ]
                      },
                      "acceptedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "progress": {
                        "type": "object",
                        "properties": {
                          "completed": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "message": {
                            "$ref": "#/$defs/NonEmptyString"
                          }
                        },
                        "required": [
                          "completed"
                        ],
                        "patternProperties": {
                          "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "completed",
                            "total",
                            "message"
                          ]
                        }
                      },
                      "canCancel": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "statusUrl",
                      "state",
                      "acceptedAt",
                      "canCancel"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "statusUrl",
                        "state",
                        "acceptedAt",
                        "progress",
                        "canCancel"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "state": {
                        "type": "string",
                        "enum": [
                          "idle",
                          "running",
                          "completed",
                          "failed"
                        ]
                      },
                      "runId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "step": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "progress": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "requestedNumbers": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "candidateNumbers": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "orderedNumbers": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "provisionedNumbers": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "numberStates": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "phoneNumber": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "pending",
                                "provisioning",
                                "provisioned",
                                "failed"
                              ]
                            },
                            "progress": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 100
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "phoneNumber",
                            "status",
                            "progress",
                            "error"
                          ],
                          "patternProperties": {
                            "^(?!(?:phoneNumber|status|progress|error)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "phoneNumber",
                              "status",
                              "progress",
                              "error"
                            ]
                          }
                        }
                      },
                      "currentNumber": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "state",
                      "runId",
                      "step",
                      "progress",
                      "requestedNumbers",
                      "candidateNumbers",
                      "orderedNumbers",
                      "provisionedNumbers",
                      "numberStates",
                      "currentNumber",
                      "reason",
                      "error"
                    ],
                    "patternProperties": {
                      "^(?!(?:state|runId|step|progress|requestedNumbers|candidateNumbers|orderedNumbers|provisionedNumbers|numberStates|currentNumber|reason|error)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "state",
                        "runId",
                        "step",
                        "progress",
                        "requestedNumbers",
                        "candidateNumbers",
                        "orderedNumbers",
                        "provisionedNumbers",
                        "numberStates",
                        "currentNumber",
                        "reason",
                        "error"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "state": {
                            "type": "string",
                            "enum": [
                              "idle",
                              "running",
                              "completed",
                              "failed"
                            ]
                          },
                          "runId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "step": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "progress": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "requestedNumbers": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "candidateNumbers": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "orderedNumbers": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "provisionedNumbers": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "numberStates": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "phoneNumber": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "pending",
                                    "provisioning",
                                    "provisioned",
                                    "failed"
                                  ]
                                },
                                "progress": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                "error": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "phoneNumber",
                                "status",
                                "progress",
                                "error"
                              ],
                              "patternProperties": {
                                "^(?!(?:phoneNumber|status|progress|error)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "phoneNumber",
                                  "status",
                                  "progress",
                                  "error"
                                ]
                              }
                            }
                          },
                          "currentNumber": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "error": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "state",
                          "runId",
                          "step",
                          "progress",
                          "requestedNumbers",
                          "candidateNumbers",
                          "orderedNumbers",
                          "provisionedNumbers",
                          "numberStates",
                          "currentNumber",
                          "reason",
                          "error"
                        ],
                        "patternProperties": {
                          "^(?!(?:state|runId|step|progress|requestedNumbers|candidateNumbers|orderedNumbers|provisionedNumbers|numberStates|currentNumber|reason|error)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "state",
                            "runId",
                            "step",
                            "progress",
                            "requestedNumbers",
                            "candidateNumbers",
                            "orderedNumbers",
                            "provisionedNumbers",
                            "numberStates",
                            "currentNumber",
                            "reason",
                            "error"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "dialerNumbers.provision"
      },
      "scopes": [
        "dialer:manage_numbers_self",
        "dialer:manage_numbers",
        "dialer:read"
      ],
      "bundles": [
        "dialer_operations"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "dialerNumbers.provision",
        "dialerNumbers.provisionStatus"
      ],
      "invocations": [
        {
          "operationId": "dialerNumbers.provision",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/numbers/provision",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerNumbers.provisionStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/numbers/provision-status",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": [
              "provision",
              "status"
            ]
          },
          "provision": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10
              },
              "countryCode": {
                "type": "string",
                "enum": [
                  "US",
                  "CA",
                  "GB",
                  "AU",
                  "NZ"
                ]
              },
              "areaCode": {
                "$ref": "#/$defs/AreaCode"
              },
              "assignedUserId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "phoneNumbers": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/E164PhoneNumber"
                },
                "minItems": 1,
                "maxItems": 10
              }
            },
            "required": [
              "count"
            ],
            "patternProperties": {
              "^(?!(?:count|countryCode|areaCode|assignedUserId|phoneNumbers)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "count",
                "countryCode",
                "areaCode",
                "assignedUserId",
                "phoneNumbers"
              ]
            }
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action|provision)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action",
            "provision"
          ]
        },
        "$defs": {
          "AreaCode": {
            "type": "string",
            "pattern": "^\\d{3}$"
          },
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "push_lead_to_attio",
      "description": "Push one lead to its Attio person record now, as a durable job — creating the person on first push and refreshing it afterwards.\n\nUse when the customer asks for a specific lead to appear or refresh in Attio, including while automatic lead sync is off. Poll the handle, then read the lead link for the record URL or the last push error.\n\nRequires a usable Attio connection with record write grants. It never runs inline and never pushes more than the one lead; bulk imports never auto-push.",
      "inputSchema": {
        "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"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "leadId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|leadId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "leadId"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "statusUrl": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "$ref": "#/$defs/HttpResourcePath"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "waiting_for_user",
              "succeeded",
              "partially_succeeded",
              "failed",
              "canceled",
              "canceling"
            ]
          },
          "acceptedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "progress": {
            "type": "object",
            "properties": {
              "completed": {
                "type": "integer",
                "minimum": 0
              },
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "message": {
                "$ref": "#/$defs/NonEmptyString"
              }
            },
            "required": [
              "completed"
            ],
            "patternProperties": {
              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "completed",
                "total",
                "message"
              ]
            }
          },
          "canCancel": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "statusUrl",
          "state",
          "acceptedAt",
          "canCancel"
        ],
        "patternProperties": {
          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "statusUrl",
            "state",
            "acceptedAt",
            "progress",
            "canCancel"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          }
        }
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "attioOutbound.pushLead"
      },
      "scopes": [
        "integration:update",
        "lead:read"
      ],
      "bundles": [
        "attio_crm"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "attioOutbound.pushLead"
      ],
      "invocations": [
        {
          "operationId": "attioOutbound.pushLead",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/leads/:leadId/push",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "leadId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|leadId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "leadId"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "read_account_security",
      "description": "Read your own email, sign-in connections, password availability, MFA policy and sessions; no secrets are returned.\n\nBefore a change, or to check actual provider state after completing a security handoff. Requires the account owner's human OAuth session.\n\nCannot inspect other users or use organization API keys. Delegated agents must hand off to their human.",
      "inputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "email": {
            "$ref": "#/$defs/EmailAddress"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "passwordSet": {
            "type": "boolean"
          },
          "mfaEnabled": {
            "type": "boolean"
          },
          "passwordAuthEnabled": {
            "type": "boolean"
          },
          "mfaAvailable": {
            "type": "boolean"
          },
          "mfaRequired": {
            "type": "boolean"
          },
          "passwordMinimumLength": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "connections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "provider": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "email": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "provider",
                "email"
              ],
              "patternProperties": {
                "^(?!(?:id|provider|email)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "provider",
                  "email"
                ]
              }
            }
          },
          "sessions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "current": {
                  "type": "boolean"
                },
                "ipAddress": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "userAgent": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "expiresAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "current",
                "ipAddress",
                "userAgent",
                "createdAt",
                "expiresAt"
              ],
              "patternProperties": {
                "^(?!(?:id|current|ipAddress|userAgent|createdAt|expiresAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "current",
                  "ipAddress",
                  "userAgent",
                  "createdAt",
                  "expiresAt"
                ]
              }
            }
          },
          "connectionManagementSupported": {
            "type": "boolean"
          },
          "passwordRemovalSupported": {
            "type": "boolean"
          },
          "emailChangeUnlinksConnections": {
            "type": "boolean"
          }
        },
        "required": [
          "email",
          "emailVerified",
          "passwordSet",
          "mfaEnabled",
          "passwordAuthEnabled",
          "mfaAvailable",
          "mfaRequired",
          "passwordMinimumLength",
          "connections",
          "sessions",
          "connectionManagementSupported",
          "passwordRemovalSupported",
          "emailChangeUnlinksConnections"
        ],
        "patternProperties": {
          "^(?!(?:email|emailVerified|passwordSet|mfaEnabled|passwordAuthEnabled|mfaAvailable|mfaRequired|passwordMinimumLength|connections|sessions|connectionManagementSupported|passwordRemovalSupported|emailChangeUnlinksConnections)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "email",
            "emailVerified",
            "passwordSet",
            "mfaEnabled",
            "passwordAuthEnabled",
            "mfaAvailable",
            "mfaRequired",
            "passwordMinimumLength",
            "connections",
            "sessions",
            "connectionManagementSupported",
            "passwordRemovalSupported",
            "emailChangeUnlinksConnections"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_account_security"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "account_security"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "accountSecurity.read"
      ],
      "invocations": [
        {
          "operationId": "accountSecurity.read",
          "method": "GET",
          "path": "/v1/me/security",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "read_api_key_issuance",
      "description": "List every Organization and Workspace the caller can see, with the permissions it may put on a restricted personal API key in each (ADR-075).\n\nUse before proposing a restricted key or before manage_api_key_grants narrows a key's access.\n\nNever creates a key or returns a secret. A full-account key needs no issuance check.",
      "inputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "organizations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "organizationId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                  "$ref": "#/$defs/LeadStoredText"
                },
                "isOwner": {
                  "type": "boolean"
                },
                "organizationPermissions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "allWorkspaces": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "permissions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "permissions"
                      ],
                      "patternProperties": {
                        "^(?!(?:permissions)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "permissions"
                            ]
                          }
                        ]
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "workspaces": {
                  "type": "array",
                  "items": {
                    "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"
                      },
                      "name": {
                        "$ref": "#/$defs/LeadStoredText"
                      },
                      "slug": {
                        "$ref": "#/$defs/LeadStoredText"
                      },
                      "permissions": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "workspaceId",
                      "name",
                      "slug",
                      "permissions"
                    ],
                    "patternProperties": {
                      "^(?!(?:workspaceId|name|slug|permissions)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "workspaceId",
                        "name",
                        "slug",
                        "permissions"
                      ]
                    }
                  }
                }
              },
              "required": [
                "organizationId",
                "name",
                "isOwner",
                "organizationPermissions",
                "allWorkspaces",
                "workspaces"
              ],
              "patternProperties": {
                "^(?!(?:organizationId|name|isOwner|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "organizationId",
                  "name",
                  "isOwner",
                  "organizationPermissions",
                  "allWorkspaces",
                  "workspaces"
                ]
              }
            }
          },
          "expiryOptions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "30_days",
                "90_days",
                "365_days",
                "never"
              ]
            }
          },
          "defaultExpiry": {
            "type": "string",
            "enum": [
              "30_days",
              "90_days",
              "365_days",
              "never"
            ]
          }
        },
        "required": [
          "organizations",
          "expiryOptions",
          "defaultExpiry"
        ],
        "patternProperties": {
          "^(?!(?:organizations|expiryOptions|defaultExpiry)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizations",
            "expiryOptions",
            "defaultExpiry"
          ]
        },
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_api_key_issuance"
      },
      "scopes": [
        "apiKey:read"
      ],
      "bundles": [
        "security_administration"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "personalApiKeys.issuance"
      ],
      "invocations": [
        {
          "operationId": "personalApiKeys.issuance",
          "method": "GET",
          "path": "/v1/me/api-key-issuance",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "patternProperties": {
          "^[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "not": {}
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "read_api_keys",
      "description": "Read the caller's own personal API keys (ADR-075): each key's name, access (full account or per-Organization grants), Organizations that blocked it, last use, and expiry.\n\nUse `list` or `get` to review what the person's keys can reach, before narrowing or revoking one.\n\nNever returns a secret and never shows other people's keys; for members' keys that can act in an Organization use read_organization_api_key_access. To create a key, hand the person `/account/api-keys` in the Scheduler Zero web app.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "list",
              "get"
            ]
          },
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "action"
        ],
        "patternProperties": {
          "^(?!(?:action|apiKeyId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "apiKeyId"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "apiKeys": {
                        "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
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "access": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "full"
                                          ]
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "type"
                                        ]
                                      }
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "restricted"
                                          ]
                                        }
                                      ]
                                    },
                                    "organizations": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "organizationId": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "organizationName": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/$defs/LeadStoredText"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "organizationPermissions": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "allWorkspaces": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "roles": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "permissions": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string"
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "roles",
                                                  "permissions"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "roles",
                                                    "permissions"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "workspaces": {
                                            "type": "array",
                                            "items": {
                                              "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"
                                                },
                                                "workspaceName": {
                                                  "anyOf": [
                                                    {
                                                      "$ref": "#/$defs/LeadStoredText"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "roles": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                },
                                                "permissions": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              "required": [
                                                "workspaceId",
                                                "workspaceName",
                                                "roles",
                                                "permissions"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:workspaceId|workspaceName|roles|permissions)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "workspaceId",
                                                  "workspaceName",
                                                  "roles",
                                                  "permissions"
                                                ]
                                              }
                                            }
                                          }
                                        },
                                        "required": [
                                          "organizationId",
                                          "organizationName",
                                          "organizationPermissions",
                                          "allWorkspaces",
                                          "workspaces"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:organizationId|organizationName|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "organizationId",
                                            "organizationName",
                                            "organizationPermissions",
                                            "allWorkspaces",
                                            "workspaces"
                                          ]
                                        }
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "organizations"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|organizations)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "organizations"
                                    ]
                                  }
                                }
                              ]
                            },
                            "prefix": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "blockedOrganizations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "organizationId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "organizationName": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "blockedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  }
                                },
                                "required": [
                                  "organizationId",
                                  "organizationName",
                                  "blockedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:organizationId|organizationName|blockedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "organizationId",
                                    "organizationName",
                                    "blockedAt"
                                  ]
                                }
                              }
                            },
                            "expiresAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastUsedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastRotatedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "description",
                            "access",
                            "prefix",
                            "blockedOrganizations",
                            "expiresAt",
                            "lastUsedAt",
                            "lastRotatedAt",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|description|access|prefix|blockedOrganizations|expiresAt|lastUsedAt|lastRotatedAt|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "description",
                              "access",
                              "prefix",
                              "blockedOrganizations",
                              "expiresAt",
                              "lastUsedAt",
                              "lastRotatedAt",
                              "createdAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "apiKeys"
                    ],
                    "patternProperties": {
                      "^(?!(?:apiKeys)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "apiKeys"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "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
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "access": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "full"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "patternProperties": {
                              "^(?!(?:type)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "type"
                                  ]
                                }
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "restricted"
                                    ]
                                  }
                                ]
                              },
                              "organizations": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "organizationId": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "organizationName": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "organizationPermissions": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "allWorkspaces": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "roles": {
                                              "type": "array",
                                              "items": {
                                                "type": "string"
                                              }
                                            },
                                            "permissions": {
                                              "type": "array",
                                              "items": {
                                                "type": "string"
                                              }
                                            }
                                          },
                                          "required": [
                                            "roles",
                                            "permissions"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "roles",
                                              "permissions"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "workspaces": {
                                      "type": "array",
                                      "items": {
                                        "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"
                                          },
                                          "workspaceName": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/$defs/LeadStoredText"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "roles": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "permissions": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "required": [
                                          "workspaceId",
                                          "workspaceName",
                                          "roles",
                                          "permissions"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:workspaceId|workspaceName|roles|permissions)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "workspaceId",
                                            "workspaceName",
                                            "roles",
                                            "permissions"
                                          ]
                                        }
                                      }
                                    }
                                  },
                                  "required": [
                                    "organizationId",
                                    "organizationName",
                                    "organizationPermissions",
                                    "allWorkspaces",
                                    "workspaces"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:organizationId|organizationName|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "organizationId",
                                      "organizationName",
                                      "organizationPermissions",
                                      "allWorkspaces",
                                      "workspaces"
                                    ]
                                  }
                                }
                              }
                            },
                            "required": [
                              "type",
                              "organizations"
                            ],
                            "patternProperties": {
                              "^(?!(?:type|organizations)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "type",
                                "organizations"
                              ]
                            }
                          }
                        ]
                      },
                      "prefix": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "blockedOrganizations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "organizationId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "organizationName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "blockedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "organizationId",
                            "organizationName",
                            "blockedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:organizationId|organizationName|blockedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "organizationId",
                              "organizationName",
                              "blockedAt"
                            ]
                          }
                        }
                      },
                      "expiresAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lastUsedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lastRotatedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "access",
                      "prefix",
                      "blockedOrganizations",
                      "expiresAt",
                      "lastUsedAt",
                      "lastRotatedAt",
                      "createdAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|description|access|prefix|blockedOrganizations|expiresAt|lastUsedAt|lastRotatedAt|createdAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "description",
                        "access",
                        "prefix",
                        "blockedOrganizations",
                        "expiresAt",
                        "lastUsedAt",
                        "lastRotatedAt",
                        "createdAt"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "apiKeys": {
                            "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
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 1000
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "access": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "full"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:type)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "type"
                                            ]
                                          }
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "restricted"
                                              ]
                                            }
                                          ]
                                        },
                                        "organizations": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "organizationId": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "organizationName": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/$defs/LeadStoredText"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "organizationPermissions": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              },
                                              "allWorkspaces": {
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "roles": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      },
                                                      "permissions": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    },
                                                    "required": [
                                                      "roles",
                                                      "permissions"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "roles",
                                                        "permissions"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "workspaces": {
                                                "type": "array",
                                                "items": {
                                                  "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"
                                                    },
                                                    "workspaceName": {
                                                      "anyOf": [
                                                        {
                                                          "$ref": "#/$defs/LeadStoredText"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "roles": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string"
                                                      }
                                                    },
                                                    "permissions": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string"
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "workspaceId",
                                                    "workspaceName",
                                                    "roles",
                                                    "permissions"
                                                  ],
                                                  "patternProperties": {
                                                    "^(?!(?:workspaceId|workspaceName|roles|permissions)$)[\\s\\S]*$": false
                                                  },
                                                  "additionalProperties": true,
                                                  "propertyNames": {
                                                    "type": "string",
                                                    "enum": [
                                                      "workspaceId",
                                                      "workspaceName",
                                                      "roles",
                                                      "permissions"
                                                    ]
                                                  }
                                                }
                                              }
                                            },
                                            "required": [
                                              "organizationId",
                                              "organizationName",
                                              "organizationPermissions",
                                              "allWorkspaces",
                                              "workspaces"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:organizationId|organizationName|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "organizationId",
                                                "organizationName",
                                                "organizationPermissions",
                                                "allWorkspaces",
                                                "workspaces"
                                              ]
                                            }
                                          }
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "organizations"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:type|organizations)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "type",
                                          "organizations"
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "prefix": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "blockedOrganizations": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "organizationId": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      },
                                      "organizationName": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "blockedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      }
                                    },
                                    "required": [
                                      "organizationId",
                                      "organizationName",
                                      "blockedAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:organizationId|organizationName|blockedAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "organizationId",
                                        "organizationName",
                                        "blockedAt"
                                      ]
                                    }
                                  }
                                },
                                "expiresAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastUsedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastRotatedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "description",
                                "access",
                                "prefix",
                                "blockedOrganizations",
                                "expiresAt",
                                "lastUsedAt",
                                "lastRotatedAt",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|description|access|prefix|blockedOrganizations|expiresAt|lastUsedAt|lastRotatedAt|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "description",
                                  "access",
                                  "prefix",
                                  "blockedOrganizations",
                                  "expiresAt",
                                  "lastUsedAt",
                                  "lastRotatedAt",
                                  "createdAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "apiKeys"
                        ],
                        "patternProperties": {
                          "^(?!(?:apiKeys)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "apiKeys"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "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
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1000
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "access": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "full"
                                        ]
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ],
                                "patternProperties": {
                                  "^(?!(?:type)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "type"
                                      ]
                                    }
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "restricted"
                                        ]
                                      }
                                    ]
                                  },
                                  "organizations": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "organizationId": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "organizationName": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/LeadStoredText"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "organizationPermissions": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        },
                                        "allWorkspaces": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "roles": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                },
                                                "permissions": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              "required": [
                                                "roles",
                                                "permissions"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "roles",
                                                  "permissions"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "workspaces": {
                                          "type": "array",
                                          "items": {
                                            "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"
                                              },
                                              "workspaceName": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/$defs/LeadStoredText"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "roles": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              },
                                              "permissions": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "workspaceId",
                                              "workspaceName",
                                              "roles",
                                              "permissions"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:workspaceId|workspaceName|roles|permissions)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "workspaceId",
                                                "workspaceName",
                                                "roles",
                                                "permissions"
                                              ]
                                            }
                                          }
                                        }
                                      },
                                      "required": [
                                        "organizationId",
                                        "organizationName",
                                        "organizationPermissions",
                                        "allWorkspaces",
                                        "workspaces"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:organizationId|organizationName|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "organizationId",
                                          "organizationName",
                                          "organizationPermissions",
                                          "allWorkspaces",
                                          "workspaces"
                                        ]
                                      }
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "organizations"
                                ],
                                "patternProperties": {
                                  "^(?!(?:type|organizations)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "type",
                                    "organizations"
                                  ]
                                }
                              }
                            ]
                          },
                          "prefix": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "blockedOrganizations": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "organizationId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "organizationName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "blockedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "organizationId",
                                "organizationName",
                                "blockedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:organizationId|organizationName|blockedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "organizationId",
                                  "organizationName",
                                  "blockedAt"
                                ]
                              }
                            }
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastUsedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastRotatedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "access",
                          "prefix",
                          "blockedOrganizations",
                          "expiresAt",
                          "lastUsedAt",
                          "lastRotatedAt",
                          "createdAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|description|access|prefix|blockedOrganizations|expiresAt|lastUsedAt|lastRotatedAt|createdAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "description",
                            "access",
                            "prefix",
                            "blockedOrganizations",
                            "expiresAt",
                            "lastUsedAt",
                            "lastRotatedAt",
                            "createdAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_api_keys"
      },
      "scopes": [
        "apiKey:read"
      ],
      "bundles": [
        "security_administration"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "personalApiKeys.list",
        "personalApiKeys.get"
      ],
      "invocations": [
        {
          "operationId": "personalApiKeys.list",
          "method": "GET",
          "path": "/v1/me/api-keys",
          "workspaceScoped": false
        },
        {
          "operationId": "personalApiKeys.get",
          "method": "GET",
          "path": "/v1/me/api-keys/:apiKeyId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "list",
              "get"
            ]
          },
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "action"
        ],
        "patternProperties": {
          "^(?!(?:action|apiKeyId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "action",
            "apiKeyId"
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "read_attio_records",
      "description": "Read the workspace's Attio CRM and its local Attio state: probe the connection, browse lists, list entries, people, companies, attributes, and workspace members, preview what an import would write, and read saved field mappings, import records, outbound toggles, and a lead's CRM link.\n\nUse before proposing an import (to find the list or person and preview the email that would be chosen), to explain why a lead is or is not in Attio, and to ground any claim about which outbound writes are switched on. The cached_lists scope uses offset pagination: request up to 100 items (default 50) and continue at pagination.offset + pagination.limit while pagination.hasMore is true.\n\nProvider reads answer TemporarilyUnavailable while Attio is unconnected or awaiting reauthorization — that is a state to report, not an error to retry. The cached list catalog does not call Attio; sync it through manage_attio_mappings when it looks stale. A lead link of null means not linked yet, including while a creation is in flight. This never writes anything, locally or in Attio.",
      "inputSchema": {
        "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"
          },
          "scope": {
            "type": "string",
            "enum": [
              "connection_test",
              "mappings",
              "default_mapping",
              "cached_lists",
              "list_attributes",
              "list_entries",
              "list_entry",
              "people_attributes",
              "company_attributes",
              "people_search",
              "person",
              "person_import_preview",
              "workspace_members",
              "import_history",
              "import_details",
              "outbound_settings",
              "lead_link"
            ]
          },
          "listId": {
            "$ref": "#/$defs/ProviderId"
          },
          "entryId": {
            "$ref": "#/$defs/ProviderId"
          },
          "recordId": {
            "$ref": "#/$defs/ProviderId"
          },
          "importId": {
            "$ref": "#/$defs/AttioImportId"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "parentObject": {
            "type": "string",
            "enum": [
              "people",
              "companies"
            ]
          },
          "search": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "emailStrategy": {
            "type": "string",
            "enum": [
              "first",
              "work",
              "personal"
            ]
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId",
          "scope"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|scope|listId|entryId|recordId|importId|leadId|campaignId|parentObject|search|emailStrategy|offset|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "scope",
            "listId",
            "entryId",
            "recordId",
            "importId",
            "leadId",
            "campaignId",
            "parentObject",
            "search",
            "emailStrategy",
            "offset",
            "limit"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "AttioImportId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "AttioConnectionTestResult": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "status": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "connected"
                        ]
                      }
                    ]
                  },
                  "providerWorkspaceId": {
                    "$ref": "#/$defs/ProviderId"
                  },
                  "providerWorkspaceName": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ShortText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "grantedScopes": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "status",
                  "providerWorkspaceId",
                  "providerWorkspaceName",
                  "grantedScopes"
                ],
                "patternProperties": {
                  "^(?!(?:status|providerWorkspaceId|providerWorkspaceName|grantedScopes)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "status",
                    "providerWorkspaceId",
                    "providerWorkspaceName",
                    "grantedScopes"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "not_connected",
                      "reauthorization_required",
                      "provider_unreachable"
                    ]
                  }
                },
                "required": [
                  "status"
                ],
                "patternProperties": {
                  "^(?!(?:status)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            ]
          },
          "AttioFieldMappingId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "AttioFieldMappingRules": {
            "type": "object",
            "additionalProperties": true,
            "minProperties": 0,
            "maxProperties": 200
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "AttioFieldMapping": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/AttioFieldMappingId"
              },
              "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"
              },
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "rules": {
                "$ref": "#/$defs/AttioFieldMappingRules"
              },
              "emailStrategy": {
                "type": "string",
                "enum": [
                  "first",
                  "work",
                  "personal",
                  "ask"
                ]
              },
              "duplicateBehavior": {
                "type": "string",
                "enum": [
                  "skip",
                  "update"
                ]
              },
              "isDefault": {
                "type": "boolean"
              },
              "providerWorkspaceId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ProviderId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "updatedAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "name",
              "rules",
              "emailStrategy",
              "duplicateBehavior",
              "isDefault",
              "providerWorkspaceId",
              "createdAt",
              "updatedAt"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|name|rules|emailStrategy|duplicateBehavior|isDefault|providerWorkspaceId|createdAt|updatedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "name",
                "rules",
                "emailStrategy",
                "duplicateBehavior",
                "isDefault",
                "providerWorkspaceId",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "AttioDefaultFieldMapping": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "saved"
                        ]
                      }
                    ]
                  },
                  "mapping": {
                    "$ref": "#/$defs/AttioFieldMapping"
                  }
                },
                "required": [
                  "kind",
                  "mapping"
                ],
                "patternProperties": {
                  "^(?!(?:kind|mapping)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "mapping"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "suggested"
                        ]
                      }
                    ]
                  },
                  "rules": {
                    "$ref": "#/$defs/AttioFieldMappingRules"
                  }
                },
                "required": [
                  "kind",
                  "rules"
                ],
                "patternProperties": {
                  "^(?!(?:kind|rules)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "rules"
                  ]
                }
              }
            ]
          },
          "AttioCachedList": {
            "type": "object",
            "properties": {
              "listId": {
                "$ref": "#/$defs/ProviderId"
              },
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "parentObject": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ShortText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "entryCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastSyncedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "listId",
              "name",
              "parentObject",
              "entryCount",
              "lastSyncedAt"
            ],
            "patternProperties": {
              "^(?!(?:listId|name|parentObject|entryCount|lastSyncedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "listId",
                "name",
                "parentObject",
                "entryCount",
                "lastSyncedAt"
              ]
            }
          },
          "AttioAttribute": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/ProviderId"
              },
              "title": {
                "$ref": "#/$defs/ShortText"
              },
              "apiSlug": {
                "$ref": "#/$defs/ShortText"
              },
              "type": {
                "$ref": "#/$defs/ShortText"
              },
              "isRequired": {
                "type": "boolean"
              },
              "isMultiselect": {
                "type": "boolean"
              },
              "isWritable": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "title",
              "apiSlug",
              "type",
              "isRequired",
              "isMultiselect",
              "isWritable"
            ],
            "patternProperties": {
              "^(?!(?:id|title|apiSlug|type|isRequired|isMultiselect|isWritable)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "title",
                "apiSlug",
                "type",
                "isRequired",
                "isMultiselect",
                "isWritable"
              ]
            }
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "AttioRecordValues": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/$defs/Union_"
            },
            "minProperties": 0,
            "maxProperties": 1000
          },
          "AttioListEntry": {
            "type": "object",
            "properties": {
              "entryId": {
                "$ref": "#/$defs/ProviderId"
              },
              "recordId": {
                "$ref": "#/$defs/ProviderId"
              },
              "createdAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "values": {
                "$ref": "#/$defs/AttioRecordValues"
              }
            },
            "required": [
              "entryId",
              "recordId",
              "createdAt",
              "values"
            ],
            "patternProperties": {
              "^(?!(?:entryId|recordId|createdAt|values)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "entryId",
                "recordId",
                "createdAt",
                "values"
              ]
            }
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "AttioPersonSummary": {
            "type": "object",
            "properties": {
              "recordId": {
                "$ref": "#/$defs/ProviderId"
              },
              "name": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "emails": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ShortText"
                },
                "maxItems": 100
              },
              "jobTitle": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyRecordId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ProviderId"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "recordId",
              "name",
              "firstName",
              "lastName",
              "emails",
              "jobTitle",
              "companyRecordId"
            ],
            "patternProperties": {
              "^(?!(?:recordId|name|firstName|lastName|emails|jobTitle|companyRecordId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "recordId",
                "name",
                "firstName",
                "lastName",
                "emails",
                "jobTitle",
                "companyRecordId"
              ]
            }
          },
          "AttioCompany": {
            "type": "object",
            "properties": {
              "recordId": {
                "$ref": "#/$defs/ProviderId"
              },
              "name": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "domain": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "websiteUrl": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "values": {
                "$ref": "#/$defs/AttioRecordValues"
              }
            },
            "required": [
              "recordId",
              "name",
              "domain",
              "websiteUrl",
              "values"
            ],
            "patternProperties": {
              "^(?!(?:recordId|name|domain|websiteUrl|values)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "recordId",
                "name",
                "domain",
                "websiteUrl",
                "values"
              ]
            }
          },
          "AttioPerson": {
            "type": "object",
            "properties": {
              "recordId": {
                "$ref": "#/$defs/ProviderId"
              },
              "name": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "emails": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ShortText"
                },
                "maxItems": 100
              },
              "values": {
                "$ref": "#/$defs/AttioRecordValues"
              },
              "company": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/AttioCompany"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "recordId",
              "name",
              "firstName",
              "lastName",
              "emails",
              "values",
              "company"
            ],
            "patternProperties": {
              "^(?!(?:recordId|name|firstName|lastName|emails|values|company)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "recordId",
                "name",
                "firstName",
                "lastName",
                "emails",
                "values",
                "company"
              ]
            }
          },
          "AttioPersonImportPreview": {
            "type": "object",
            "properties": {
              "recordId": {
                "$ref": "#/$defs/ProviderId"
              },
              "emails": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ShortText"
                },
                "maxItems": 100
              },
              "selectedEmail": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hasMultipleEmails": {
                "type": "boolean"
              },
              "firstName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jobTitle": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "city": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "region": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "country": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "company": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "recordId": {
                        "$ref": "#/$defs/ProviderId"
                      },
                      "name": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "domain": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "websiteUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "recordId",
                      "name",
                      "domain",
                      "websiteUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:recordId|name|domain|websiteUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "recordId",
                        "name",
                        "domain",
                        "websiteUrl"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "values": {
                "$ref": "#/$defs/AttioRecordValues"
              }
            },
            "required": [
              "recordId",
              "emails",
              "selectedEmail",
              "hasMultipleEmails",
              "firstName",
              "lastName",
              "jobTitle",
              "city",
              "region",
              "country",
              "company",
              "values"
            ],
            "patternProperties": {
              "^(?!(?:recordId|emails|selectedEmail|hasMultipleEmails|firstName|lastName|jobTitle|city|region|country|company|values)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "recordId",
                "emails",
                "selectedEmail",
                "hasMultipleEmails",
                "firstName",
                "lastName",
                "jobTitle",
                "city",
                "region",
                "country",
                "company",
                "values"
              ]
            }
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "AttioWorkspaceMember": {
            "type": "object",
            "properties": {
              "memberId": {
                "$ref": "#/$defs/ProviderId"
              },
              "name": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/LeadStoredText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "avatarUrl": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HttpUrl"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "accessLevel": {
                "$ref": "#/$defs/ShortText"
              },
              "active": {
                "type": "boolean"
              }
            },
            "required": [
              "memberId",
              "name",
              "firstName",
              "lastName",
              "email",
              "avatarUrl",
              "accessLevel",
              "active"
            ],
            "patternProperties": {
              "^(?!(?:memberId|name|firstName|lastName|email|avatarUrl|accessLevel|active)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "memberId",
                "name",
                "firstName",
                "lastName",
                "email",
                "avatarUrl",
                "accessLevel",
                "active"
              ]
            }
          },
          "AttioWorkspaceMembersResult": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "status": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "loaded"
                        ]
                      }
                    ]
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/AttioWorkspaceMember"
                    },
                    "maxItems": 1000
                  }
                },
                "required": [
                  "status",
                  "items"
                ],
                "patternProperties": {
                  "^(?!(?:status|items)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "status",
                    "items"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "not_connected",
                      "reauthorization_required",
                      "provider_unreachable"
                    ]
                  }
                },
                "required": [
                  "status"
                ],
                "patternProperties": {
                  "^(?!(?:status)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            ]
          },
          "AttioImportId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "AttioImportRecord": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/AttioImportId"
              },
              "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"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "in_progress",
                  "completed",
                  "partial",
                  "failed"
                ]
              },
              "sourceType": {
                "type": "string",
                "enum": [
                  "people",
                  "list"
                ]
              },
              "sourceId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ProviderId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sourceName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ShortText"
                  },
                  {
                    "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"
                  }
                ]
              },
              "fieldMappingId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/AttioFieldMappingId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "operationId": {
                "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"
                  }
                ]
              },
              "totalRecords": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "successCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "failedCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "skippedCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "startedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "completedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "sourceType",
              "sourceId",
              "sourceName",
              "campaignId",
              "fieldMappingId",
              "operationId",
              "totalRecords",
              "successCount",
              "failedCount",
              "skippedCount",
              "startedAt",
              "completedAt",
              "createdAt"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|sourceType|sourceId|sourceName|campaignId|fieldMappingId|operationId|totalRecords|successCount|failedCount|skippedCount|startedAt|completedAt|createdAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "sourceType",
                "sourceId",
                "sourceName",
                "campaignId",
                "fieldMappingId",
                "operationId",
                "totalRecords",
                "successCount",
                "failedCount",
                "skippedCount",
                "startedAt",
                "completedAt",
                "createdAt"
              ]
            }
          },
          "AttioImportDetail": {
            "type": "object",
            "properties": {
              "import": {
                "$ref": "#/$defs/AttioImportRecord"
              },
              "errors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "recordId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/ProviderId"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/ShortText"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "error": {
                      "$ref": "#/$defs/ShortText"
                    }
                  },
                  "required": [
                    "recordId",
                    "email",
                    "error"
                  ],
                  "patternProperties": {
                    "^(?!(?:recordId|email|error)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "recordId",
                      "email",
                      "error"
                    ]
                  }
                },
                "maxItems": 100
              }
            },
            "required": [
              "import",
              "errors"
            ],
            "patternProperties": {
              "^(?!(?:import|errors)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "import",
                "errors"
              ]
            }
          },
          "AttioOutboundSettings": {
            "type": "object",
            "properties": {
              "pushLeads": {
                "type": "boolean"
              },
              "pushCallNotes": {
                "type": "boolean"
              },
              "pushReplyNotes": {
                "type": "boolean"
              },
              "pushSendNotes": {
                "type": "boolean"
              }
            },
            "required": [
              "pushLeads",
              "pushCallNotes",
              "pushReplyNotes",
              "pushSendNotes"
            ],
            "patternProperties": {
              "^(?!(?:pushLeads|pushCallNotes|pushReplyNotes|pushSendNotes)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "pushLeads",
                "pushCallNotes",
                "pushReplyNotes",
                "pushSendNotes"
              ]
            }
          },
          "AttioOutboundSettingsResult": {
            "type": "object",
            "properties": {
              "connected": {
                "type": "boolean"
              },
              "settings": {
                "$ref": "#/$defs/AttioOutboundSettings"
              }
            },
            "required": [
              "connected",
              "settings"
            ],
            "patternProperties": {
              "^(?!(?:connected|settings)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "connected",
                "settings"
              ]
            }
          },
          "AttioLeadLink": {
            "type": "object",
            "properties": {
              "provider": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "attio"
                    ]
                  }
                ]
              },
              "object": {
                "$ref": "#/$defs/ShortText"
              },
              "recordId": {
                "$ref": "#/$defs/ProviderId"
              },
              "externalUrl": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HttpUrl"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastPushedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastPushError": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ShortText"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "provider",
              "object",
              "recordId",
              "externalUrl",
              "lastPushedAt",
              "lastPushError"
            ],
            "patternProperties": {
              "^(?!(?:provider|object|recordId|externalUrl|lastPushedAt|lastPushError)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "provider",
                "object",
                "recordId",
                "externalUrl",
                "lastPushedAt",
                "lastPushError"
              ]
            }
          },
          "AttioLeadLinkResult": {
            "type": "object",
            "properties": {
              "connected": {
                "type": "boolean"
              },
              "providerWorkspaceName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ShortText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "settings": {
                "$ref": "#/$defs/AttioOutboundSettings"
              },
              "link": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/AttioLeadLink"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "connected",
              "providerWorkspaceName",
              "settings",
              "link"
            ],
            "patternProperties": {
              "^(?!(?:connected|providerWorkspaceName|settings|link)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "connected",
                "providerWorkspaceName",
                "settings",
                "link"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/$defs/AttioConnectionTestResult"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/AttioFieldMapping"
                        },
                        "maxItems": 200
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "$ref": "#/$defs/AttioDefaultFieldMapping"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/AttioCachedList"
                        },
                        "maxItems": 100
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "hasMore": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "offset",
                          "limit",
                          "hasMore"
                        ],
                        "patternProperties": {
                          "^(?!(?:offset|limit|hasMore)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "offset",
                            "limit",
                            "hasMore"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/AttioAttribute"
                        },
                        "maxItems": 1000
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/AttioListEntry"
                        },
                        "maxItems": 100
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "hasMore": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "offset",
                          "limit",
                          "hasMore"
                        ],
                        "patternProperties": {
                          "^(?!(?:offset|limit|hasMore)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "offset",
                            "limit",
                            "hasMore"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "$ref": "#/$defs/AttioListEntry"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/AttioPersonSummary"
                        },
                        "maxItems": 50
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "$ref": "#/$defs/AttioPerson"
                  },
                  {
                    "$ref": "#/$defs/AttioPersonImportPreview"
                  },
                  {
                    "$ref": "#/$defs/AttioWorkspaceMembersResult"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/AttioImportRecord"
                        },
                        "maxItems": 100
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "hasMore": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "offset",
                          "limit",
                          "hasMore"
                        ],
                        "patternProperties": {
                          "^(?!(?:offset|limit|hasMore)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "offset",
                            "limit",
                            "hasMore"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "$ref": "#/$defs/AttioImportDetail"
                  },
                  {
                    "$ref": "#/$defs/AttioOutboundSettingsResult"
                  },
                  {
                    "$ref": "#/$defs/AttioLeadLinkResult"
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/AttioConnectionTestResult"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/AttioFieldMapping"
                            },
                            "maxItems": 200
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "$ref": "#/$defs/AttioDefaultFieldMapping"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/AttioCachedList"
                            },
                            "maxItems": 100
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "limit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "hasMore": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "offset",
                              "limit",
                              "hasMore"
                            ],
                            "patternProperties": {
                              "^(?!(?:offset|limit|hasMore)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "offset",
                                "limit",
                                "hasMore"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/AttioAttribute"
                            },
                            "maxItems": 1000
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/AttioListEntry"
                            },
                            "maxItems": 100
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "limit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "hasMore": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "offset",
                              "limit",
                              "hasMore"
                            ],
                            "patternProperties": {
                              "^(?!(?:offset|limit|hasMore)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "offset",
                                "limit",
                                "hasMore"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "$ref": "#/$defs/AttioListEntry"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/AttioPersonSummary"
                            },
                            "maxItems": 50
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "$ref": "#/$defs/AttioPerson"
                      },
                      {
                        "$ref": "#/$defs/AttioPersonImportPreview"
                      },
                      {
                        "$ref": "#/$defs/AttioWorkspaceMembersResult"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/AttioImportRecord"
                            },
                            "maxItems": 100
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "limit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "hasMore": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "offset",
                              "limit",
                              "hasMore"
                            ],
                            "patternProperties": {
                              "^(?!(?:offset|limit|hasMore)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "offset",
                                "limit",
                                "hasMore"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "$ref": "#/$defs/AttioImportDetail"
                      },
                      {
                        "$ref": "#/$defs/AttioOutboundSettingsResult"
                      },
                      {
                        "$ref": "#/$defs/AttioLeadLinkResult"
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_attio_records"
      },
      "scopes": [
        "integration:read",
        "lead:read"
      ],
      "bundles": [
        "attio_crm"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "attio.testConnection",
        "attioMappings.list",
        "attioMappings.getDefault",
        "attioBrowse.lists",
        "attioBrowse.listAttributes",
        "attioBrowse.listEntries",
        "attioBrowse.listEntry",
        "attioBrowse.peopleAttributes",
        "attioBrowse.companyAttributes",
        "attioBrowse.searchPeople",
        "attioBrowse.person",
        "attioBrowse.personImportPreview",
        "attioBrowse.workspaceMembers",
        "attioImports.history",
        "attioImports.details",
        "attioOutbound.settings",
        "attioOutbound.leadLink"
      ],
      "invocations": [
        {
          "operationId": "attio.testConnection",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/test",
          "workspaceScoped": false
        },
        {
          "operationId": "attioMappings.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/mappings",
          "workspaceScoped": false
        },
        {
          "operationId": "attioMappings.getDefault",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/mappings/default",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.lists",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/lists",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.listAttributes",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/lists/:listId/attributes",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.listEntries",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/lists/:listId/entries",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.listEntry",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/lists/:listId/entries/:entryId",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.peopleAttributes",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/people/attributes",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.companyAttributes",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/companies/attributes",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.searchPeople",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/people/search",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.person",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/people/:recordId",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.personImportPreview",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/people/:recordId/import-preview",
          "workspaceScoped": false
        },
        {
          "operationId": "attioBrowse.workspaceMembers",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/workspace-members",
          "workspaceScoped": false
        },
        {
          "operationId": "attioImports.history",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/imports",
          "workspaceScoped": false
        },
        {
          "operationId": "attioImports.details",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/imports/:importId",
          "workspaceScoped": false
        },
        {
          "operationId": "attioOutbound.settings",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/outbound-settings",
          "workspaceScoped": false
        },
        {
          "operationId": "attioOutbound.leadLink",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/attio/leads/:leadId/link",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "scope": {
            "type": "string",
            "enum": [
              "connection_test",
              "mappings",
              "default_mapping",
              "cached_lists",
              "list_attributes",
              "list_entries",
              "list_entry",
              "people_attributes",
              "company_attributes",
              "people_search",
              "person",
              "person_import_preview",
              "workspace_members",
              "import_history",
              "import_details",
              "outbound_settings",
              "lead_link"
            ]
          },
          "listId": {
            "$ref": "#/$defs/ProviderId"
          },
          "entryId": {
            "$ref": "#/$defs/ProviderId"
          },
          "recordId": {
            "$ref": "#/$defs/ProviderId"
          },
          "importId": {
            "$ref": "#/$defs/AttioImportId"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "parentObject": {
            "type": "string",
            "enum": [
              "people",
              "companies"
            ]
          },
          "search": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "emailStrategy": {
            "type": "string",
            "enum": [
              "first",
              "work",
              "personal"
            ]
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId",
          "scope"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|scope|listId|entryId|recordId|importId|leadId|campaignId|parentObject|search|emailStrategy|offset|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "scope",
            "listId",
            "entryId",
            "recordId",
            "importId",
            "leadId",
            "campaignId",
            "parentObject",
            "search",
            "emailStrategy",
            "offset",
            "limit"
          ]
        },
        "$defs": {
          "ProviderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "AttioImportId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "read_call_recordings",
      "description": "Get a short-lived signed URL for a call's recording so it can be listened to or analysed inside the workspace.\n\nUse when a claim about a call needs the audio itself rather than its disposition or transcript summary.\n\nThe URL is a real recording of a real customer conversation: do not forward it, do not embed it anywhere durable, and do not treat it as a share — publishing a recording is a separate, confirmed capability. A recording that is still being prepared reports as temporarily unavailable rather than serving the wrong audio.",
      "inputSchema": {
        "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"
          },
          "callId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "callId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|callId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "callId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "$ref": "#/$defs/HttpUrl"
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "url",
          "expiresAt"
        ],
        "patternProperties": {
          "^(?!(?:url|expiresAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "url",
            "expiresAt"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_call_recordings"
      },
      "scopes": [
        "dialer:read"
      ],
      "bundles": [
        "dialer_media_operations"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerRecordings.playbackUrl"
      ],
      "invocations": [
        {
          "operationId": "dialerRecordings.playbackUrl",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/calls/:callId/recording-url",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "callId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "callId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|callId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "callId"
          ]
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "read_campaign_analytics",
      "description": "Read aggregate campaign performance: workspace totals, the workspace or per-campaign report with its daily send and reply series, one campaign's browser row, and the cohort values analytics can be filtered by.\n\nUse to ground any claim about how a campaign is performing. Workspace roll-ups exclude subsequences so a lead that branched is counted once; per-campaign reads include them, so a subsequence can still be measured on its own.\n\nIt never returns lead-level, per-recipient, or message data — aggregates only. Reply counts are DISTINCT contacts classified by thread label, so they cannot be read back as a list of who replied.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "totals"
                ]
              },
              "campaignFilter": {
                "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"
                      ]
                    }
                  }
                ]
              },
              "folderId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|campaignFilter|folderId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "campaignFilter",
                "folderId"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "report"
                ]
              },
              "campaignFilter": {
                "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"
                      ]
                    }
                  }
                ]
              },
              "folderId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "startDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "endDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "senderProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "recipientProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "senderTagIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "maxItems": 100
              },
              "senderDomains": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/DomainNameEncoded"
                },
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|campaignFilter|folderId|startDate|endDate|senderProviders|recipientProviders|senderTagIds|senderDomains)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "campaignFilter",
                "folderId",
                "startDate",
                "endDate",
                "senderProviders",
                "recipientProviders",
                "senderTagIds",
                "senderDomains"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "report"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "startDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "endDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "senderProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "recipientProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "senderTagIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "maxItems": 100
              },
              "senderDomains": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/DomainNameEncoded"
                },
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|campaignId|startDate|endDate|senderProviders|recipientProviders|senderTagIds|senderDomains)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "campaignId",
                "startDate",
                "endDate",
                "senderProviders",
                "recipientProviders",
                "senderTagIds",
                "senderDomains"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "row_stats"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "campaignId"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "filters"
                ]
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope"
              ]
            }
          }
        ],
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "DomainNameEncoded": {
            "type": "string"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "totalLeads": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "totalContacted": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "totalMeetings": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "replyRate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "positiveReplyRate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "bounceRate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "finishedRate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "recipientBounceCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "senderBounceCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unclassifiedBounceCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "totalLeads",
                      "totalContacted",
                      "totalMeetings",
                      "replyRate",
                      "positiveReplyRate",
                      "bounceRate",
                      "finishedRate"
                    ],
                    "patternProperties": {
                      "^(?!(?:totalLeads|totalContacted|totalMeetings|replyRate|positiveReplyRate|bounceRate|finishedRate|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "totalLeads",
                        "totalContacted",
                        "totalMeetings",
                        "replyRate",
                        "positiveReplyRate",
                        "bounceRate",
                        "finishedRate",
                        "recipientBounceCount",
                        "senderBounceCount",
                        "unclassifiedBounceCount"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "summary": {
                        "type": "object",
                        "properties": {
                          "totalLeads": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalEmailsSent": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalLeadsContacted": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "leadsContactedPercentage": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "newLeadsContacted": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalCompletedLeads": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "finishedPercentage": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "replyRateWithOOO": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "replyRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "positiveReplyRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "bounceRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "unsubscribeRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "replyCountWithOOO": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "positiveReplyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "bounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unsubscribeCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "recipientBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "senderBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unclassifiedBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "recipientBounceRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "senderBounceRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "unclassifiedBounceRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          }
                        },
                        "required": [
                          "totalLeads",
                          "totalEmailsSent",
                          "totalLeadsContacted",
                          "leadsContactedPercentage",
                          "newLeadsContacted",
                          "totalCompletedLeads",
                          "finishedPercentage",
                          "replyRateWithOOO",
                          "replyRate",
                          "positiveReplyRate",
                          "bounceRate",
                          "unsubscribeRate",
                          "replyCountWithOOO",
                          "replyCount",
                          "positiveReplyCount",
                          "bounceCount",
                          "unsubscribeCount"
                        ],
                        "patternProperties": {
                          "^(?!(?:totalLeads|totalEmailsSent|totalLeadsContacted|leadsContactedPercentage|newLeadsContacted|totalCompletedLeads|finishedPercentage|replyRateWithOOO|replyRate|positiveReplyRate|bounceRate|unsubscribeRate|replyCountWithOOO|replyCount|positiveReplyCount|bounceCount|unsubscribeCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|recipientBounceRate|senderBounceRate|unclassifiedBounceRate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "totalLeads",
                            "totalEmailsSent",
                            "totalLeadsContacted",
                            "leadsContactedPercentage",
                            "newLeadsContacted",
                            "totalCompletedLeads",
                            "finishedPercentage",
                            "replyRateWithOOO",
                            "replyRate",
                            "positiveReplyRate",
                            "bounceRate",
                            "unsubscribeRate",
                            "replyCountWithOOO",
                            "replyCount",
                            "positiveReplyCount",
                            "bounceCount",
                            "unsubscribeCount",
                            "recipientBounceCount",
                            "senderBounceCount",
                            "unclassifiedBounceCount",
                            "recipientBounceRate",
                            "senderBounceRate",
                            "unclassifiedBounceRate"
                          ]
                        }
                      },
                      "dailyEmailSent": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "newLead": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "followUp": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "newLead",
                            "followUp"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|newLead|followUp)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "newLead",
                              "followUp"
                            ]
                          }
                        }
                      },
                      "dailyMetrics": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "replyCountWithOOO": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "replyCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "positiveReplyCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "bounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "recipientBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "senderBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "unclassifiedBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "replyCountWithOOO",
                            "replyCount",
                            "positiveReplyCount",
                            "bounceCount"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|replyCountWithOOO|replyCount|positiveReplyCount|bounceCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "replyCountWithOOO",
                              "replyCount",
                              "positiveReplyCount",
                              "bounceCount",
                              "recipientBounceCount",
                              "senderBounceCount",
                              "unclassifiedBounceCount"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "summary",
                      "dailyEmailSent",
                      "dailyMetrics"
                    ],
                    "patternProperties": {
                      "^(?!(?:summary|dailyEmailSent|dailyMetrics)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "summary",
                        "dailyEmailSent",
                        "dailyMetrics"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "summary": {
                        "type": "object",
                        "properties": {
                          "totalEmailsSent": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalLeadsContacted": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "newLeadsContacted": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalCompletedLeads": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyRateWithOOO": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "replyRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "outOfOfficeReplyRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "automaticReplyRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "positiveReplyRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "bounceRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "openRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "clickRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "unsubscribeRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "replyCountWithOOO": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "outOfOfficeReplyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "automaticReplyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "positiveReplyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "meetingsBooked": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "bounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "openCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "clickCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unsubscribeCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "recipientBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "senderBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unclassifiedBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "recipientBounceRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "senderBounceRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "unclassifiedBounceRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          }
                        },
                        "required": [
                          "totalEmailsSent",
                          "totalLeadsContacted",
                          "newLeadsContacted",
                          "totalCompletedLeads",
                          "replyRateWithOOO",
                          "replyRate",
                          "outOfOfficeReplyRate",
                          "automaticReplyRate",
                          "positiveReplyRate",
                          "bounceRate",
                          "openRate",
                          "clickRate",
                          "unsubscribeRate",
                          "replyCountWithOOO",
                          "replyCount",
                          "outOfOfficeReplyCount",
                          "automaticReplyCount",
                          "positiveReplyCount",
                          "meetingsBooked",
                          "bounceCount",
                          "openCount",
                          "clickCount",
                          "unsubscribeCount"
                        ],
                        "patternProperties": {
                          "^(?!(?:totalEmailsSent|totalLeadsContacted|newLeadsContacted|totalCompletedLeads|replyRateWithOOO|replyRate|outOfOfficeReplyRate|automaticReplyRate|positiveReplyRate|bounceRate|openRate|clickRate|unsubscribeRate|replyCountWithOOO|replyCount|outOfOfficeReplyCount|automaticReplyCount|positiveReplyCount|meetingsBooked|bounceCount|openCount|clickCount|unsubscribeCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|recipientBounceRate|senderBounceRate|unclassifiedBounceRate)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "totalEmailsSent",
                            "totalLeadsContacted",
                            "newLeadsContacted",
                            "totalCompletedLeads",
                            "replyRateWithOOO",
                            "replyRate",
                            "outOfOfficeReplyRate",
                            "automaticReplyRate",
                            "positiveReplyRate",
                            "bounceRate",
                            "openRate",
                            "clickRate",
                            "unsubscribeRate",
                            "replyCountWithOOO",
                            "replyCount",
                            "outOfOfficeReplyCount",
                            "automaticReplyCount",
                            "positiveReplyCount",
                            "meetingsBooked",
                            "bounceCount",
                            "openCount",
                            "clickCount",
                            "unsubscribeCount",
                            "recipientBounceCount",
                            "senderBounceCount",
                            "unclassifiedBounceCount",
                            "recipientBounceRate",
                            "senderBounceRate",
                            "unclassifiedBounceRate"
                          ]
                        }
                      },
                      "dailyEmailSent": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "newLead": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "followUp": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "newLead",
                            "followUp"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|newLead|followUp)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "newLead",
                              "followUp"
                            ]
                          }
                        }
                      },
                      "dailyMetrics": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "replyCountWithOOO": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "replyCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "positiveReplyCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "bounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "openCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "clickCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "recipientBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "senderBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "unclassifiedBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "replyCountWithOOO",
                            "replyCount",
                            "positiveReplyCount",
                            "bounceCount",
                            "openCount",
                            "clickCount"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|replyCountWithOOO|replyCount|positiveReplyCount|bounceCount|openCount|clickCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "replyCountWithOOO",
                              "replyCount",
                              "positiveReplyCount",
                              "bounceCount",
                              "openCount",
                              "clickCount",
                              "recipientBounceCount",
                              "senderBounceCount",
                              "unclassifiedBounceCount"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "summary",
                      "dailyEmailSent",
                      "dailyMetrics"
                    ],
                    "patternProperties": {
                      "^(?!(?:summary|dailyEmailSent|dailyMetrics)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "summary",
                        "dailyEmailSent",
                        "dailyMetrics"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "inboxCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "contactCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "contactedCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "contactedPercentage": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "finishedLeads": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "replyCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "replyPercentage": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "positiveReplyCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "positiveReplyPercentage": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "meetingsBooked": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "completionPercentage": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "activeSubsequenceLeads": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "lastSentAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "inboxCount",
                      "contactCount",
                      "contactedCount",
                      "contactedPercentage",
                      "finishedLeads",
                      "replyCount",
                      "replyPercentage",
                      "positiveReplyCount",
                      "positiveReplyPercentage",
                      "meetingsBooked",
                      "completionPercentage",
                      "activeSubsequenceLeads",
                      "lastSentAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:inboxCount|contactCount|contactedCount|contactedPercentage|finishedLeads|replyCount|replyPercentage|positiveReplyCount|positiveReplyPercentage|meetingsBooked|completionPercentage|activeSubsequenceLeads|lastSentAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "inboxCount",
                        "contactCount",
                        "contactedCount",
                        "contactedPercentage",
                        "finishedLeads",
                        "replyCount",
                        "replyPercentage",
                        "positiveReplyCount",
                        "positiveReplyPercentage",
                        "meetingsBooked",
                        "completionPercentage",
                        "activeSubsequenceLeads",
                        "lastSentAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "senderProviders": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "google",
                            "microsoft",
                            "other"
                          ]
                        }
                      },
                      "recipientProviders": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "google",
                            "microsoft",
                            "other"
                          ]
                        }
                      },
                      "senderTags": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "color": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "color"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "color"
                            ]
                          }
                        }
                      },
                      "senderDomains": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/DomainName"
                        }
                      }
                    },
                    "required": [
                      "senderProviders",
                      "recipientProviders",
                      "senderTags",
                      "senderDomains"
                    ],
                    "patternProperties": {
                      "^(?!(?:senderProviders|recipientProviders|senderTags|senderDomains)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "senderProviders",
                        "recipientProviders",
                        "senderTags",
                        "senderDomains"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "totalLeads": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalContacted": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalMeetings": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "positiveReplyRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "bounceRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "finishedRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "recipientBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "senderBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unclassifiedBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "totalLeads",
                          "totalContacted",
                          "totalMeetings",
                          "replyRate",
                          "positiveReplyRate",
                          "bounceRate",
                          "finishedRate"
                        ],
                        "patternProperties": {
                          "^(?!(?:totalLeads|totalContacted|totalMeetings|replyRate|positiveReplyRate|bounceRate|finishedRate|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "totalLeads",
                            "totalContacted",
                            "totalMeetings",
                            "replyRate",
                            "positiveReplyRate",
                            "bounceRate",
                            "finishedRate",
                            "recipientBounceCount",
                            "senderBounceCount",
                            "unclassifiedBounceCount"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "type": "object",
                            "properties": {
                              "totalLeads": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalEmailsSent": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalLeadsContacted": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "leadsContactedPercentage": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "newLeadsContacted": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalCompletedLeads": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "finishedPercentage": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "replyRateWithOOO": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "replyRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "positiveReplyRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "bounceRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "unsubscribeRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "replyCountWithOOO": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "replyCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "positiveReplyCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "bounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unsubscribeCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "recipientBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "senderBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unclassifiedBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "recipientBounceRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "senderBounceRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "unclassifiedBounceRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              }
                            },
                            "required": [
                              "totalLeads",
                              "totalEmailsSent",
                              "totalLeadsContacted",
                              "leadsContactedPercentage",
                              "newLeadsContacted",
                              "totalCompletedLeads",
                              "finishedPercentage",
                              "replyRateWithOOO",
                              "replyRate",
                              "positiveReplyRate",
                              "bounceRate",
                              "unsubscribeRate",
                              "replyCountWithOOO",
                              "replyCount",
                              "positiveReplyCount",
                              "bounceCount",
                              "unsubscribeCount"
                            ],
                            "patternProperties": {
                              "^(?!(?:totalLeads|totalEmailsSent|totalLeadsContacted|leadsContactedPercentage|newLeadsContacted|totalCompletedLeads|finishedPercentage|replyRateWithOOO|replyRate|positiveReplyRate|bounceRate|unsubscribeRate|replyCountWithOOO|replyCount|positiveReplyCount|bounceCount|unsubscribeCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|recipientBounceRate|senderBounceRate|unclassifiedBounceRate)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "totalLeads",
                                "totalEmailsSent",
                                "totalLeadsContacted",
                                "leadsContactedPercentage",
                                "newLeadsContacted",
                                "totalCompletedLeads",
                                "finishedPercentage",
                                "replyRateWithOOO",
                                "replyRate",
                                "positiveReplyRate",
                                "bounceRate",
                                "unsubscribeRate",
                                "replyCountWithOOO",
                                "replyCount",
                                "positiveReplyCount",
                                "bounceCount",
                                "unsubscribeCount",
                                "recipientBounceCount",
                                "senderBounceCount",
                                "unclassifiedBounceCount",
                                "recipientBounceRate",
                                "senderBounceRate",
                                "unclassifiedBounceRate"
                              ]
                            }
                          },
                          "dailyEmailSent": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "newLead": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "followUp": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "newLead",
                                "followUp"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|newLead|followUp)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "newLead",
                                  "followUp"
                                ]
                              }
                            }
                          },
                          "dailyMetrics": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "replyCountWithOOO": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replyCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "positiveReplyCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "bounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "recipientBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "senderBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "unclassifiedBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "replyCountWithOOO",
                                "replyCount",
                                "positiveReplyCount",
                                "bounceCount"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|replyCountWithOOO|replyCount|positiveReplyCount|bounceCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "replyCountWithOOO",
                                  "replyCount",
                                  "positiveReplyCount",
                                  "bounceCount",
                                  "recipientBounceCount",
                                  "senderBounceCount",
                                  "unclassifiedBounceCount"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "summary",
                          "dailyEmailSent",
                          "dailyMetrics"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|dailyEmailSent|dailyMetrics)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "dailyEmailSent",
                            "dailyMetrics"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "type": "object",
                            "properties": {
                              "totalEmailsSent": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalLeadsContacted": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "newLeadsContacted": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalCompletedLeads": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "replyRateWithOOO": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "replyRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "outOfOfficeReplyRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "automaticReplyRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "positiveReplyRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "bounceRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "openRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "clickRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "unsubscribeRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "replyCountWithOOO": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "replyCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "outOfOfficeReplyCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "automaticReplyCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "positiveReplyCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "meetingsBooked": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "bounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "openCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "clickCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unsubscribeCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "recipientBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "senderBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unclassifiedBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "recipientBounceRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "senderBounceRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "unclassifiedBounceRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              }
                            },
                            "required": [
                              "totalEmailsSent",
                              "totalLeadsContacted",
                              "newLeadsContacted",
                              "totalCompletedLeads",
                              "replyRateWithOOO",
                              "replyRate",
                              "outOfOfficeReplyRate",
                              "automaticReplyRate",
                              "positiveReplyRate",
                              "bounceRate",
                              "openRate",
                              "clickRate",
                              "unsubscribeRate",
                              "replyCountWithOOO",
                              "replyCount",
                              "outOfOfficeReplyCount",
                              "automaticReplyCount",
                              "positiveReplyCount",
                              "meetingsBooked",
                              "bounceCount",
                              "openCount",
                              "clickCount",
                              "unsubscribeCount"
                            ],
                            "patternProperties": {
                              "^(?!(?:totalEmailsSent|totalLeadsContacted|newLeadsContacted|totalCompletedLeads|replyRateWithOOO|replyRate|outOfOfficeReplyRate|automaticReplyRate|positiveReplyRate|bounceRate|openRate|clickRate|unsubscribeRate|replyCountWithOOO|replyCount|outOfOfficeReplyCount|automaticReplyCount|positiveReplyCount|meetingsBooked|bounceCount|openCount|clickCount|unsubscribeCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|recipientBounceRate|senderBounceRate|unclassifiedBounceRate)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "totalEmailsSent",
                                "totalLeadsContacted",
                                "newLeadsContacted",
                                "totalCompletedLeads",
                                "replyRateWithOOO",
                                "replyRate",
                                "outOfOfficeReplyRate",
                                "automaticReplyRate",
                                "positiveReplyRate",
                                "bounceRate",
                                "openRate",
                                "clickRate",
                                "unsubscribeRate",
                                "replyCountWithOOO",
                                "replyCount",
                                "outOfOfficeReplyCount",
                                "automaticReplyCount",
                                "positiveReplyCount",
                                "meetingsBooked",
                                "bounceCount",
                                "openCount",
                                "clickCount",
                                "unsubscribeCount",
                                "recipientBounceCount",
                                "senderBounceCount",
                                "unclassifiedBounceCount",
                                "recipientBounceRate",
                                "senderBounceRate",
                                "unclassifiedBounceRate"
                              ]
                            }
                          },
                          "dailyEmailSent": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "newLead": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "followUp": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "newLead",
                                "followUp"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|newLead|followUp)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "newLead",
                                  "followUp"
                                ]
                              }
                            }
                          },
                          "dailyMetrics": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "replyCountWithOOO": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replyCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "positiveReplyCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "bounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "openCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "clickCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "recipientBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "senderBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "unclassifiedBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "replyCountWithOOO",
                                "replyCount",
                                "positiveReplyCount",
                                "bounceCount",
                                "openCount",
                                "clickCount"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|replyCountWithOOO|replyCount|positiveReplyCount|bounceCount|openCount|clickCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "replyCountWithOOO",
                                  "replyCount",
                                  "positiveReplyCount",
                                  "bounceCount",
                                  "openCount",
                                  "clickCount",
                                  "recipientBounceCount",
                                  "senderBounceCount",
                                  "unclassifiedBounceCount"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "summary",
                          "dailyEmailSent",
                          "dailyMetrics"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|dailyEmailSent|dailyMetrics)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "dailyEmailSent",
                            "dailyMetrics"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "inboxCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "contactCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "contactedCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "contactedPercentage": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "finishedLeads": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyPercentage": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "positiveReplyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "positiveReplyPercentage": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "meetingsBooked": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "completionPercentage": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "activeSubsequenceLeads": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "lastSentAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "inboxCount",
                          "contactCount",
                          "contactedCount",
                          "contactedPercentage",
                          "finishedLeads",
                          "replyCount",
                          "replyPercentage",
                          "positiveReplyCount",
                          "positiveReplyPercentage",
                          "meetingsBooked",
                          "completionPercentage",
                          "activeSubsequenceLeads",
                          "lastSentAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:inboxCount|contactCount|contactedCount|contactedPercentage|finishedLeads|replyCount|replyPercentage|positiveReplyCount|positiveReplyPercentage|meetingsBooked|completionPercentage|activeSubsequenceLeads|lastSentAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "inboxCount",
                            "contactCount",
                            "contactedCount",
                            "contactedPercentage",
                            "finishedLeads",
                            "replyCount",
                            "replyPercentage",
                            "positiveReplyCount",
                            "positiveReplyPercentage",
                            "meetingsBooked",
                            "completionPercentage",
                            "activeSubsequenceLeads",
                            "lastSentAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "senderProviders": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "google",
                                "microsoft",
                                "other"
                              ]
                            }
                          },
                          "recipientProviders": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "google",
                                "microsoft",
                                "other"
                              ]
                            }
                          },
                          "senderTags": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "color": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "color"
                                ]
                              }
                            }
                          },
                          "senderDomains": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/DomainName"
                            }
                          }
                        },
                        "required": [
                          "senderProviders",
                          "recipientProviders",
                          "senderTags",
                          "senderDomains"
                        ],
                        "patternProperties": {
                          "^(?!(?:senderProviders|recipientProviders|senderTags|senderDomains)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "senderProviders",
                            "recipientProviders",
                            "senderTags",
                            "senderDomains"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_campaign_analytics"
      },
      "scopes": [
        "analytics:read"
      ],
      "bundles": [
        "campaign_analytics"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignAnalytics.totals",
        "campaignAnalytics.workspaceReport",
        "campaignAnalytics.filterOptions",
        "campaignAnalytics.rowStats",
        "campaignAnalytics.campaign"
      ],
      "invocations": [
        {
          "operationId": "campaignAnalytics.totals",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/analytics/totals",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignAnalytics.workspaceReport",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/analytics",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignAnalytics.filterOptions",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/analytics/filter-options",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignAnalytics.rowStats",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/row-stats",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignAnalytics.campaign",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/analytics",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "totals"
                ]
              },
              "campaignFilter": {
                "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"
                      ]
                    }
                  }
                ]
              },
              "folderId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|campaignFilter|folderId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "campaignFilter",
                    "folderId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "report"
                ]
              },
              "campaignFilter": {
                "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"
                      ]
                    }
                  }
                ]
              },
              "folderId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "startDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "endDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "senderProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "recipientProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "senderTagIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "maxItems": 100
              },
              "senderDomains": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/DomainNameEncoded"
                },
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|campaignFilter|folderId|startDate|endDate|senderProviders|recipientProviders|senderTagIds|senderDomains)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "campaignFilter",
                    "folderId",
                    "startDate",
                    "endDate",
                    "senderProviders",
                    "recipientProviders",
                    "senderTagIds",
                    "senderDomains"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "report"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "startDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "endDate": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "senderProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "recipientProviders": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "other"
                  ]
                },
                "maxItems": 3
              },
              "senderTagIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "maxItems": 100
              },
              "senderDomains": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/DomainNameEncoded"
                },
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|campaignId|startDate|endDate|senderProviders|recipientProviders|senderTagIds|senderDomains)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "campaignId",
                    "startDate",
                    "endDate",
                    "senderProviders",
                    "recipientProviders",
                    "senderTagIds",
                    "senderDomains"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "row_stats"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "filters"
                ]
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "DomainNameEncoded": {
            "type": "string"
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "read_campaign_audience",
      "description": "Read a campaign's audience and sequence state: contact pages and counts, timezone audits, the grouped step list, per-step stats, the full sequence document, reusable sequences and their enrollments, and subsequence branches.\n\nChoose an action and its required identifiers. Use reusable_sequences for Workspace discovery; other actions require a campaignId or sequenceId. Read current enrollment, layout, and revisions before proposing changes.\n\nIt never returns step bodies' rendered output, contact credentials, or sends anything; use the write capabilities for changes.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "contacts"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "limit": {
                "type": "string"
              },
              "offset": {
                "type": "string"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|limit|offset)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "limit",
                "offset"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "contact_count"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "timezone_audit"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "sourceField": {
                "type": "string"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|sourceField)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "sourceField"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "steps"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "step_count"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "step_stats"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "sequence_document"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "reusable_sequences"
                ]
              },
              "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"
              },
              "activeOnly": {
                "type": "string",
                "enum": [
                  "true",
                  "false"
                ]
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|activeOnly)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "activeOnly"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "sequence_enrollments"
                ]
              },
              "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"
              },
              "sequenceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "sequenceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|sequenceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "sequenceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "subsequences"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId"
              ]
            }
          }
        ]
      },
      "outputSchema": {
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "campaignLeads": {
                        "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"
                            },
                            "leadId": {
                              "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"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "not_contacted",
                                "contacted",
                                "completed",
                                "task_pending",
                                "task_failed",
                                "paused",
                                "out_of_office",
                                "bounced",
                                "unsubscribed",
                                "ladder_queued",
                                "moved_to_subsequence"
                              ]
                            },
                            "currentPass": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "pendingStepId": {
                              "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"
                                }
                              ]
                            },
                            "pendingStepPass": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "firstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "company": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "jobTitle": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyDomain": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyWebsiteUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "personalLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "city": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "state": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "country": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "customFieldValues": {
                              "type": "object",
                              "additionalProperties": true
                            }
                          },
                          "required": [
                            "id",
                            "leadId",
                            "status",
                            "currentPass",
                            "pendingStepId",
                            "pendingStepPass",
                            "email",
                            "firstName",
                            "lastName",
                            "company",
                            "jobTitle",
                            "companyDomain",
                            "companyWebsiteUrl",
                            "personalLinkedInUrl",
                            "companyLinkedInUrl",
                            "city",
                            "state",
                            "country",
                            "timezone",
                            "customFieldValues"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|leadId|status|currentPass|pendingStepId|pendingStepPass|email|firstName|lastName|company|jobTitle|companyDomain|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "leadId",
                              "status",
                              "currentPass",
                              "pendingStepId",
                              "pendingStepPass",
                              "email",
                              "firstName",
                              "lastName",
                              "company",
                              "jobTitle",
                              "companyDomain",
                              "companyWebsiteUrl",
                              "personalLinkedInUrl",
                              "companyLinkedInUrl",
                              "city",
                              "state",
                              "country",
                              "timezone",
                              "customFieldValues"
                            ]
                          }
                        }
                      },
                      "customFieldKeys": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/LeadStoredText"
                        }
                      }
                    },
                    "required": [
                      "campaignLeads",
                      "customFieldKeys"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaignLeads|customFieldKeys)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaignLeads",
                        "customFieldKeys"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "count"
                    ],
                    "patternProperties": {
                      "^(?!(?:count)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "count"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "sourceField": {
                        "type": "string"
                      },
                      "summary": {
                        "type": "object",
                        "properties": {
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "valid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "invalid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "missing": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "total",
                          "valid",
                          "invalid",
                          "missing"
                        ],
                        "patternProperties": {
                          "^(?!(?:total|valid|invalid|missing)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "total",
                            "valid",
                            "invalid",
                            "missing"
                          ]
                        }
                      },
                      "contacts": {
                        "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"
                            },
                            "email": {
                              "type": "string"
                            },
                            "current": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "source": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "missing"
                              ]
                            },
                            "resolved": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "email",
                            "current",
                            "source",
                            "status",
                            "resolved"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|email|current|source|status|resolved)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "email",
                              "current",
                              "source",
                              "status",
                              "resolved"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "sourceField",
                      "summary",
                      "contacts"
                    ],
                    "patternProperties": {
                      "^(?!(?:sourceField|summary|contacts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "sourceField",
                        "summary",
                        "contacts"
                      ]
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "email_content"
                              ]
                            },
                            "bodyFormat": {
                              "type": "string",
                              "enum": [
                                "inherit",
                                "plain",
                                "html"
                              ]
                            },
                            "previousThreadSelection": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "mode": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "latest",
                                        "custom"
                                      ]
                                    },
                                    "stepIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      }
                                    }
                                  },
                                  "required": [
                                    "mode"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "mode",
                                      "stepIds"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "variants": {
                              "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"
                                  },
                                  "variantOrder": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "revision": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "subject": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "root": {
                                            "$ref": "#/$defs/Union_"
                                          }
                                        },
                                        "required": [
                                          "root"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:root)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "root"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "body": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "root": {
                                            "$ref": "#/$defs/Union_"
                                          }
                                        },
                                        "required": [
                                          "root"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:root)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "root"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "saved"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "variantOrder",
                                  "revision",
                                  "enabled",
                                  "subject",
                                  "body",
                                  "status"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|variantOrder|revision|enabled|subject|body|status)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "variantOrder",
                                    "revision",
                                    "enabled",
                                    "subject",
                                    "body",
                                    "status"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "id",
                            "stepId",
                            "revision",
                            "delayMinutes",
                            "enabled",
                            "runMode",
                            "rearmAfterDays",
                            "type",
                            "bodyFormat",
                            "previousThreadSelection",
                            "variants"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|type|bodyFormat|previousThreadSelection|variants)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepId",
                              "revision",
                              "delayMinutes",
                              "enabled",
                              "runMode",
                              "rearmAfterDays",
                              "type",
                              "bodyFormat",
                              "previousThreadSelection",
                              "variants"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dbId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "saved"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "manual_review"
                              ]
                            },
                            "notificationMessage": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "stepId",
                            "revision",
                            "delayMinutes",
                            "enabled",
                            "runMode",
                            "rearmAfterDays",
                            "dbId",
                            "status",
                            "type",
                            "notificationMessage"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|notificationMessage)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepId",
                              "revision",
                              "delayMinutes",
                              "enabled",
                              "runMode",
                              "rearmAfterDays",
                              "dbId",
                              "status",
                              "type",
                              "notificationMessage"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dbId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "saved"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "linked_in_connection_request"
                              ]
                            },
                            "connectionNote": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "stepId",
                            "revision",
                            "delayMinutes",
                            "enabled",
                            "runMode",
                            "rearmAfterDays",
                            "dbId",
                            "status",
                            "type",
                            "connectionNote"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|connectionNote)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepId",
                              "revision",
                              "delayMinutes",
                              "enabled",
                              "runMode",
                              "rearmAfterDays",
                              "dbId",
                              "status",
                              "type",
                              "connectionNote"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dbId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "saved"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "linked_in_in_mail"
                              ]
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "body": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "stepId",
                            "revision",
                            "delayMinutes",
                            "enabled",
                            "runMode",
                            "rearmAfterDays",
                            "dbId",
                            "status",
                            "type",
                            "subject",
                            "body"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|subject|body)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepId",
                              "revision",
                              "delayMinutes",
                              "enabled",
                              "runMode",
                              "rearmAfterDays",
                              "dbId",
                              "status",
                              "type",
                              "subject",
                              "body"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dbId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "saved"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "phone_call"
                              ]
                            },
                            "script": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "stepId",
                            "revision",
                            "delayMinutes",
                            "enabled",
                            "runMode",
                            "rearmAfterDays",
                            "dbId",
                            "status",
                            "type",
                            "script"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|script)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepId",
                              "revision",
                              "delayMinutes",
                              "enabled",
                              "runMode",
                              "rearmAfterDays",
                              "dbId",
                              "status",
                              "type",
                              "script"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dbId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "saved"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "text_message"
                              ]
                            },
                            "message": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "mediaUrl": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "stepId",
                            "revision",
                            "delayMinutes",
                            "enabled",
                            "runMode",
                            "rearmAfterDays",
                            "dbId",
                            "status",
                            "type",
                            "message",
                            "mediaUrl"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|message|mediaUrl)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepId",
                              "revision",
                              "delayMinutes",
                              "enabled",
                              "runMode",
                              "rearmAfterDays",
                              "dbId",
                              "status",
                              "type",
                              "message",
                              "mediaUrl"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dbId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "saved"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "http_post_request"
                              ]
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "headers": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "bodyTemplate": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "stepId",
                            "revision",
                            "delayMinutes",
                            "enabled",
                            "runMode",
                            "rearmAfterDays",
                            "dbId",
                            "status",
                            "type",
                            "url",
                            "headers",
                            "bodyTemplate"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepId",
                              "revision",
                              "delayMinutes",
                              "enabled",
                              "runMode",
                              "rearmAfterDays",
                              "dbId",
                              "status",
                              "type",
                              "url",
                              "headers",
                              "bodyTemplate"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dbId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "saved"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "heyreach_campaign"
                              ]
                            },
                            "connectionId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "campaignId": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "campaignName": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "linkedInAccountId": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "stepId",
                            "revision",
                            "delayMinutes",
                            "enabled",
                            "runMode",
                            "rearmAfterDays",
                            "dbId",
                            "status",
                            "type",
                            "connectionId",
                            "campaignId",
                            "campaignName",
                            "linkedInAccountId"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepId",
                              "revision",
                              "delayMinutes",
                              "enabled",
                              "runMode",
                              "rearmAfterDays",
                              "dbId",
                              "status",
                              "type",
                              "connectionId",
                              "campaignId",
                              "campaignName",
                              "linkedInAccountId"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "stepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "delayMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dbId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "saved"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "attio_task"
                              ]
                            },
                            "content": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "assigneeMemberIds": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "onMissingAssignee": {
                              "type": "string",
                              "enum": [
                                "skip",
                                "fail"
                              ]
                            },
                            "deadlineOffsetDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "personLink": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "sourceVariable": {
                                  "type": "string"
                                },
                                "matchBy": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "domain",
                                    "record_id"
                                  ]
                                },
                                "createIfMissing": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ],
                              "patternProperties": {
                                "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "enabled",
                                  "sourceVariable",
                                  "matchBy",
                                  "createIfMissing"
                                ]
                              }
                            },
                            "companyLink": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "sourceVariable": {
                                  "type": "string"
                                },
                                "matchBy": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "domain",
                                    "record_id"
                                  ]
                                },
                                "createIfMissing": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "sourceVariable",
                                "matchBy",
                                "createIfMissing"
                              ],
                              "patternProperties": {
                                "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "enabled",
                                  "sourceVariable",
                                  "matchBy",
                                  "createIfMissing"
                                ]
                              }
                            }
                          },
                          "required": [
                            "id",
                            "stepId",
                            "revision",
                            "delayMinutes",
                            "enabled",
                            "runMode",
                            "rearmAfterDays",
                            "dbId",
                            "status",
                            "type",
                            "content",
                            "assigneeMemberIds",
                            "onMissingAssignee",
                            "deadlineOffsetDays",
                            "personLink",
                            "companyLink"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "stepId",
                              "revision",
                              "delayMinutes",
                              "enabled",
                              "runMode",
                              "rearmAfterDays",
                              "dbId",
                              "status",
                              "type",
                              "content",
                              "assigneeMemberIds",
                              "onMissingAssignee",
                              "deadlineOffsetDays",
                              "personLink",
                              "companyLink"
                            ]
                          }
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "count"
                    ],
                    "patternProperties": {
                      "^(?!(?:count)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "count"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "stepOrder": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "name": {
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "variants": {
                          "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"
                              },
                              "stepOrder": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "variantOrder": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "name": {
                                "type": "string"
                              },
                              "enabled": {
                                "type": "boolean"
                              },
                              "sent": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "replied": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "repliedPercentage": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "positiveReplies": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "positiveRepliesPercentage": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "opened": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "openedPercentage": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "clicked": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "clickedPercentage": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "stepOrder",
                              "variantOrder",
                              "name",
                              "enabled",
                              "sent",
                              "replied",
                              "repliedPercentage",
                              "positiveReplies",
                              "positiveRepliesPercentage",
                              "opened",
                              "openedPercentage",
                              "clicked",
                              "clickedPercentage"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|stepOrder|variantOrder|name|enabled|sent|replied|repliedPercentage|positiveReplies|positiveRepliesPercentage|opened|openedPercentage|clicked|clickedPercentage)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "stepOrder",
                                "variantOrder",
                                "name",
                                "enabled",
                                "sent",
                                "replied",
                                "repliedPercentage",
                                "positiveReplies",
                                "positiveRepliesPercentage",
                                "opened",
                                "openedPercentage",
                                "clicked",
                                "clickedPercentage"
                              ]
                            }
                          }
                        },
                        "totalSent": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "totalReplied": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "totalPositiveReplies": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "totalOpened": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "totalClicked": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "stepOrder",
                        "name",
                        "enabled",
                        "variants",
                        "totalSent",
                        "totalReplied",
                        "totalPositiveReplies",
                        "totalOpened",
                        "totalClicked"
                      ],
                      "patternProperties": {
                        "^(?!(?:stepOrder|name|enabled|variants|totalSent|totalReplied|totalPositiveReplies|totalOpened|totalClicked)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "stepOrder",
                          "name",
                          "enabled",
                          "variants",
                          "totalSent",
                          "totalReplied",
                          "totalPositiveReplies",
                          "totalOpened",
                          "totalClicked"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "campaignId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "sequenceRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "initialDelayMinutes": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "steps": {
                        "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"
                            },
                            "position": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "email_content",
                                "manual_review",
                                "linked_in_connection_request",
                                "linked_in_in_mail",
                                "phone_call",
                                "text_message",
                                "http_post_request",
                                "attio_task",
                                "heyreach_campaign"
                              ]
                            },
                            "waitFor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "runMode": {
                              "type": "string",
                              "enum": [
                                "once",
                                "after_days",
                                "every_pass"
                              ]
                            },
                            "rearmAfterDays": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "bodyFormat": {
                              "type": "string",
                              "enum": [
                                "inherit",
                                "plain",
                                "html"
                              ]
                            },
                            "previousThreadSelection": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "mode": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "latest",
                                        "custom"
                                      ]
                                    },
                                    "stepIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      }
                                    }
                                  },
                                  "required": [
                                    "mode"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "mode",
                                      "stepIds"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "variants": {
                              "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"
                                  },
                                  "variantOrder": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "revision": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "content": {
                                    "$ref": "#/$defs/Union_"
                                  },
                                  "plainText": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "body": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "patternProperties": {
                                      "^(?!(?:subject|body)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "subject",
                                        "body"
                                      ]
                                    }
                                  },
                                  "updatedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  }
                                },
                                "required": [
                                  "id",
                                  "variantOrder",
                                  "enabled",
                                  "revision",
                                  "content",
                                  "plainText",
                                  "updatedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|variantOrder|enabled|revision|content|plainText|updatedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "variantOrder",
                                    "enabled",
                                    "revision",
                                    "content",
                                    "plainText",
                                    "updatedAt"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "id",
                            "position",
                            "type",
                            "waitFor",
                            "runMode",
                            "rearmAfterDays",
                            "bodyFormat",
                            "previousThreadSelection",
                            "enabled",
                            "revision",
                            "updatedAt",
                            "variants"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|position|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|revision|updatedAt|variants)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "position",
                              "type",
                              "waitFor",
                              "runMode",
                              "rearmAfterDays",
                              "bodyFormat",
                              "previousThreadSelection",
                              "enabled",
                              "revision",
                              "updatedAt",
                              "variants"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "campaignId",
                      "sequenceRevision",
                      "initialDelayMinutes",
                      "steps"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaignId|sequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaignId",
                        "sequenceRevision",
                        "initialDelayMinutes",
                        "steps"
                      ]
                    }
                  },
                  {
                    "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": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "draft",
                            "active",
                            "paused",
                            "archived",
                            "completed"
                          ]
                        },
                        "pauseContext": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "reason": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "manual"
                                          ]
                                        }
                                      ]
                                    },
                                    "pausedAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "source": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "user"
                                          ]
                                        }
                                      ]
                                    },
                                    "evidence": {
                                      "type": "null"
                                    }
                                  },
                                  "required": [
                                    "reason",
                                    "pausedAt",
                                    "source",
                                    "evidence"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "reason": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "bounce_threshold"
                                          ]
                                        }
                                      ]
                                    },
                                    "pausedAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "source": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "system"
                                          ]
                                        }
                                      ]
                                    },
                                    "evidence": {
                                      "type": "object",
                                      "properties": {
                                        "thresholdPercent": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "Infinity",
                                                "-Infinity",
                                                "NaN"
                                              ]
                                            }
                                          ]
                                        },
                                        "bounceRatePercent": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "Infinity",
                                                "-Infinity",
                                                "NaN"
                                              ]
                                            }
                                          ]
                                        },
                                        "sentCount": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "bouncedCount": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "recipientBounceCount": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "senderBounceCount": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "unclassifiedBounceCount": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "scope": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "campaign_lifetime"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "thresholdPercent",
                                        "bounceRatePercent",
                                        "sentCount",
                                        "bouncedCount",
                                        "recipientBounceCount",
                                        "senderBounceCount",
                                        "unclassifiedBounceCount",
                                        "scope"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "thresholdPercent",
                                          "bounceRatePercent",
                                          "sentCount",
                                          "bouncedCount",
                                          "recipientBounceCount",
                                          "senderBounceCount",
                                          "unclassifiedBounceCount",
                                          "scope"
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "reason",
                                    "pausedAt",
                                    "source",
                                    "evidence"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "reason": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "unknown"
                                          ]
                                        }
                                      ]
                                    },
                                    "pausedAt": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "source": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "unknown"
                                          ]
                                        }
                                      ]
                                    },
                                    "evidence": {
                                      "type": "null"
                                    }
                                  },
                                  "required": [
                                    "reason",
                                    "pausedAt",
                                    "source",
                                    "evidence"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ]
                                  }
                                }
                              ],
                              "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "sequence"
                          ]
                        },
                        "initialDelayMinutes": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stopOtherCampaignsOnEnroll": {
                          "type": "boolean"
                        },
                        "inboxIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          }
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "status",
                        "kind",
                        "initialDelayMinutes",
                        "stopOtherCampaignsOnEnroll",
                        "inboxIds",
                        "createdAt",
                        "updatedAt"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name|status|pauseContext|kind|initialDelayMinutes|stopOtherCampaignsOnEnroll|inboxIds|createdAt|updatedAt)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name",
                          "status",
                          "pauseContext",
                          "kind",
                          "initialDelayMinutes",
                          "stopOtherCampaignsOnEnroll",
                          "inboxIds",
                          "createdAt",
                          "updatedAt"
                        ]
                      }
                    }
                  },
                  {
                    "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"
                        },
                        "subsequenceCampaignId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "sourceContactId": {
                          "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"
                            }
                          ]
                        },
                        "childContactId": {
                          "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"
                            }
                          ]
                        },
                        "triggerType": {
                          "type": "string",
                          "enum": [
                            "manual",
                            "reply",
                            "workflow"
                          ]
                        },
                        "triggeredByUserId": {
                          "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"
                            }
                          ]
                        },
                        "matchedTriggerId": {
                          "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"
                            }
                          ]
                        },
                        "replyLabelId": {
                          "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"
                            }
                          ]
                        },
                        "sourceThreadId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "pausedContactIds": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                            }
                          ]
                        },
                        "reengagedAfterUnsubscribeAt": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "enrolledAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        }
                      },
                      "required": [
                        "id",
                        "subsequenceCampaignId",
                        "sourceContactId",
                        "childContactId",
                        "triggerType",
                        "triggeredByUserId",
                        "matchedTriggerId",
                        "replyLabelId",
                        "sourceThreadId",
                        "pausedContactIds",
                        "reengagedAfterUnsubscribeAt",
                        "enrolledAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|subsequenceCampaignId|sourceContactId|childContactId|triggerType|triggeredByUserId|matchedTriggerId|replyLabelId|sourceThreadId|pausedContactIds|reengagedAfterUnsubscribeAt|enrolledAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "subsequenceCampaignId",
                          "sourceContactId",
                          "childContactId",
                          "triggerType",
                          "triggeredByUserId",
                          "matchedTriggerId",
                          "replyLabelId",
                          "sourceThreadId",
                          "pausedContactIds",
                          "reengagedAfterUnsubscribeAt",
                          "enrolledAt",
                          "createdAt",
                          "updatedAt"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "subsequences": {
                        "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": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "active",
                                "paused",
                                "archived",
                                "completed"
                              ]
                            },
                            "pauseContext": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "manual"
                                              ]
                                            }
                                          ]
                                        },
                                        "pausedAt": {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        "source": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "user"
                                              ]
                                            }
                                          ]
                                        },
                                        "evidence": {
                                          "type": "null"
                                        }
                                      },
                                      "required": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "bounce_threshold"
                                              ]
                                            }
                                          ]
                                        },
                                        "pausedAt": {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        "source": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "system"
                                              ]
                                            }
                                          ]
                                        },
                                        "evidence": {
                                          "type": "object",
                                          "properties": {
                                            "thresholdPercent": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            "bounceRatePercent": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            "sentCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "bouncedCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "recipientBounceCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "senderBounceCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "unclassifiedBounceCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "scope": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "campaign_lifetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "thresholdPercent",
                                            "bounceRatePercent",
                                            "sentCount",
                                            "bouncedCount",
                                            "recipientBounceCount",
                                            "senderBounceCount",
                                            "unclassifiedBounceCount",
                                            "scope"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "thresholdPercent",
                                              "bounceRatePercent",
                                              "sentCount",
                                              "bouncedCount",
                                              "recipientBounceCount",
                                              "senderBounceCount",
                                              "unclassifiedBounceCount",
                                              "scope"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "unknown"
                                              ]
                                            }
                                          ]
                                        },
                                        "pausedAt": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "source": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "unknown"
                                              ]
                                            }
                                          ]
                                        },
                                        "evidence": {
                                          "type": "null"
                                        }
                                      },
                                      "required": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ]
                                      }
                                    }
                                  ],
                                  "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "enrolledCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "contactCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "triggers": {
                              "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"
                                  },
                                  "conditionType": {
                                    "type": "string",
                                    "enum": [
                                      "reply_any",
                                      "reply_genuine",
                                      "reply_label",
                                      "reply_text"
                                    ]
                                  },
                                  "replyLabelIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    }
                                  },
                                  "textContains": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "textNotContains": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "id",
                                  "conditionType",
                                  "replyLabelIds",
                                  "textContains",
                                  "textNotContains",
                                  "enabled"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|conditionType|replyLabelIds|textContains|textNotContains|enabled)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "conditionType",
                                    "replyLabelIds",
                                    "textContains",
                                    "textNotContains",
                                    "enabled"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "status",
                            "createdAt",
                            "enrolledCount",
                            "contactCount",
                            "triggers"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|status|pauseContext|createdAt|enrolledCount|contactCount|triggers)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "status",
                              "pauseContext",
                              "createdAt",
                              "enrolledCount",
                              "contactCount",
                              "triggers"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "subsequences"
                    ],
                    "patternProperties": {
                      "^(?!(?:subsequences)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "subsequences"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "campaignLeads": {
                            "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"
                                },
                                "leadId": {
                                  "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"
                                    }
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "not_contacted",
                                    "contacted",
                                    "completed",
                                    "task_pending",
                                    "task_failed",
                                    "paused",
                                    "out_of_office",
                                    "bounced",
                                    "unsubscribed",
                                    "ladder_queued",
                                    "moved_to_subsequence"
                                  ]
                                },
                                "currentPass": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "pendingStepId": {
                                  "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"
                                    }
                                  ]
                                },
                                "pendingStepPass": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "firstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "company": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "jobTitle": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyDomain": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyWebsiteUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personalLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "city": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "state": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "country": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "timezone": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "customFieldValues": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              },
                              "required": [
                                "id",
                                "leadId",
                                "status",
                                "currentPass",
                                "pendingStepId",
                                "pendingStepPass",
                                "email",
                                "firstName",
                                "lastName",
                                "company",
                                "jobTitle",
                                "companyDomain",
                                "companyWebsiteUrl",
                                "personalLinkedInUrl",
                                "companyLinkedInUrl",
                                "city",
                                "state",
                                "country",
                                "timezone",
                                "customFieldValues"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|leadId|status|currentPass|pendingStepId|pendingStepPass|email|firstName|lastName|company|jobTitle|companyDomain|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "leadId",
                                  "status",
                                  "currentPass",
                                  "pendingStepId",
                                  "pendingStepPass",
                                  "email",
                                  "firstName",
                                  "lastName",
                                  "company",
                                  "jobTitle",
                                  "companyDomain",
                                  "companyWebsiteUrl",
                                  "personalLinkedInUrl",
                                  "companyLinkedInUrl",
                                  "city",
                                  "state",
                                  "country",
                                  "timezone",
                                  "customFieldValues"
                                ]
                              }
                            }
                          },
                          "customFieldKeys": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/LeadStoredText"
                            }
                          }
                        },
                        "required": [
                          "campaignLeads",
                          "customFieldKeys"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignLeads|customFieldKeys)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignLeads",
                            "customFieldKeys"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "count": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "count"
                        ],
                        "patternProperties": {
                          "^(?!(?:count)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "count"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "sourceField": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "valid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "invalid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "missing": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "total",
                              "valid",
                              "invalid",
                              "missing"
                            ],
                            "patternProperties": {
                              "^(?!(?:total|valid|invalid|missing)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "total",
                                "valid",
                                "invalid",
                                "missing"
                              ]
                            }
                          },
                          "contacts": {
                            "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"
                                },
                                "email": {
                                  "type": "string"
                                },
                                "current": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "source": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "missing"
                                  ]
                                },
                                "resolved": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "email",
                                "current",
                                "source",
                                "status",
                                "resolved"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|email|current|source|status|resolved)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "email",
                                  "current",
                                  "source",
                                  "status",
                                  "resolved"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "sourceField",
                          "summary",
                          "contacts"
                        ],
                        "patternProperties": {
                          "^(?!(?:sourceField|summary|contacts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "sourceField",
                            "summary",
                            "contacts"
                          ]
                        }
                      },
                      {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "delayMinutes": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "email_content"
                                  ]
                                },
                                "bodyFormat": {
                                  "type": "string",
                                  "enum": [
                                    "inherit",
                                    "plain",
                                    "html"
                                  ]
                                },
                                "previousThreadSelection": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "mode": {
                                          "type": "string",
                                          "enum": [
                                            "all",
                                            "latest",
                                            "custom"
                                          ]
                                        },
                                        "stepIds": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          }
                                        }
                                      },
                                      "required": [
                                        "mode"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "mode",
                                          "stepIds"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "variants": {
                                  "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"
                                      },
                                      "variantOrder": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "revision": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "enabled": {
                                        "type": "boolean"
                                      },
                                      "subject": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "root": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            },
                                            "required": [
                                              "root"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:root)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "root"
                                                  ]
                                                }
                                              ]
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "body": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "root": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            },
                                            "required": [
                                              "root"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:root)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "root"
                                                  ]
                                                }
                                              ]
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "saved"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "variantOrder",
                                      "revision",
                                      "enabled",
                                      "subject",
                                      "body",
                                      "status"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|variantOrder|revision|enabled|subject|body|status)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "variantOrder",
                                        "revision",
                                        "enabled",
                                        "subject",
                                        "body",
                                        "status"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "revision",
                                "delayMinutes",
                                "enabled",
                                "runMode",
                                "rearmAfterDays",
                                "type",
                                "bodyFormat",
                                "previousThreadSelection",
                                "variants"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|type|bodyFormat|previousThreadSelection|variants)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "revision",
                                  "delayMinutes",
                                  "enabled",
                                  "runMode",
                                  "rearmAfterDays",
                                  "type",
                                  "bodyFormat",
                                  "previousThreadSelection",
                                  "variants"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "delayMinutes": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dbId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "saved"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "manual_review"
                                  ]
                                },
                                "notificationMessage": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "revision",
                                "delayMinutes",
                                "enabled",
                                "runMode",
                                "rearmAfterDays",
                                "dbId",
                                "status",
                                "type",
                                "notificationMessage"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|notificationMessage)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "revision",
                                  "delayMinutes",
                                  "enabled",
                                  "runMode",
                                  "rearmAfterDays",
                                  "dbId",
                                  "status",
                                  "type",
                                  "notificationMessage"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "delayMinutes": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dbId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "saved"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "linked_in_connection_request"
                                  ]
                                },
                                "connectionNote": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "revision",
                                "delayMinutes",
                                "enabled",
                                "runMode",
                                "rearmAfterDays",
                                "dbId",
                                "status",
                                "type",
                                "connectionNote"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|connectionNote)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "revision",
                                  "delayMinutes",
                                  "enabled",
                                  "runMode",
                                  "rearmAfterDays",
                                  "dbId",
                                  "status",
                                  "type",
                                  "connectionNote"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "delayMinutes": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dbId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "saved"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "linked_in_in_mail"
                                  ]
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "body": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "revision",
                                "delayMinutes",
                                "enabled",
                                "runMode",
                                "rearmAfterDays",
                                "dbId",
                                "status",
                                "type",
                                "subject",
                                "body"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|subject|body)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "revision",
                                  "delayMinutes",
                                  "enabled",
                                  "runMode",
                                  "rearmAfterDays",
                                  "dbId",
                                  "status",
                                  "type",
                                  "subject",
                                  "body"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "delayMinutes": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dbId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "saved"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "phone_call"
                                  ]
                                },
                                "script": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "revision",
                                "delayMinutes",
                                "enabled",
                                "runMode",
                                "rearmAfterDays",
                                "dbId",
                                "status",
                                "type",
                                "script"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|script)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "revision",
                                  "delayMinutes",
                                  "enabled",
                                  "runMode",
                                  "rearmAfterDays",
                                  "dbId",
                                  "status",
                                  "type",
                                  "script"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "delayMinutes": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dbId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "saved"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "text_message"
                                  ]
                                },
                                "message": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "mediaUrl": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "revision",
                                "delayMinutes",
                                "enabled",
                                "runMode",
                                "rearmAfterDays",
                                "dbId",
                                "status",
                                "type",
                                "message",
                                "mediaUrl"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|message|mediaUrl)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "revision",
                                  "delayMinutes",
                                  "enabled",
                                  "runMode",
                                  "rearmAfterDays",
                                  "dbId",
                                  "status",
                                  "type",
                                  "message",
                                  "mediaUrl"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "delayMinutes": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dbId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "saved"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "http_post_request"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "headers": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": {
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "bodyTemplate": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "revision",
                                "delayMinutes",
                                "enabled",
                                "runMode",
                                "rearmAfterDays",
                                "dbId",
                                "status",
                                "type",
                                "url",
                                "headers",
                                "bodyTemplate"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "revision",
                                  "delayMinutes",
                                  "enabled",
                                  "runMode",
                                  "rearmAfterDays",
                                  "dbId",
                                  "status",
                                  "type",
                                  "url",
                                  "headers",
                                  "bodyTemplate"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "delayMinutes": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dbId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "saved"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "heyreach_campaign"
                                  ]
                                },
                                "connectionId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "campaignId": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "campaignName": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "linkedInAccountId": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "revision",
                                "delayMinutes",
                                "enabled",
                                "runMode",
                                "rearmAfterDays",
                                "dbId",
                                "status",
                                "type",
                                "connectionId",
                                "campaignId",
                                "campaignName",
                                "linkedInAccountId"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "revision",
                                  "delayMinutes",
                                  "enabled",
                                  "runMode",
                                  "rearmAfterDays",
                                  "dbId",
                                  "status",
                                  "type",
                                  "connectionId",
                                  "campaignId",
                                  "campaignName",
                                  "linkedInAccountId"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "delayMinutes": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dbId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "saved"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "attio_task"
                                  ]
                                },
                                "content": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "assigneeMemberIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "onMissingAssignee": {
                                  "type": "string",
                                  "enum": [
                                    "skip",
                                    "fail"
                                  ]
                                },
                                "deadlineOffsetDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personLink": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "sourceVariable": {
                                      "type": "string"
                                    },
                                    "matchBy": {
                                      "type": "string",
                                      "enum": [
                                        "email",
                                        "domain",
                                        "record_id"
                                      ]
                                    },
                                    "createIfMissing": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "sourceVariable",
                                    "matchBy",
                                    "createIfMissing"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "enabled",
                                      "sourceVariable",
                                      "matchBy",
                                      "createIfMissing"
                                    ]
                                  }
                                },
                                "companyLink": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "sourceVariable": {
                                      "type": "string"
                                    },
                                    "matchBy": {
                                      "type": "string",
                                      "enum": [
                                        "email",
                                        "domain",
                                        "record_id"
                                      ]
                                    },
                                    "createIfMissing": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "sourceVariable",
                                    "matchBy",
                                    "createIfMissing"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "enabled",
                                      "sourceVariable",
                                      "matchBy",
                                      "createIfMissing"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "revision",
                                "delayMinutes",
                                "enabled",
                                "runMode",
                                "rearmAfterDays",
                                "dbId",
                                "status",
                                "type",
                                "content",
                                "assigneeMemberIds",
                                "onMissingAssignee",
                                "deadlineOffsetDays",
                                "personLink",
                                "companyLink"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "revision",
                                  "delayMinutes",
                                  "enabled",
                                  "runMode",
                                  "rearmAfterDays",
                                  "dbId",
                                  "status",
                                  "type",
                                  "content",
                                  "assigneeMemberIds",
                                  "onMissingAssignee",
                                  "deadlineOffsetDays",
                                  "personLink",
                                  "companyLink"
                                ]
                              }
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "count": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "count"
                        ],
                        "patternProperties": {
                          "^(?!(?:count)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "count"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "stepOrder": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "name": {
                              "type": "string"
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "variants": {
                              "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"
                                  },
                                  "stepOrder": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "variantOrder": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "sent": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "replied": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "repliedPercentage": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  "positiveReplies": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "positiveRepliesPercentage": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  "opened": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "openedPercentage": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  "clicked": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "clickedPercentage": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "stepOrder",
                                  "variantOrder",
                                  "name",
                                  "enabled",
                                  "sent",
                                  "replied",
                                  "repliedPercentage",
                                  "positiveReplies",
                                  "positiveRepliesPercentage",
                                  "opened",
                                  "openedPercentage",
                                  "clicked",
                                  "clickedPercentage"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|stepOrder|variantOrder|name|enabled|sent|replied|repliedPercentage|positiveReplies|positiveRepliesPercentage|opened|openedPercentage|clicked|clickedPercentage)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "stepOrder",
                                    "variantOrder",
                                    "name",
                                    "enabled",
                                    "sent",
                                    "replied",
                                    "repliedPercentage",
                                    "positiveReplies",
                                    "positiveRepliesPercentage",
                                    "opened",
                                    "openedPercentage",
                                    "clicked",
                                    "clickedPercentage"
                                  ]
                                }
                              }
                            },
                            "totalSent": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalReplied": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalPositiveReplies": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalOpened": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalClicked": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "stepOrder",
                            "name",
                            "enabled",
                            "variants",
                            "totalSent",
                            "totalReplied",
                            "totalPositiveReplies",
                            "totalOpened",
                            "totalClicked"
                          ],
                          "patternProperties": {
                            "^(?!(?:stepOrder|name|enabled|variants|totalSent|totalReplied|totalPositiveReplies|totalOpened|totalClicked)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "stepOrder",
                              "name",
                              "enabled",
                              "variants",
                              "totalSent",
                              "totalReplied",
                              "totalPositiveReplies",
                              "totalOpened",
                              "totalClicked"
                            ]
                          }
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "sequenceRevision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "initialDelayMinutes": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "steps": {
                            "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"
                                },
                                "position": {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "email_content",
                                    "manual_review",
                                    "linked_in_connection_request",
                                    "linked_in_in_mail",
                                    "phone_call",
                                    "text_message",
                                    "http_post_request",
                                    "attio_task",
                                    "heyreach_campaign"
                                  ]
                                },
                                "waitFor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "runMode": {
                                  "type": "string",
                                  "enum": [
                                    "once",
                                    "after_days",
                                    "every_pass"
                                  ]
                                },
                                "rearmAfterDays": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "bodyFormat": {
                                  "type": "string",
                                  "enum": [
                                    "inherit",
                                    "plain",
                                    "html"
                                  ]
                                },
                                "previousThreadSelection": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "mode": {
                                          "type": "string",
                                          "enum": [
                                            "all",
                                            "latest",
                                            "custom"
                                          ]
                                        },
                                        "stepIds": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          }
                                        }
                                      },
                                      "required": [
                                        "mode"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "mode",
                                          "stepIds"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "variants": {
                                  "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"
                                      },
                                      "variantOrder": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "enabled": {
                                        "type": "boolean"
                                      },
                                      "revision": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "content": {
                                        "$ref": "#/$defs/Union_"
                                      },
                                      "plainText": {
                                        "type": "object",
                                        "properties": {
                                          "subject": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "body": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "patternProperties": {
                                          "^(?!(?:subject|body)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "subject",
                                            "body"
                                          ]
                                        }
                                      },
                                      "updatedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "variantOrder",
                                      "enabled",
                                      "revision",
                                      "content",
                                      "plainText",
                                      "updatedAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|variantOrder|enabled|revision|content|plainText|updatedAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "variantOrder",
                                        "enabled",
                                        "revision",
                                        "content",
                                        "plainText",
                                        "updatedAt"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "position",
                                "type",
                                "waitFor",
                                "runMode",
                                "rearmAfterDays",
                                "bodyFormat",
                                "previousThreadSelection",
                                "enabled",
                                "revision",
                                "updatedAt",
                                "variants"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|position|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|revision|updatedAt|variants)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "position",
                                  "type",
                                  "waitFor",
                                  "runMode",
                                  "rearmAfterDays",
                                  "bodyFormat",
                                  "previousThreadSelection",
                                  "enabled",
                                  "revision",
                                  "updatedAt",
                                  "variants"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "campaignId",
                          "sequenceRevision",
                          "initialDelayMinutes",
                          "steps"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|sequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "sequenceRevision",
                            "initialDelayMinutes",
                            "steps"
                          ]
                        }
                      },
                      {
                        "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": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "active",
                                "paused",
                                "archived",
                                "completed"
                              ]
                            },
                            "pauseContext": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "manual"
                                              ]
                                            }
                                          ]
                                        },
                                        "pausedAt": {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        "source": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "user"
                                              ]
                                            }
                                          ]
                                        },
                                        "evidence": {
                                          "type": "null"
                                        }
                                      },
                                      "required": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "bounce_threshold"
                                              ]
                                            }
                                          ]
                                        },
                                        "pausedAt": {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        "source": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "system"
                                              ]
                                            }
                                          ]
                                        },
                                        "evidence": {
                                          "type": "object",
                                          "properties": {
                                            "thresholdPercent": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            "bounceRatePercent": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            "sentCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "bouncedCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "recipientBounceCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "senderBounceCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "unclassifiedBounceCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "scope": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "campaign_lifetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "thresholdPercent",
                                            "bounceRatePercent",
                                            "sentCount",
                                            "bouncedCount",
                                            "recipientBounceCount",
                                            "senderBounceCount",
                                            "unclassifiedBounceCount",
                                            "scope"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "thresholdPercent",
                                              "bounceRatePercent",
                                              "sentCount",
                                              "bouncedCount",
                                              "recipientBounceCount",
                                              "senderBounceCount",
                                              "unclassifiedBounceCount",
                                              "scope"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "unknown"
                                              ]
                                            }
                                          ]
                                        },
                                        "pausedAt": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "source": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "unknown"
                                              ]
                                            }
                                          ]
                                        },
                                        "evidence": {
                                          "type": "null"
                                        }
                                      },
                                      "required": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ]
                                      }
                                    }
                                  ],
                                  "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "sequence"
                              ]
                            },
                            "initialDelayMinutes": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "stopOtherCampaignsOnEnroll": {
                              "type": "boolean"
                            },
                            "inboxIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              }
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "status",
                            "kind",
                            "initialDelayMinutes",
                            "stopOtherCampaignsOnEnroll",
                            "inboxIds",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|status|pauseContext|kind|initialDelayMinutes|stopOtherCampaignsOnEnroll|inboxIds|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "status",
                              "pauseContext",
                              "kind",
                              "initialDelayMinutes",
                              "stopOtherCampaignsOnEnroll",
                              "inboxIds",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      },
                      {
                        "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"
                            },
                            "subsequenceCampaignId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "sourceContactId": {
                              "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"
                                }
                              ]
                            },
                            "childContactId": {
                              "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"
                                }
                              ]
                            },
                            "triggerType": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "reply",
                                "workflow"
                              ]
                            },
                            "triggeredByUserId": {
                              "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"
                                }
                              ]
                            },
                            "matchedTriggerId": {
                              "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"
                                }
                              ]
                            },
                            "replyLabelId": {
                              "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"
                                }
                              ]
                            },
                            "sourceThreadId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "pausedContactIds": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                                }
                              ]
                            },
                            "reengagedAfterUnsubscribeAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "enrolledAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "subsequenceCampaignId",
                            "sourceContactId",
                            "childContactId",
                            "triggerType",
                            "triggeredByUserId",
                            "matchedTriggerId",
                            "replyLabelId",
                            "sourceThreadId",
                            "pausedContactIds",
                            "reengagedAfterUnsubscribeAt",
                            "enrolledAt",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|subsequenceCampaignId|sourceContactId|childContactId|triggerType|triggeredByUserId|matchedTriggerId|replyLabelId|sourceThreadId|pausedContactIds|reengagedAfterUnsubscribeAt|enrolledAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "subsequenceCampaignId",
                              "sourceContactId",
                              "childContactId",
                              "triggerType",
                              "triggeredByUserId",
                              "matchedTriggerId",
                              "replyLabelId",
                              "sourceThreadId",
                              "pausedContactIds",
                              "reengagedAfterUnsubscribeAt",
                              "enrolledAt",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "subsequences": {
                            "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": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "draft",
                                    "active",
                                    "paused",
                                    "archived",
                                    "completed"
                                  ]
                                },
                                "pauseContext": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "reason": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "manual"
                                                  ]
                                                }
                                              ]
                                            },
                                            "pausedAt": {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            "source": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "user"
                                                  ]
                                                }
                                              ]
                                            },
                                            "evidence": {
                                              "type": "null"
                                            }
                                          },
                                          "required": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "reason",
                                              "pausedAt",
                                              "source",
                                              "evidence"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "reason": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "bounce_threshold"
                                                  ]
                                                }
                                              ]
                                            },
                                            "pausedAt": {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            "source": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "system"
                                                  ]
                                                }
                                              ]
                                            },
                                            "evidence": {
                                              "type": "object",
                                              "properties": {
                                                "thresholdPercent": {
                                                  "anyOf": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "string",
                                                      "enum": [
                                                        "Infinity",
                                                        "-Infinity",
                                                        "NaN"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                "bounceRatePercent": {
                                                  "anyOf": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "string",
                                                      "enum": [
                                                        "Infinity",
                                                        "-Infinity",
                                                        "NaN"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                "sentCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "bouncedCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "recipientBounceCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "senderBounceCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "unclassifiedBounceCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "scope": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string",
                                                      "enum": [
                                                        "campaign_lifetime"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "thresholdPercent",
                                                "bounceRatePercent",
                                                "sentCount",
                                                "bouncedCount",
                                                "recipientBounceCount",
                                                "senderBounceCount",
                                                "unclassifiedBounceCount",
                                                "scope"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "thresholdPercent",
                                                  "bounceRatePercent",
                                                  "sentCount",
                                                  "bouncedCount",
                                                  "recipientBounceCount",
                                                  "senderBounceCount",
                                                  "unclassifiedBounceCount",
                                                  "scope"
                                                ]
                                              }
                                            }
                                          },
                                          "required": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "reason",
                                              "pausedAt",
                                              "source",
                                              "evidence"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "reason": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "unknown"
                                                  ]
                                                }
                                              ]
                                            },
                                            "pausedAt": {
                                              "anyOf": [
                                                {
                                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "source": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "unknown"
                                                  ]
                                                }
                                              ]
                                            },
                                            "evidence": {
                                              "type": "null"
                                            }
                                          },
                                          "required": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "reason",
                                              "pausedAt",
                                              "source",
                                              "evidence"
                                            ]
                                          }
                                        }
                                      ],
                                      "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "enrolledCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "contactCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "triggers": {
                                  "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"
                                      },
                                      "conditionType": {
                                        "type": "string",
                                        "enum": [
                                          "reply_any",
                                          "reply_genuine",
                                          "reply_label",
                                          "reply_text"
                                        ]
                                      },
                                      "replyLabelIds": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        }
                                      },
                                      "textContains": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "textNotContains": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "enabled": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "conditionType",
                                      "replyLabelIds",
                                      "textContains",
                                      "textNotContains",
                                      "enabled"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|conditionType|replyLabelIds|textContains|textNotContains|enabled)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "conditionType",
                                        "replyLabelIds",
                                        "textContains",
                                        "textNotContains",
                                        "enabled"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "status",
                                "createdAt",
                                "enrolledCount",
                                "contactCount",
                                "triggers"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|status|pauseContext|createdAt|enrolledCount|contactCount|triggers)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "status",
                                  "pauseContext",
                                  "createdAt",
                                  "enrolledCount",
                                  "contactCount",
                                  "triggers"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "subsequences"
                        ],
                        "patternProperties": {
                          "^(?!(?:subsequences)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "subsequences"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_campaign_audience"
      },
      "scopes": [
        "campaign:read",
        "lead:read",
        "sequence:read",
        "analytics:read"
      ],
      "bundles": [
        "campaign_audience"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "campaignContacts.list",
        "campaignContacts.count",
        "campaignContacts.validateTimezones",
        "campaignSteps.list",
        "campaignSteps.count",
        "campaignSteps.stats",
        "campaignSteps.getSequence",
        "campaignSequences.list",
        "campaignSequences.enrollments",
        "campaignSubsequences.list"
      ],
      "invocations": [
        {
          "operationId": "campaignContacts.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignContacts.count",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/count",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignContacts.validateTimezones",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/validate-timezones",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/steps",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.count",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/steps/count",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.stats",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/step-stats",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.getSequence",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/sequence",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSequences.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/sequences",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSequences.enrollments",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/sequences/:sequenceId/enrollments",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSubsequences.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/subsequences",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "contacts"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "limit": {
                "type": "string"
              },
              "offset": {
                "type": "string"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|limit|offset)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "limit",
                    "offset"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "contact_count"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "timezone_audit"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "sourceField": {
                "type": "string"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|sourceField)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "sourceField"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "steps"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "step_count"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "step_stats"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "sequence_document"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "reusable_sequences"
                ]
              },
              "activeOnly": {
                "type": "string",
                "enum": [
                  "true",
                  "false"
                ]
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|activeOnly)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "activeOnly"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "sequence_enrollments"
                ]
              },
              "sequenceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "sequenceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|sequenceId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "sequenceId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "subsequences"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "feature": "campaigns",
      "name": "read_campaign_setup",
      "description": "Read a workspace's campaigns and everything that describes how one is set up: its list row and current pause reason/context, inbox pool, custom fields, variable coverage, copy guidance, version history, and the public-holiday calendars a schedule can skip.\n\nUse before proposing any campaign change, so the plan is grounded in the campaign's real steps, senders, and personalization coverage.\n\nVersion detail includes authored copy in its stored JSON snapshot. It does not return contact records or sender credentials; use the audience tools for lead data.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "list"
                ]
              },
              "campaignFilter": {
                "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"
                      ]
                    }
                  }
                ]
              },
              "offset": {
                "type": "string"
              },
              "limit": {
                "type": "string"
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "status": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "all"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "draft",
                      "active",
                      "paused",
                      "archived",
                      "completed"
                    ]
                  }
                ]
              },
              "folderId": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "all",
                      "root"
                    ]
                  },
                  {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                ]
              },
              "tagId": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "all"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                ]
              },
              "sortBy": {
                "type": "string",
                "enum": [
                  "name",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortOrder": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "required": [
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|campaignFilter|offset|limit|search|status|folderId|tagId|sortBy|sortOrder)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "campaignFilter",
                "offset",
                "limit",
                "search",
                "status",
                "folderId",
                "tagId",
                "sortBy",
                "sortOrder"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "campaign"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "inboxes"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "custom_field_keys"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "variable_coverage"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "copy_context"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "explicit_inboxes"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "inbox_count"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "validate_copy"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "subject": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "root": {
                            "$ref": "#/$defs/Union_"
                          }
                        },
                        "required": [
                          "root"
                        ],
                        "patternProperties": {
                          "^(?!(?:root)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "root"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "root": {
                            "$ref": "#/$defs/Union_"
                          }
                        },
                        "required": [
                          "root"
                        ],
                        "patternProperties": {
                          "^(?!(?:root)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "root"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isFirstEmailStep": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "subject",
                  "body",
                  "isFirstEmailStep"
                ],
                "patternProperties": {
                  "^(?!(?:subject|body|isFirstEmailStep)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "subject",
                    "body",
                    "isFirstEmailStep"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope",
                "payload"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "resolved_inboxes"
                ]
              },
              "draft": {
                "type": "string",
                "enum": [
                  "true",
                  "false"
                ]
              },
              "inboxIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 500
              },
              "tagIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 50
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope|draft|inboxIds|tagIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope",
                "draft",
                "inboxIds",
                "tagIds"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "versions"
                ]
              },
              "cursor": {
                "type": "string"
              },
              "limit": {
                "type": "string"
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope|cursor|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope",
                "cursor",
                "limit"
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "version"
                ]
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope",
              "version"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|campaignId|scope|version)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "campaignId",
                "scope",
                "version"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "holiday_calendar"
                ]
              },
              "calendar": {
                "$ref": "#/$defs/HolidayCalendarCode"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "calendar"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|calendar)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "calendar"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "holiday_range"
                ]
              },
              "holidayScope": {
                "type": "string",
                "enum": [
                  "selected",
                  "all"
                ]
              },
              "calendar": {
                "$ref": "#/$defs/HolidayCalendarCode"
              },
              "from": {
                "$ref": "#/$defs/LocalDate"
              },
              "to": {
                "$ref": "#/$defs/LocalDate"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "holidayScope",
              "from",
              "to"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|holidayScope|calendar|from|to)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "holidayScope",
                "calendar",
                "from",
                "to"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "HolidayCalendarCode": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "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$"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "HolidayCalendarCode": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "AuthoredCampaignSnapshot": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/$defs/Union_"
            }
          },
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        },
        "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": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "active",
                                "paused",
                                "archived",
                                "completed"
                              ]
                            },
                            "pauseContext": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "manual"
                                              ]
                                            }
                                          ]
                                        },
                                        "pausedAt": {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        "source": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "user"
                                              ]
                                            }
                                          ]
                                        },
                                        "evidence": {
                                          "type": "null"
                                        }
                                      },
                                      "required": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "bounce_threshold"
                                              ]
                                            }
                                          ]
                                        },
                                        "pausedAt": {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        "source": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "system"
                                              ]
                                            }
                                          ]
                                        },
                                        "evidence": {
                                          "type": "object",
                                          "properties": {
                                            "thresholdPercent": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            "bounceRatePercent": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            "sentCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "bouncedCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "recipientBounceCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "senderBounceCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "unclassifiedBounceCount": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "scope": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "campaign_lifetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "thresholdPercent",
                                            "bounceRatePercent",
                                            "sentCount",
                                            "bouncedCount",
                                            "recipientBounceCount",
                                            "senderBounceCount",
                                            "unclassifiedBounceCount",
                                            "scope"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "thresholdPercent",
                                              "bounceRatePercent",
                                              "sentCount",
                                              "bouncedCount",
                                              "recipientBounceCount",
                                              "senderBounceCount",
                                              "unclassifiedBounceCount",
                                              "scope"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "unknown"
                                              ]
                                            }
                                          ]
                                        },
                                        "pausedAt": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "source": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "unknown"
                                              ]
                                            }
                                          ]
                                        },
                                        "evidence": {
                                          "type": "null"
                                        }
                                      },
                                      "required": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ]
                                      }
                                    }
                                  ],
                                  "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "folderId": {
                              "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"
                                }
                              ]
                            },
                            "tags": {
                              "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": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "color": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "color"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "name",
                                    "color"
                                  ]
                                }
                              }
                            },
                            "sentCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "replyCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "bounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "recipientBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "senderBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "unclassifiedBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "status",
                            "folderId",
                            "tags",
                            "sentCount",
                            "replyCount",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|status|pauseContext|folderId|tags|sentCount|replyCount|bounceCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "status",
                              "pauseContext",
                              "folderId",
                              "tags",
                              "sentCount",
                              "replyCount",
                              "bounceCount",
                              "recipientBounceCount",
                              "senderBounceCount",
                              "unclassifiedBounceCount",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "offset",
                          "limit",
                          "total"
                        ],
                        "patternProperties": {
                          "^(?!(?:offset|limit|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "offset",
                            "limit",
                            "total"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "campaign": {
                        "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"
                          },
                          "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"
                          },
                          "name": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "archived",
                              "completed"
                            ]
                          },
                          "pauseContext": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "manual"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "user"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "null"
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "bounce_threshold"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "system"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "object",
                                        "properties": {
                                          "thresholdPercent": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "bounceRatePercent": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "sentCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "bouncedCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "recipientBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "senderBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "unclassifiedBounceCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "scope": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "campaign_lifetime"
                                                ]
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "thresholdPercent",
                                          "bounceRatePercent",
                                          "sentCount",
                                          "bouncedCount",
                                          "recipientBounceCount",
                                          "senderBounceCount",
                                          "unclassifiedBounceCount",
                                          "scope"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "thresholdPercent",
                                            "bounceRatePercent",
                                            "sentCount",
                                            "bouncedCount",
                                            "recipientBounceCount",
                                            "senderBounceCount",
                                            "unclassifiedBounceCount",
                                            "scope"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "unknown"
                                            ]
                                          }
                                        ]
                                      },
                                      "pausedAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "source": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "unknown"
                                            ]
                                          }
                                        ]
                                      },
                                      "evidence": {
                                        "type": "null"
                                      }
                                    },
                                    "required": [
                                      "reason",
                                      "pausedAt",
                                      "source",
                                      "evidence"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "reason",
                                        "pausedAt",
                                        "source",
                                        "evidence"
                                      ]
                                    }
                                  }
                                ],
                                "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "kind": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currentVersion": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "inboxCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "contactCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "workspaceId",
                          "name",
                          "status",
                          "kind",
                          "currentVersion",
                          "inboxCount",
                          "contactCount",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|workspaceId|name|status|pauseContext|kind|currentVersion|inboxCount|contactCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "workspaceId",
                            "name",
                            "status",
                            "pauseContext",
                            "kind",
                            "currentVersion",
                            "inboxCount",
                            "contactCount",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      "steps": {
                        "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"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "email_content",
                                "manual_review",
                                "linked_in_connection_request",
                                "linked_in_in_mail",
                                "phone_call",
                                "text_message",
                                "http_post_request",
                                "attio_task",
                                "heyreach_campaign"
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "enabled"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|type|enabled)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "type",
                              "enabled"
                            ]
                          }
                        }
                      },
                      "parentCampaignId": {
                        "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"
                          }
                        ]
                      },
                      "folderId": {
                        "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"
                          }
                        ]
                      },
                      "scheduleProfileId": {
                        "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"
                          }
                        ]
                      },
                      "tags": {
                        "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": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "color": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "color"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "color"
                            ]
                          }
                        }
                      },
                      "settings": {
                        "type": "object",
                        "properties": {
                          "newLeadPriority": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "espMatchMode": {
                            "type": "string",
                            "enum": [
                              "off",
                              "match_then_spill",
                              "match_only"
                            ]
                          },
                          "opportunityValue": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "stopSendingOnReply": {
                            "type": "boolean"
                          },
                          "continueSendingOnAutomaticReply": {
                            "type": "boolean"
                          },
                          "defaultDelayDaysForAutomaticReply": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "stopSendingOnSameDomainReply": {
                            "type": "boolean"
                          },
                          "openRateTracking": {
                            "type": "boolean"
                          },
                          "unsubscribeLink": {
                            "type": "boolean"
                          },
                          "addUnsubscribedLeadsToBlockList": {
                            "type": "boolean"
                          },
                          "sendAsPlainText": {
                            "type": "boolean"
                          },
                          "sendRiskyEmails": {
                            "type": "boolean"
                          },
                          "skipSegEmails": {
                            "type": "boolean"
                          },
                          "autoPauseOnHighBounceRate": {
                            "type": "boolean"
                          },
                          "continueOnSoftBounce": {
                            "type": "boolean"
                          },
                          "softBounceMonitoringDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 30
                          },
                          "highBounceRateThreshold": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "fallbackSendingForRemovedInboxes": {
                            "type": "boolean"
                          },
                          "fallbackSendingForErroredInboxes": {
                            "type": "boolean"
                          },
                          "dailyCapPerRecipientDomain": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "waterfallEnabled": {
                            "type": "boolean"
                          },
                          "waterfallPassGapDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 90
                          },
                          "waterfallResponseFreeze": {
                            "type": "string",
                            "enum": [
                              "freeze_ladder",
                              "contact_only"
                            ]
                          },
                          "quotedChainAttribution": {
                            "type": "string",
                            "enum": [
                              "current_sender",
                              "original"
                            ]
                          },
                          "ignoreInboxSendLimits": {
                            "type": "boolean"
                          },
                          "ccEmails": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "maxItems": 5
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "initialDelayMinutes": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 43200
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "newLeadPriority",
                          "espMatchMode",
                          "opportunityValue",
                          "stopSendingOnReply",
                          "continueSendingOnAutomaticReply",
                          "defaultDelayDaysForAutomaticReply",
                          "stopSendingOnSameDomainReply",
                          "openRateTracking",
                          "unsubscribeLink",
                          "addUnsubscribedLeadsToBlockList",
                          "sendAsPlainText",
                          "sendRiskyEmails",
                          "skipSegEmails",
                          "autoPauseOnHighBounceRate",
                          "continueOnSoftBounce",
                          "softBounceMonitoringDays",
                          "highBounceRateThreshold",
                          "fallbackSendingForRemovedInboxes",
                          "fallbackSendingForErroredInboxes",
                          "dailyCapPerRecipientDomain",
                          "waterfallEnabled",
                          "waterfallPassGapDays",
                          "waterfallResponseFreeze",
                          "quotedChainAttribution",
                          "ignoreInboxSendLimits",
                          "ccEmails",
                          "initialDelayMinutes"
                        ],
                        "patternProperties": {
                          "^(?!(?:newLeadPriority|espMatchMode|opportunityValue|stopSendingOnReply|continueSendingOnAutomaticReply|defaultDelayDaysForAutomaticReply|stopSendingOnSameDomainReply|openRateTracking|unsubscribeLink|addUnsubscribedLeadsToBlockList|sendAsPlainText|sendRiskyEmails|skipSegEmails|autoPauseOnHighBounceRate|continueOnSoftBounce|softBounceMonitoringDays|highBounceRateThreshold|fallbackSendingForRemovedInboxes|fallbackSendingForErroredInboxes|dailyCapPerRecipientDomain|waterfallEnabled|waterfallPassGapDays|waterfallResponseFreeze|quotedChainAttribution|ignoreInboxSendLimits|ccEmails|initialDelayMinutes)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "newLeadPriority",
                            "espMatchMode",
                            "opportunityValue",
                            "stopSendingOnReply",
                            "continueSendingOnAutomaticReply",
                            "defaultDelayDaysForAutomaticReply",
                            "stopSendingOnSameDomainReply",
                            "openRateTracking",
                            "unsubscribeLink",
                            "addUnsubscribedLeadsToBlockList",
                            "sendAsPlainText",
                            "sendRiskyEmails",
                            "skipSegEmails",
                            "autoPauseOnHighBounceRate",
                            "continueOnSoftBounce",
                            "softBounceMonitoringDays",
                            "highBounceRateThreshold",
                            "fallbackSendingForRemovedInboxes",
                            "fallbackSendingForErroredInboxes",
                            "dailyCapPerRecipientDomain",
                            "waterfallEnabled",
                            "waterfallPassGapDays",
                            "waterfallResponseFreeze",
                            "quotedChainAttribution",
                            "ignoreInboxSendLimits",
                            "ccEmails",
                            "initialDelayMinutes"
                          ]
                        }
                      },
                      "schedule": {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "scheduleVersion": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "scheduleProfileId": {
                            "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"
                              }
                            ]
                          },
                          "defaultTimezone": {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          "daysOfWeek": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "monday",
                                    "tuesday",
                                    "wednesday",
                                    "thursday",
                                    "friday",
                                    "saturday",
                                    "sunday"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unixStartTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86400
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unixEndTime": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 86400
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "useAdvancedSchedule": {
                            "type": "boolean"
                          },
                          "weeklySchedule": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "monday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "tuesday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "wednesday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "thursday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "friday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "saturday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  },
                                  "sunday": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        },
                                        "end": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 86400
                                        }
                                      },
                                      "required": [
                                        "start",
                                        "end"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:start|end)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "start",
                                          "end"
                                        ]
                                      }
                                    },
                                    "maxItems": 12
                                  }
                                },
                                "patternProperties": {
                                  "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "monday",
                                    "tuesday",
                                    "wednesday",
                                    "thursday",
                                    "friday",
                                    "saturday",
                                    "sunday"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "skipHolidays": {
                            "type": "boolean"
                          },
                          "holidayCalendar": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HolidayCalendarCode"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "respectLeadTimezone": {
                            "type": "boolean"
                          },
                          "timezoneFallbackPolicy": {
                            "type": "string",
                            "enum": [
                              "campaign_default",
                              "hold"
                            ]
                          },
                          "maxEmailsPerDay": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxNewLeadsPerDay": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rampUpEnabled": {
                            "type": "boolean"
                          },
                          "rampUpInitialDailyLimit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rampUpDailyIncrement": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rampUpCompletedSendingDays": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "effectiveMaxEmailsPerDay": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "campaignId",
                          "scheduleVersion",
                          "scheduleProfileId",
                          "defaultTimezone",
                          "daysOfWeek",
                          "startDate",
                          "endDate",
                          "unixStartTime",
                          "unixEndTime",
                          "useAdvancedSchedule",
                          "weeklySchedule",
                          "skipHolidays",
                          "holidayCalendar",
                          "respectLeadTimezone",
                          "timezoneFallbackPolicy",
                          "maxEmailsPerDay",
                          "maxNewLeadsPerDay",
                          "rampUpEnabled",
                          "rampUpInitialDailyLimit",
                          "rampUpDailyIncrement",
                          "rampUpCompletedSendingDays",
                          "effectiveMaxEmailsPerDay"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|scheduleVersion|scheduleProfileId|defaultTimezone|daysOfWeek|startDate|endDate|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay|rampUpEnabled|rampUpInitialDailyLimit|rampUpDailyIncrement|rampUpCompletedSendingDays|effectiveMaxEmailsPerDay)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "scheduleVersion",
                            "scheduleProfileId",
                            "defaultTimezone",
                            "daysOfWeek",
                            "startDate",
                            "endDate",
                            "unixStartTime",
                            "unixEndTime",
                            "useAdvancedSchedule",
                            "weeklySchedule",
                            "skipHolidays",
                            "holidayCalendar",
                            "respectLeadTimezone",
                            "timezoneFallbackPolicy",
                            "maxEmailsPerDay",
                            "maxNewLeadsPerDay",
                            "rampUpEnabled",
                            "rampUpInitialDailyLimit",
                            "rampUpDailyIncrement",
                            "rampUpCompletedSendingDays",
                            "effectiveMaxEmailsPerDay"
                          ]
                        }
                      },
                      "customFieldKeys": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "sequenceRevision": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "initialDelayMinutes": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "campaign",
                      "steps"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaign|steps|parentCampaignId|folderId|scheduleProfileId|tags|settings|schedule|customFieldKeys|sequenceRevision|initialDelayMinutes)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaign",
                        "steps",
                        "parentCampaignId",
                        "folderId",
                        "scheduleProfileId",
                        "tags",
                        "settings",
                        "schedule",
                        "customFieldKeys",
                        "sequenceRevision",
                        "initialDelayMinutes"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "campaignId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "inboxId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            }
                          },
                          "required": [
                            "campaignId",
                            "inboxId"
                          ],
                          "patternProperties": {
                            "^(?!(?:campaignId|inboxId)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "campaignId",
                              "inboxId"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "campaignId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "keys": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      }
                    },
                    "required": [
                      "campaignId",
                      "keys"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaignId|keys)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaignId",
                        "keys"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "campaignId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "coverage": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "variable": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "nonEmpty": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "all",
                                "some",
                                "none"
                              ]
                            }
                          },
                          "required": [
                            "variable",
                            "nonEmpty",
                            "state"
                          ],
                          "patternProperties": {
                            "^(?!(?:variable|nonEmpty|state)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "variable",
                              "nonEmpty",
                              "state"
                            ]
                          }
                        }
                      },
                      "sender": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "coverage": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "variable": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "nonEmpty": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "state": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "some",
                                        "none"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "variable",
                                    "nonEmpty",
                                    "state"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:variable|nonEmpty|state)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "variable",
                                      "nonEmpty",
                                      "state"
                                    ]
                                  }
                                }
                              }
                            },
                            "required": [
                              "total",
                              "coverage"
                            ],
                            "patternProperties": {
                              "^(?!(?:total|coverage)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "total",
                                "coverage"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "campaignId",
                      "total",
                      "coverage",
                      "sender"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaignId|total|coverage|sender)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaignId",
                        "total",
                        "coverage",
                        "sender"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "campaignId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "syntax": {
                        "type": "object",
                        "properties": {
                          "liquidTags": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "liquidFilters": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "editorNodeTypes": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "unsupportedEditorNodeTypes": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "spintaxCommands": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "spintaxMaximumOptions": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "examples": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "label": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "template": {
                                  "$ref": "#/$defs/Description"
                                }
                              },
                              "required": [
                                "label",
                                "template"
                              ],
                              "patternProperties": {
                                "^(?!(?:label|template)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "label",
                                  "template"
                                ]
                              }
                            }
                          },
                          "rules": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/Description"
                            }
                          }
                        },
                        "required": [
                          "liquidTags",
                          "liquidFilters",
                          "editorNodeTypes",
                          "unsupportedEditorNodeTypes",
                          "spintaxCommands",
                          "spintaxMaximumOptions",
                          "examples",
                          "rules"
                        ],
                        "patternProperties": {
                          "^(?!(?:liquidTags|liquidFilters|editorNodeTypes|unsupportedEditorNodeTypes|spintaxCommands|spintaxMaximumOptions|examples|rules)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "liquidTags",
                            "liquidFilters",
                            "editorNodeTypes",
                            "unsupportedEditorNodeTypes",
                            "spintaxCommands",
                            "spintaxMaximumOptions",
                            "examples",
                            "rules"
                          ]
                        }
                      },
                      "variables": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "lead",
                                "custom",
                                "platform",
                                "organization",
                                "thread",
                                "sender",
                                "unknown"
                              ]
                            },
                            "syntax": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "description": {
                              "$ref": "#/$defs/Description"
                            },
                            "bodyOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "syntax",
                            "description",
                            "bodyOnly"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|type|syntax|description|bodyOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "type",
                              "syntax",
                              "description",
                              "bodyOnly"
                            ]
                          }
                        }
                      },
                      "customFieldKeys": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "organizationVariableKeys": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "totalContacts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "coverageStatus": {
                        "type": "string",
                        "enum": [
                          "checked",
                          "no_contacts"
                        ]
                      },
                      "senderCoverage": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "checked",
                              "no_inboxes",
                              "unavailable"
                            ]
                          },
                          "total": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "status",
                          "total"
                        ],
                        "patternProperties": {
                          "^(?!(?:status|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "status",
                            "total"
                          ]
                        }
                      },
                      "isSubsequence": {
                        "type": "boolean"
                      },
                      "instruction": {
                        "$ref": "#/$defs/Description"
                      }
                    },
                    "required": [
                      "campaignId",
                      "syntax",
                      "variables",
                      "customFieldKeys",
                      "organizationVariableKeys",
                      "totalContacts",
                      "coverageStatus",
                      "senderCoverage",
                      "isSubsequence",
                      "instruction"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaignId|syntax|variables|customFieldKeys|organizationVariableKeys|totalContacts|coverageStatus|senderCoverage|isSubsequence|instruction)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaignId",
                        "syntax",
                        "variables",
                        "customFieldKeys",
                        "organizationVariableKeys",
                        "totalContacts",
                        "coverageStatus",
                        "senderCoverage",
                        "isSubsequence",
                        "instruction"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "campaignId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "valid",
                          "needs_review",
                          "invalid"
                        ]
                      },
                      "syntaxValid": {
                        "type": "boolean"
                      },
                      "totalContacts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "coverageStatus": {
                        "type": "string",
                        "enum": [
                          "checked",
                          "no_contacts"
                        ]
                      },
                      "senderCoverage": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "checked",
                              "no_inboxes",
                              "unavailable"
                            ]
                          },
                          "total": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "status",
                          "total"
                        ],
                        "patternProperties": {
                          "^(?!(?:status|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "status",
                            "total"
                          ]
                        }
                      },
                      "fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "subject",
                                "body"
                              ]
                            },
                            "syntaxValid": {
                              "type": "boolean"
                            },
                            "syntaxMessage": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Description"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "renderCase": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "variables": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "lead",
                                      "custom",
                                      "platform",
                                      "organization",
                                      "thread",
                                      "sender",
                                      "unknown"
                                    ]
                                  },
                                  "isDefined": {
                                    "type": "boolean"
                                  },
                                  "hasFallback": {
                                    "type": "boolean"
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "all",
                                      "some",
                                      "none",
                                      "undefined",
                                      "always",
                                      "nullable",
                                      "unknown",
                                      "no_inboxes",
                                      "no_prior_email",
                                      "body_only"
                                    ]
                                  },
                                  "severity": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "warn",
                                      "error"
                                    ]
                                  },
                                  "coverage": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "nonEmpty": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "total": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "nonEmpty",
                                          "total"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:nonEmpty|total)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "nonEmpty",
                                            "total"
                                          ]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "isDefined",
                                  "hasFallback",
                                  "state",
                                  "severity",
                                  "coverage"
                                ],
                                "patternProperties": {
                                  "^(?!(?:name|type|isDefined|hasFallback|state|severity|coverage)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "name",
                                    "type",
                                    "isDefined",
                                    "hasFallback",
                                    "state",
                                    "severity",
                                    "coverage"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "field",
                            "syntaxValid",
                            "syntaxMessage",
                            "renderCase",
                            "variables"
                          ],
                          "patternProperties": {
                            "^(?!(?:field|syntaxValid|syntaxMessage|renderCase|variables)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "field",
                              "syntaxValid",
                              "syntaxMessage",
                              "renderCase",
                              "variables"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "campaignId",
                      "status",
                      "syntaxValid",
                      "totalContacts",
                      "coverageStatus",
                      "senderCoverage",
                      "fields"
                    ],
                    "patternProperties": {
                      "^(?!(?:campaignId|status|syntaxValid|totalContacts|coverageStatus|senderCoverage|fields)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "campaignId",
                        "status",
                        "syntaxValid",
                        "totalContacts",
                        "coverageStatus",
                        "senderCoverage",
                        "fields"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "required": [
                            "id",
                            "emailAddress",
                            "provider",
                            "status"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|emailAddress|provider|status)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "emailAddress",
                              "provider",
                              "status"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "explicit": {
                              "type": "boolean"
                            },
                            "viaTags": {
                              "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": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "color": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "color"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "name",
                                    "color"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "id",
                            "emailAddress",
                            "provider",
                            "status",
                            "explicit",
                            "viaTags"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|emailAddress|provider|status|explicit|viaTags)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "emailAddress",
                              "provider",
                              "status",
                              "explicit",
                              "viaTags"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "count"
                    ],
                    "patternProperties": {
                      "^(?!(?:count)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "count"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "campaignId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "version": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "source": {
                              "type": "string",
                              "enum": [
                                "baseline",
                                "created",
                                "duplicated",
                                "details",
                                "status",
                                "launched",
                                "settings",
                                "schedule",
                                "schedule_profile_propagated",
                                "sequence",
                                "step_toggle",
                                "subsequence_triggers",
                                "restored",
                                "system"
                              ]
                            },
                            "campaignStatus": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "active",
                                "paused",
                                "archived",
                                "completed"
                              ]
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "stepCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "actor": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "user",
                                    "api_key",
                                    "system"
                                  ]
                                },
                                "userId": {
                                  "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"
                                    }
                                  ]
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "userId",
                                "name",
                                "email"
                              ],
                              "patternProperties": {
                                "^(?!(?:type|userId|name|email)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "type",
                                  "userId",
                                  "name",
                                  "email"
                                ]
                              }
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "campaignId",
                            "version",
                            "source",
                            "campaignStatus",
                            "name",
                            "stepCount",
                            "actor",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:campaignId|version|source|campaignStatus|name|stepCount|actor|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "campaignId",
                              "version",
                              "source",
                              "campaignStatus",
                              "name",
                              "stepCount",
                              "actor",
                              "createdAt"
                            ]
                          }
                        }
                      },
                      "totalCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "nextCursor": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "items",
                      "totalCount",
                      "nextCursor"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|totalCount|nextCursor)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "totalCount",
                        "nextCursor"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "record": {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "version": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "baseline",
                              "created",
                              "duplicated",
                              "details",
                              "status",
                              "launched",
                              "settings",
                              "schedule",
                              "schedule_profile_propagated",
                              "sequence",
                              "step_toggle",
                              "subsequence_triggers",
                              "restored",
                              "system"
                            ]
                          },
                          "campaignStatus": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "archived",
                              "completed"
                            ]
                          },
                          "name": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "stepCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "actor": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "user",
                                  "api_key",
                                  "system"
                                ]
                              },
                              "userId": {
                                "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"
                                  }
                                ]
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "email": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/EmailAddress"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "type",
                              "userId",
                              "name",
                              "email"
                            ],
                            "patternProperties": {
                              "^(?!(?:type|userId|name|email)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "type",
                                "userId",
                                "name",
                                "email"
                              ]
                            }
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "campaignId",
                          "version",
                          "source",
                          "campaignStatus",
                          "name",
                          "stepCount",
                          "actor",
                          "createdAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|version|source|campaignStatus|name|stepCount|actor|createdAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "version",
                            "source",
                            "campaignStatus",
                            "name",
                            "stepCount",
                            "actor",
                            "createdAt"
                          ]
                        }
                      },
                      "snapshotSchemaVersion": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "contentHash": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "snapshot": {
                        "type": "object",
                        "properties": {
                          "schemaVersion": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "campaignName": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "campaignStatus": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "archived",
                              "completed"
                            ]
                          },
                          "scheduleProfileName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inboxes": {
                            "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress"
                                ]
                              }
                            }
                          },
                          "tags": {
                            "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": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "color": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "color"
                                ]
                              }
                            }
                          },
                          "steps": {
                            "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"
                                },
                                "stepId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "stepOrder": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "variantOrder": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "type": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "enabled": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "stepId",
                                "stepOrder",
                                "variantOrder",
                                "type",
                                "enabled"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|stepId|stepOrder|variantOrder|type|enabled)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "stepId",
                                  "stepOrder",
                                  "variantOrder",
                                  "type",
                                  "enabled"
                                ]
                              }
                            }
                          },
                          "subsequenceTriggerCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "schemaVersion",
                          "campaignName",
                          "campaignStatus",
                          "scheduleProfileName",
                          "inboxes",
                          "tags",
                          "steps",
                          "subsequenceTriggerCount"
                        ],
                        "patternProperties": {
                          "^(?!(?:schemaVersion|campaignName|campaignStatus|scheduleProfileName|inboxes|tags|steps|subsequenceTriggerCount)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "schemaVersion",
                            "campaignName",
                            "campaignStatus",
                            "scheduleProfileName",
                            "inboxes",
                            "tags",
                            "steps",
                            "subsequenceTriggerCount"
                          ]
                        }
                      },
                      "authoredSnapshot": {
                        "$ref": "#/$defs/AuthoredCampaignSnapshot"
                      }
                    },
                    "required": [
                      "record",
                      "snapshotSchemaVersion",
                      "contentHash",
                      "snapshot"
                    ],
                    "patternProperties": {
                      "^(?!(?:record|snapshotSchemaVersion|contentHash|snapshot|authoredSnapshot)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "record",
                        "snapshotSchemaVersion",
                        "contentHash",
                        "snapshot",
                        "authoredSnapshot"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "calendar": {
                        "$ref": "#/$defs/HolidayCalendarCode"
                      },
                      "year": {
                        "type": "integer",
                        "minimum": 1970,
                        "maximum": 2999
                      },
                      "holidays": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "required": [
                            "date",
                            "name"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|name)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "name"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "calendar",
                      "year",
                      "holidays"
                    ],
                    "patternProperties": {
                      "^(?!(?:calendar|year|holidays)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "calendar",
                        "year",
                        "holidays"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "scope": {
                        "type": "string",
                        "enum": [
                          "selected",
                          "all"
                        ]
                      },
                      "days": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "observances": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "calendarCode": {
                                    "$ref": "#/$defs/HolidayCalendarCode"
                                  },
                                  "calendarName": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "name": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "required": [
                                  "calendarCode",
                                  "calendarName",
                                  "name"
                                ],
                                "patternProperties": {
                                  "^(?!(?:calendarCode|calendarName|name)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "calendarCode",
                                    "calendarName",
                                    "name"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "date",
                            "observances"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|observances)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "observances"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "scope",
                      "days"
                    ],
                    "patternProperties": {
                      "^(?!(?:scope|days)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "scope",
                        "days"
                      ]
                    }
                  }
                ]
              },
              {
                "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": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "draft",
                                    "active",
                                    "paused",
                                    "archived",
                                    "completed"
                                  ]
                                },
                                "pauseContext": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "reason": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "manual"
                                                  ]
                                                }
                                              ]
                                            },
                                            "pausedAt": {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            "source": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "user"
                                                  ]
                                                }
                                              ]
                                            },
                                            "evidence": {
                                              "type": "null"
                                            }
                                          },
                                          "required": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "reason",
                                              "pausedAt",
                                              "source",
                                              "evidence"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "reason": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "bounce_threshold"
                                                  ]
                                                }
                                              ]
                                            },
                                            "pausedAt": {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            "source": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "system"
                                                  ]
                                                }
                                              ]
                                            },
                                            "evidence": {
                                              "type": "object",
                                              "properties": {
                                                "thresholdPercent": {
                                                  "anyOf": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "string",
                                                      "enum": [
                                                        "Infinity",
                                                        "-Infinity",
                                                        "NaN"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                "bounceRatePercent": {
                                                  "anyOf": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "string",
                                                      "enum": [
                                                        "Infinity",
                                                        "-Infinity",
                                                        "NaN"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                "sentCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "bouncedCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "recipientBounceCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "senderBounceCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "unclassifiedBounceCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "scope": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string",
                                                      "enum": [
                                                        "campaign_lifetime"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "thresholdPercent",
                                                "bounceRatePercent",
                                                "sentCount",
                                                "bouncedCount",
                                                "recipientBounceCount",
                                                "senderBounceCount",
                                                "unclassifiedBounceCount",
                                                "scope"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "thresholdPercent",
                                                  "bounceRatePercent",
                                                  "sentCount",
                                                  "bouncedCount",
                                                  "recipientBounceCount",
                                                  "senderBounceCount",
                                                  "unclassifiedBounceCount",
                                                  "scope"
                                                ]
                                              }
                                            }
                                          },
                                          "required": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "reason",
                                              "pausedAt",
                                              "source",
                                              "evidence"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "reason": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "unknown"
                                                  ]
                                                }
                                              ]
                                            },
                                            "pausedAt": {
                                              "anyOf": [
                                                {
                                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "source": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "unknown"
                                                  ]
                                                }
                                              ]
                                            },
                                            "evidence": {
                                              "type": "null"
                                            }
                                          },
                                          "required": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "reason",
                                              "pausedAt",
                                              "source",
                                              "evidence"
                                            ]
                                          }
                                        }
                                      ],
                                      "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "folderId": {
                                  "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"
                                    }
                                  ]
                                },
                                "tags": {
                                  "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": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "color": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "name",
                                        "color"
                                      ]
                                    }
                                  }
                                },
                                "sentCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replyCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "bounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "recipientBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "senderBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "unclassifiedBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "status",
                                "folderId",
                                "tags",
                                "sentCount",
                                "replyCount",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|status|pauseContext|folderId|tags|sentCount|replyCount|bounceCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "status",
                                  "pauseContext",
                                  "folderId",
                                  "tags",
                                  "sentCount",
                                  "replyCount",
                                  "bounceCount",
                                  "recipientBounceCount",
                                  "senderBounceCount",
                                  "unclassifiedBounceCount",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "limit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "offset",
                              "limit",
                              "total"
                            ],
                            "patternProperties": {
                              "^(?!(?:offset|limit|total)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "offset",
                                "limit",
                                "total"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "campaign": {
                            "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"
                              },
                              "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"
                              },
                              "name": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "draft",
                                  "active",
                                  "paused",
                                  "archived",
                                  "completed"
                                ]
                              },
                              "pauseContext": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "reason": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "manual"
                                                ]
                                              }
                                            ]
                                          },
                                          "pausedAt": {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          "source": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "user"
                                                ]
                                              }
                                            ]
                                          },
                                          "evidence": {
                                            "type": "null"
                                          }
                                        },
                                        "required": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ]
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "reason": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "bounce_threshold"
                                                ]
                                              }
                                            ]
                                          },
                                          "pausedAt": {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          "source": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "system"
                                                ]
                                              }
                                            ]
                                          },
                                          "evidence": {
                                            "type": "object",
                                            "properties": {
                                              "thresholdPercent": {
                                                "anyOf": [
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "string",
                                                    "enum": [
                                                      "Infinity",
                                                      "-Infinity",
                                                      "NaN"
                                                    ]
                                                  }
                                                ]
                                              },
                                              "bounceRatePercent": {
                                                "anyOf": [
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "string",
                                                    "enum": [
                                                      "Infinity",
                                                      "-Infinity",
                                                      "NaN"
                                                    ]
                                                  }
                                                ]
                                              },
                                              "sentCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "bouncedCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "recipientBounceCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "senderBounceCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "unclassifiedBounceCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "scope": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "enum": [
                                                      "campaign_lifetime"
                                                    ]
                                                  }
                                                ]
                                              }
                                            },
                                            "required": [
                                              "thresholdPercent",
                                              "bounceRatePercent",
                                              "sentCount",
                                              "bouncedCount",
                                              "recipientBounceCount",
                                              "senderBounceCount",
                                              "unclassifiedBounceCount",
                                              "scope"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "thresholdPercent",
                                                "bounceRatePercent",
                                                "sentCount",
                                                "bouncedCount",
                                                "recipientBounceCount",
                                                "senderBounceCount",
                                                "unclassifiedBounceCount",
                                                "scope"
                                              ]
                                            }
                                          }
                                        },
                                        "required": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ]
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "reason": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "unknown"
                                                ]
                                              }
                                            ]
                                          },
                                          "pausedAt": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/$defs/UtcDateTimeEncoded"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "source": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "unknown"
                                                ]
                                              }
                                            ]
                                          },
                                          "evidence": {
                                            "type": "null"
                                          }
                                        },
                                        "required": [
                                          "reason",
                                          "pausedAt",
                                          "source",
                                          "evidence"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "reason",
                                            "pausedAt",
                                            "source",
                                            "evidence"
                                          ]
                                        }
                                      }
                                    ],
                                    "description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "kind": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "currentVersion": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "inboxCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "contactCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "id",
                              "workspaceId",
                              "name",
                              "status",
                              "kind",
                              "currentVersion",
                              "inboxCount",
                              "contactCount",
                              "createdAt",
                              "updatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|workspaceId|name|status|pauseContext|kind|currentVersion|inboxCount|contactCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "workspaceId",
                                "name",
                                "status",
                                "pauseContext",
                                "kind",
                                "currentVersion",
                                "inboxCount",
                                "contactCount",
                                "createdAt",
                                "updatedAt"
                              ]
                            }
                          },
                          "steps": {
                            "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"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "email_content",
                                    "manual_review",
                                    "linked_in_connection_request",
                                    "linked_in_in_mail",
                                    "phone_call",
                                    "text_message",
                                    "http_post_request",
                                    "attio_task",
                                    "heyreach_campaign"
                                  ]
                                },
                                "enabled": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "enabled"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|type|enabled)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "type",
                                  "enabled"
                                ]
                              }
                            }
                          },
                          "parentCampaignId": {
                            "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"
                              }
                            ]
                          },
                          "folderId": {
                            "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"
                              }
                            ]
                          },
                          "scheduleProfileId": {
                            "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"
                              }
                            ]
                          },
                          "tags": {
                            "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": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "color": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "color"
                                ]
                              }
                            }
                          },
                          "settings": {
                            "type": "object",
                            "properties": {
                              "newLeadPriority": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "espMatchMode": {
                                "type": "string",
                                "enum": [
                                  "off",
                                  "match_then_spill",
                                  "match_only"
                                ]
                              },
                              "opportunityValue": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "stopSendingOnReply": {
                                "type": "boolean"
                              },
                              "continueSendingOnAutomaticReply": {
                                "type": "boolean"
                              },
                              "defaultDelayDaysForAutomaticReply": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "stopSendingOnSameDomainReply": {
                                "type": "boolean"
                              },
                              "openRateTracking": {
                                "type": "boolean"
                              },
                              "unsubscribeLink": {
                                "type": "boolean"
                              },
                              "addUnsubscribedLeadsToBlockList": {
                                "type": "boolean"
                              },
                              "sendAsPlainText": {
                                "type": "boolean"
                              },
                              "sendRiskyEmails": {
                                "type": "boolean"
                              },
                              "skipSegEmails": {
                                "type": "boolean"
                              },
                              "autoPauseOnHighBounceRate": {
                                "type": "boolean"
                              },
                              "continueOnSoftBounce": {
                                "type": "boolean"
                              },
                              "softBounceMonitoringDays": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 30
                              },
                              "highBounceRateThreshold": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "fallbackSendingForRemovedInboxes": {
                                "type": "boolean"
                              },
                              "fallbackSendingForErroredInboxes": {
                                "type": "boolean"
                              },
                              "dailyCapPerRecipientDomain": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "waterfallEnabled": {
                                "type": "boolean"
                              },
                              "waterfallPassGapDays": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 90
                              },
                              "waterfallResponseFreeze": {
                                "type": "string",
                                "enum": [
                                  "freeze_ladder",
                                  "contact_only"
                                ]
                              },
                              "quotedChainAttribution": {
                                "type": "string",
                                "enum": [
                                  "current_sender",
                                  "original"
                                ]
                              },
                              "ignoreInboxSendLimits": {
                                "type": "boolean"
                              },
                              "ccEmails": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    "maxItems": 5
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "initialDelayMinutes": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 43200
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "newLeadPriority",
                              "espMatchMode",
                              "opportunityValue",
                              "stopSendingOnReply",
                              "continueSendingOnAutomaticReply",
                              "defaultDelayDaysForAutomaticReply",
                              "stopSendingOnSameDomainReply",
                              "openRateTracking",
                              "unsubscribeLink",
                              "addUnsubscribedLeadsToBlockList",
                              "sendAsPlainText",
                              "sendRiskyEmails",
                              "skipSegEmails",
                              "autoPauseOnHighBounceRate",
                              "continueOnSoftBounce",
                              "softBounceMonitoringDays",
                              "highBounceRateThreshold",
                              "fallbackSendingForRemovedInboxes",
                              "fallbackSendingForErroredInboxes",
                              "dailyCapPerRecipientDomain",
                              "waterfallEnabled",
                              "waterfallPassGapDays",
                              "waterfallResponseFreeze",
                              "quotedChainAttribution",
                              "ignoreInboxSendLimits",
                              "ccEmails",
                              "initialDelayMinutes"
                            ],
                            "patternProperties": {
                              "^(?!(?:newLeadPriority|espMatchMode|opportunityValue|stopSendingOnReply|continueSendingOnAutomaticReply|defaultDelayDaysForAutomaticReply|stopSendingOnSameDomainReply|openRateTracking|unsubscribeLink|addUnsubscribedLeadsToBlockList|sendAsPlainText|sendRiskyEmails|skipSegEmails|autoPauseOnHighBounceRate|continueOnSoftBounce|softBounceMonitoringDays|highBounceRateThreshold|fallbackSendingForRemovedInboxes|fallbackSendingForErroredInboxes|dailyCapPerRecipientDomain|waterfallEnabled|waterfallPassGapDays|waterfallResponseFreeze|quotedChainAttribution|ignoreInboxSendLimits|ccEmails|initialDelayMinutes)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "newLeadPriority",
                                "espMatchMode",
                                "opportunityValue",
                                "stopSendingOnReply",
                                "continueSendingOnAutomaticReply",
                                "defaultDelayDaysForAutomaticReply",
                                "stopSendingOnSameDomainReply",
                                "openRateTracking",
                                "unsubscribeLink",
                                "addUnsubscribedLeadsToBlockList",
                                "sendAsPlainText",
                                "sendRiskyEmails",
                                "skipSegEmails",
                                "autoPauseOnHighBounceRate",
                                "continueOnSoftBounce",
                                "softBounceMonitoringDays",
                                "highBounceRateThreshold",
                                "fallbackSendingForRemovedInboxes",
                                "fallbackSendingForErroredInboxes",
                                "dailyCapPerRecipientDomain",
                                "waterfallEnabled",
                                "waterfallPassGapDays",
                                "waterfallResponseFreeze",
                                "quotedChainAttribution",
                                "ignoreInboxSendLimits",
                                "ccEmails",
                                "initialDelayMinutes"
                              ]
                            }
                          },
                          "schedule": {
                            "type": "object",
                            "properties": {
                              "campaignId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "scheduleVersion": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "scheduleProfileId": {
                                "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"
                                  }
                                ]
                              },
                              "defaultTimezone": {
                                "$ref": "#/$defs/IanaTimeZone"
                              },
                              "daysOfWeek": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "monday",
                                        "tuesday",
                                        "wednesday",
                                        "thursday",
                                        "friday",
                                        "saturday",
                                        "sunday"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "startDate": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "endDate": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unixStartTime": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 86400
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unixEndTime": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 86400
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "useAdvancedSchedule": {
                                "type": "boolean"
                              },
                              "weeklySchedule": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "monday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "tuesday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "wednesday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "thursday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "friday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "saturday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      },
                                      "sunday": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            },
                                            "end": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 86400
                                            }
                                          },
                                          "required": [
                                            "start",
                                            "end"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:start|end)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "start",
                                              "end"
                                            ]
                                          }
                                        },
                                        "maxItems": 12
                                      }
                                    },
                                    "patternProperties": {
                                      "^(?!(?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "monday",
                                        "tuesday",
                                        "wednesday",
                                        "thursday",
                                        "friday",
                                        "saturday",
                                        "sunday"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "skipHolidays": {
                                "type": "boolean"
                              },
                              "holidayCalendar": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HolidayCalendarCode"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "respectLeadTimezone": {
                                "type": "boolean"
                              },
                              "timezoneFallbackPolicy": {
                                "type": "string",
                                "enum": [
                                  "campaign_default",
                                  "hold"
                                ]
                              },
                              "maxEmailsPerDay": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "maxNewLeadsPerDay": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "rampUpEnabled": {
                                "type": "boolean"
                              },
                              "rampUpInitialDailyLimit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "rampUpDailyIncrement": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "rampUpCompletedSendingDays": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "effectiveMaxEmailsPerDay": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "campaignId",
                              "scheduleVersion",
                              "scheduleProfileId",
                              "defaultTimezone",
                              "daysOfWeek",
                              "startDate",
                              "endDate",
                              "unixStartTime",
                              "unixEndTime",
                              "useAdvancedSchedule",
                              "weeklySchedule",
                              "skipHolidays",
                              "holidayCalendar",
                              "respectLeadTimezone",
                              "timezoneFallbackPolicy",
                              "maxEmailsPerDay",
                              "maxNewLeadsPerDay",
                              "rampUpEnabled",
                              "rampUpInitialDailyLimit",
                              "rampUpDailyIncrement",
                              "rampUpCompletedSendingDays",
                              "effectiveMaxEmailsPerDay"
                            ],
                            "patternProperties": {
                              "^(?!(?:campaignId|scheduleVersion|scheduleProfileId|defaultTimezone|daysOfWeek|startDate|endDate|unixStartTime|unixEndTime|useAdvancedSchedule|weeklySchedule|skipHolidays|holidayCalendar|respectLeadTimezone|timezoneFallbackPolicy|maxEmailsPerDay|maxNewLeadsPerDay|rampUpEnabled|rampUpInitialDailyLimit|rampUpDailyIncrement|rampUpCompletedSendingDays|effectiveMaxEmailsPerDay)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "campaignId",
                                "scheduleVersion",
                                "scheduleProfileId",
                                "defaultTimezone",
                                "daysOfWeek",
                                "startDate",
                                "endDate",
                                "unixStartTime",
                                "unixEndTime",
                                "useAdvancedSchedule",
                                "weeklySchedule",
                                "skipHolidays",
                                "holidayCalendar",
                                "respectLeadTimezone",
                                "timezoneFallbackPolicy",
                                "maxEmailsPerDay",
                                "maxNewLeadsPerDay",
                                "rampUpEnabled",
                                "rampUpInitialDailyLimit",
                                "rampUpDailyIncrement",
                                "rampUpCompletedSendingDays",
                                "effectiveMaxEmailsPerDay"
                              ]
                            }
                          },
                          "customFieldKeys": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "sequenceRevision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "initialDelayMinutes": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "campaign",
                          "steps"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaign|steps|parentCampaignId|folderId|scheduleProfileId|tags|settings|schedule|customFieldKeys|sequenceRevision|initialDelayMinutes)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaign",
                            "steps",
                            "parentCampaignId",
                            "folderId",
                            "scheduleProfileId",
                            "tags",
                            "settings",
                            "schedule",
                            "customFieldKeys",
                            "sequenceRevision",
                            "initialDelayMinutes"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "campaignId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "inboxId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                }
                              },
                              "required": [
                                "campaignId",
                                "inboxId"
                              ],
                              "patternProperties": {
                                "^(?!(?:campaignId|inboxId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "campaignId",
                                  "inboxId"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          }
                        },
                        "required": [
                          "campaignId",
                          "keys"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|keys)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "keys"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "coverage": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "variable": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "nonEmpty": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "all",
                                    "some",
                                    "none"
                                  ]
                                }
                              },
                              "required": [
                                "variable",
                                "nonEmpty",
                                "state"
                              ],
                              "patternProperties": {
                                "^(?!(?:variable|nonEmpty|state)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "variable",
                                  "nonEmpty",
                                  "state"
                                ]
                              }
                            }
                          },
                          "sender": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "coverage": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "variable": {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        "nonEmpty": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "state": {
                                          "type": "string",
                                          "enum": [
                                            "all",
                                            "some",
                                            "none"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "variable",
                                        "nonEmpty",
                                        "state"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:variable|nonEmpty|state)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "variable",
                                          "nonEmpty",
                                          "state"
                                        ]
                                      }
                                    }
                                  }
                                },
                                "required": [
                                  "total",
                                  "coverage"
                                ],
                                "patternProperties": {
                                  "^(?!(?:total|coverage)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "total",
                                    "coverage"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "campaignId",
                          "total",
                          "coverage",
                          "sender"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|total|coverage|sender)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "total",
                            "coverage",
                            "sender"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "syntax": {
                            "type": "object",
                            "properties": {
                              "liquidTags": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "liquidFilters": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "editorNodeTypes": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "unsupportedEditorNodeTypes": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "spintaxCommands": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "spintaxMaximumOptions": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "examples": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "label": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "template": {
                                      "$ref": "#/$defs/Description"
                                    }
                                  },
                                  "required": [
                                    "label",
                                    "template"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:label|template)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "label",
                                      "template"
                                    ]
                                  }
                                }
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/Description"
                                }
                              }
                            },
                            "required": [
                              "liquidTags",
                              "liquidFilters",
                              "editorNodeTypes",
                              "unsupportedEditorNodeTypes",
                              "spintaxCommands",
                              "spintaxMaximumOptions",
                              "examples",
                              "rules"
                            ],
                            "patternProperties": {
                              "^(?!(?:liquidTags|liquidFilters|editorNodeTypes|unsupportedEditorNodeTypes|spintaxCommands|spintaxMaximumOptions|examples|rules)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "liquidTags",
                                "liquidFilters",
                                "editorNodeTypes",
                                "unsupportedEditorNodeTypes",
                                "spintaxCommands",
                                "spintaxMaximumOptions",
                                "examples",
                                "rules"
                              ]
                            }
                          },
                          "variables": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "lead",
                                    "custom",
                                    "platform",
                                    "organization",
                                    "thread",
                                    "sender",
                                    "unknown"
                                  ]
                                },
                                "syntax": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "description": {
                                  "$ref": "#/$defs/Description"
                                },
                                "bodyOnly": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "syntax",
                                "description",
                                "bodyOnly"
                              ],
                              "patternProperties": {
                                "^(?!(?:name|type|syntax|description|bodyOnly)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "name",
                                  "type",
                                  "syntax",
                                  "description",
                                  "bodyOnly"
                                ]
                              }
                            }
                          },
                          "customFieldKeys": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "organizationVariableKeys": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "totalContacts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "coverageStatus": {
                            "type": "string",
                            "enum": [
                              "checked",
                              "no_contacts"
                            ]
                          },
                          "senderCoverage": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": [
                                  "checked",
                                  "no_inboxes",
                                  "unavailable"
                                ]
                              },
                              "total": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "status",
                              "total"
                            ],
                            "patternProperties": {
                              "^(?!(?:status|total)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "status",
                                "total"
                              ]
                            }
                          },
                          "isSubsequence": {
                            "type": "boolean"
                          },
                          "instruction": {
                            "$ref": "#/$defs/Description"
                          }
                        },
                        "required": [
                          "campaignId",
                          "syntax",
                          "variables",
                          "customFieldKeys",
                          "organizationVariableKeys",
                          "totalContacts",
                          "coverageStatus",
                          "senderCoverage",
                          "isSubsequence",
                          "instruction"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|syntax|variables|customFieldKeys|organizationVariableKeys|totalContacts|coverageStatus|senderCoverage|isSubsequence|instruction)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "syntax",
                            "variables",
                            "customFieldKeys",
                            "organizationVariableKeys",
                            "totalContacts",
                            "coverageStatus",
                            "senderCoverage",
                            "isSubsequence",
                            "instruction"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "campaignId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "valid",
                              "needs_review",
                              "invalid"
                            ]
                          },
                          "syntaxValid": {
                            "type": "boolean"
                          },
                          "totalContacts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "coverageStatus": {
                            "type": "string",
                            "enum": [
                              "checked",
                              "no_contacts"
                            ]
                          },
                          "senderCoverage": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": [
                                  "checked",
                                  "no_inboxes",
                                  "unavailable"
                                ]
                              },
                              "total": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "status",
                              "total"
                            ],
                            "patternProperties": {
                              "^(?!(?:status|total)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "status",
                                "total"
                              ]
                            }
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "enum": [
                                    "subject",
                                    "body"
                                  ]
                                },
                                "syntaxValid": {
                                  "type": "boolean"
                                },
                                "syntaxMessage": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Description"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "renderCase": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "variables": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "lead",
                                          "custom",
                                          "platform",
                                          "organization",
                                          "thread",
                                          "sender",
                                          "unknown"
                                        ]
                                      },
                                      "isDefined": {
                                        "type": "boolean"
                                      },
                                      "hasFallback": {
                                        "type": "boolean"
                                      },
                                      "state": {
                                        "type": "string",
                                        "enum": [
                                          "all",
                                          "some",
                                          "none",
                                          "undefined",
                                          "always",
                                          "nullable",
                                          "unknown",
                                          "no_inboxes",
                                          "no_prior_email",
                                          "body_only"
                                        ]
                                      },
                                      "severity": {
                                        "type": "string",
                                        "enum": [
                                          "ok",
                                          "warn",
                                          "error"
                                        ]
                                      },
                                      "coverage": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "nonEmpty": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "total": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              }
                                            },
                                            "required": [
                                              "nonEmpty",
                                              "total"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:nonEmpty|total)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "nonEmpty",
                                                "total"
                                              ]
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "isDefined",
                                      "hasFallback",
                                      "state",
                                      "severity",
                                      "coverage"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:name|type|isDefined|hasFallback|state|severity|coverage)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "name",
                                        "type",
                                        "isDefined",
                                        "hasFallback",
                                        "state",
                                        "severity",
                                        "coverage"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "field",
                                "syntaxValid",
                                "syntaxMessage",
                                "renderCase",
                                "variables"
                              ],
                              "patternProperties": {
                                "^(?!(?:field|syntaxValid|syntaxMessage|renderCase|variables)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "field",
                                  "syntaxValid",
                                  "syntaxMessage",
                                  "renderCase",
                                  "variables"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "campaignId",
                          "status",
                          "syntaxValid",
                          "totalContacts",
                          "coverageStatus",
                          "senderCoverage",
                          "fields"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaignId|status|syntaxValid|totalContacts|coverageStatus|senderCoverage|fields)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaignId",
                            "status",
                            "syntaxValid",
                            "totalContacts",
                            "coverageStatus",
                            "senderCoverage",
                            "fields"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "provider",
                                "status"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|provider|status)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "provider",
                                  "status"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "explicit": {
                                  "type": "boolean"
                                },
                                "viaTags": {
                                  "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": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "color": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "name",
                                        "color"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "provider",
                                "status",
                                "explicit",
                                "viaTags"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|provider|status|explicit|viaTags)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "provider",
                                  "status",
                                  "explicit",
                                  "viaTags"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "count": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "count"
                        ],
                        "patternProperties": {
                          "^(?!(?:count)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "count"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "campaignId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "version": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "source": {
                                  "type": "string",
                                  "enum": [
                                    "baseline",
                                    "created",
                                    "duplicated",
                                    "details",
                                    "status",
                                    "launched",
                                    "settings",
                                    "schedule",
                                    "schedule_profile_propagated",
                                    "sequence",
                                    "step_toggle",
                                    "subsequence_triggers",
                                    "restored",
                                    "system"
                                  ]
                                },
                                "campaignStatus": {
                                  "type": "string",
                                  "enum": [
                                    "draft",
                                    "active",
                                    "paused",
                                    "archived",
                                    "completed"
                                  ]
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "stepCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "actor": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "user",
                                        "api_key",
                                        "system"
                                      ]
                                    },
                                    "userId": {
                                      "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"
                                        }
                                      ]
                                    },
                                    "name": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "email": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/EmailAddress"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "userId",
                                    "name",
                                    "email"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|userId|name|email)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "userId",
                                      "name",
                                      "email"
                                    ]
                                  }
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "campaignId",
                                "version",
                                "source",
                                "campaignStatus",
                                "name",
                                "stepCount",
                                "actor",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:campaignId|version|source|campaignStatus|name|stepCount|actor|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "campaignId",
                                  "version",
                                  "source",
                                  "campaignStatus",
                                  "name",
                                  "stepCount",
                                  "actor",
                                  "createdAt"
                                ]
                              }
                            }
                          },
                          "totalCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "nextCursor": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "items",
                          "totalCount",
                          "nextCursor"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|totalCount|nextCursor)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "totalCount",
                            "nextCursor"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "record": {
                            "type": "object",
                            "properties": {
                              "campaignId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "version": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "source": {
                                "type": "string",
                                "enum": [
                                  "baseline",
                                  "created",
                                  "duplicated",
                                  "details",
                                  "status",
                                  "launched",
                                  "settings",
                                  "schedule",
                                  "schedule_profile_propagated",
                                  "sequence",
                                  "step_toggle",
                                  "subsequence_triggers",
                                  "restored",
                                  "system"
                                ]
                              },
                              "campaignStatus": {
                                "type": "string",
                                "enum": [
                                  "draft",
                                  "active",
                                  "paused",
                                  "archived",
                                  "completed"
                                ]
                              },
                              "name": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "stepCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "actor": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "user",
                                      "api_key",
                                      "system"
                                    ]
                                  },
                                  "userId": {
                                    "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"
                                      }
                                    ]
                                  },
                                  "name": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "email": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/EmailAddress"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "userId",
                                  "name",
                                  "email"
                                ],
                                "patternProperties": {
                                  "^(?!(?:type|userId|name|email)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "type",
                                    "userId",
                                    "name",
                                    "email"
                                  ]
                                }
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "campaignId",
                              "version",
                              "source",
                              "campaignStatus",
                              "name",
                              "stepCount",
                              "actor",
                              "createdAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:campaignId|version|source|campaignStatus|name|stepCount|actor|createdAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "campaignId",
                                "version",
                                "source",
                                "campaignStatus",
                                "name",
                                "stepCount",
                                "actor",
                                "createdAt"
                              ]
                            }
                          },
                          "snapshotSchemaVersion": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "contentHash": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "snapshot": {
                            "type": "object",
                            "properties": {
                              "schemaVersion": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "campaignName": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "campaignStatus": {
                                "type": "string",
                                "enum": [
                                  "draft",
                                  "active",
                                  "paused",
                                  "archived",
                                  "completed"
                                ]
                              },
                              "scheduleProfileName": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inboxes": {
                                "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"
                                    },
                                    "emailAddress": {
                                      "$ref": "#/$defs/EmailAddress"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "emailAddress"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|emailAddress)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "emailAddress"
                                    ]
                                  }
                                }
                              },
                              "tags": {
                                "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": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "color": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "name",
                                    "color"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|name|color)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "name",
                                      "color"
                                    ]
                                  }
                                }
                              },
                              "steps": {
                                "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"
                                    },
                                    "stepId": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "stepOrder": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "variantOrder": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "type": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "enabled": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "stepId",
                                    "stepOrder",
                                    "variantOrder",
                                    "type",
                                    "enabled"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|stepId|stepOrder|variantOrder|type|enabled)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "stepId",
                                      "stepOrder",
                                      "variantOrder",
                                      "type",
                                      "enabled"
                                    ]
                                  }
                                }
                              },
                              "subsequenceTriggerCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "schemaVersion",
                              "campaignName",
                              "campaignStatus",
                              "scheduleProfileName",
                              "inboxes",
                              "tags",
                              "steps",
                              "subsequenceTriggerCount"
                            ],
                            "patternProperties": {
                              "^(?!(?:schemaVersion|campaignName|campaignStatus|scheduleProfileName|inboxes|tags|steps|subsequenceTriggerCount)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "schemaVersion",
                                "campaignName",
                                "campaignStatus",
                                "scheduleProfileName",
                                "inboxes",
                                "tags",
                                "steps",
                                "subsequenceTriggerCount"
                              ]
                            }
                          },
                          "authoredSnapshot": {
                            "$ref": "#/$defs/AuthoredCampaignSnapshot"
                          }
                        },
                        "required": [
                          "record",
                          "snapshotSchemaVersion",
                          "contentHash",
                          "snapshot"
                        ],
                        "patternProperties": {
                          "^(?!(?:record|snapshotSchemaVersion|contentHash|snapshot|authoredSnapshot)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "record",
                            "snapshotSchemaVersion",
                            "contentHash",
                            "snapshot",
                            "authoredSnapshot"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "calendar": {
                            "$ref": "#/$defs/HolidayCalendarCode"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": 1970,
                            "maximum": 2999
                          },
                          "holidays": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "date",
                                "name"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|name)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "name"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "calendar",
                          "year",
                          "holidays"
                        ],
                        "patternProperties": {
                          "^(?!(?:calendar|year|holidays)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "calendar",
                            "year",
                            "holidays"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "scope": {
                            "type": "string",
                            "enum": [
                              "selected",
                              "all"
                            ]
                          },
                          "days": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "observances": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "calendarCode": {
                                        "$ref": "#/$defs/HolidayCalendarCode"
                                      },
                                      "calendarName": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "name": {
                                        "$ref": "#/$defs/ShortText"
                                      }
                                    },
                                    "required": [
                                      "calendarCode",
                                      "calendarName",
                                      "name"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:calendarCode|calendarName|name)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "calendarCode",
                                        "calendarName",
                                        "name"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "date",
                                "observances"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|observances)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "observances"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "scope",
                          "days"
                        ],
                        "patternProperties": {
                          "^(?!(?:scope|days)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "scope",
                            "days"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_campaign_setup"
      },
      "scopes": [
        "campaign:read",
        "inbox:read",
        "lead:read"
      ],
      "bundles": [
        "campaign_authoring"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "campaigns.list",
        "campaigns.get",
        "campaigns.inboxes",
        "campaigns.customFieldKeys",
        "campaigns.variableCoverage",
        "campaigns.copyContext",
        "campaigns.validateCopy",
        "campaignInboxes.listExplicit",
        "campaignInboxes.listResolved",
        "campaignInboxes.count",
        "campaignVersions.list",
        "campaignVersions.get",
        "campaignHolidays.list",
        "campaignHolidays.range"
      ],
      "invocations": [
        {
          "operationId": "campaigns.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.inboxes",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/inboxes",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.customFieldKeys",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/custom-field-keys",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.variableCoverage",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/variable-coverage",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.copyContext",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/copy-context",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.validateCopy",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/validate-copy",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignInboxes.listExplicit",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/inboxes/explicit",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignInboxes.listResolved",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/inboxes/resolved",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignInboxes.count",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/inboxes/count",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignVersions.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/versions",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignVersions.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/versions/:version",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignHolidays.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/holidays/:calendar",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignHolidays.range",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/holidays",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "list"
                ]
              },
              "campaignFilter": {
                "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"
                      ]
                    }
                  }
                ]
              },
              "offset": {
                "type": "string"
              },
              "limit": {
                "type": "string"
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "status": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "all"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "draft",
                      "active",
                      "paused",
                      "archived",
                      "completed"
                    ]
                  }
                ]
              },
              "folderId": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "all",
                      "root"
                    ]
                  },
                  {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                ]
              },
              "tagId": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "all"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                ]
              },
              "sortBy": {
                "type": "string",
                "enum": [
                  "name",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortOrder": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "required": [
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|campaignFilter|offset|limit|search|status|folderId|tagId|sortBy|sortOrder)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "campaignFilter",
                    "offset",
                    "limit",
                    "search",
                    "status",
                    "folderId",
                    "tagId",
                    "sortBy",
                    "sortOrder"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "campaign"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "inboxes"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "custom_field_keys"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "variable_coverage"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "copy_context"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "explicit_inboxes"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "inbox_count"
                ]
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "validate_copy"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "subject": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "root": {
                            "$ref": "#/$defs/Union_"
                          }
                        },
                        "required": [
                          "root"
                        ],
                        "patternProperties": {
                          "^(?!(?:root)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "root"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "root": {
                            "$ref": "#/$defs/Union_"
                          }
                        },
                        "required": [
                          "root"
                        ],
                        "patternProperties": {
                          "^(?!(?:root)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "root"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isFirstEmailStep": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "subject",
                  "body",
                  "isFirstEmailStep"
                ],
                "patternProperties": {
                  "^(?!(?:subject|body|isFirstEmailStep)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "subject",
                    "body",
                    "isFirstEmailStep"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "resolved_inboxes"
                ]
              },
              "draft": {
                "type": "string",
                "enum": [
                  "true",
                  "false"
                ]
              },
              "inboxIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 500
              },
              "tagIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 50
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope|draft|inboxIds|tagIds)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope",
                    "draft",
                    "inboxIds",
                    "tagIds"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "versions"
                ]
              },
              "cursor": {
                "type": "string"
              },
              "limit": {
                "type": "string"
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope|cursor|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope",
                    "cursor",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "version"
                ]
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "workspaceId",
              "campaignId",
              "scope",
              "version"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|campaignId|scope|version)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "campaignId",
                    "scope",
                    "version"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "holiday_calendar"
                ]
              },
              "calendar": {
                "$ref": "#/$defs/HolidayCalendarCode"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "calendar"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|calendar)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "calendar"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "holiday_range"
                ]
              },
              "holidayScope": {
                "type": "string",
                "enum": [
                  "selected",
                  "all"
                ]
              },
              "calendar": {
                "$ref": "#/$defs/HolidayCalendarCode"
              },
              "from": {
                "$ref": "#/$defs/LocalDate"
              },
              "to": {
                "$ref": "#/$defs/LocalDate"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "holidayScope",
              "from",
              "to"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|holidayScope|calendar|from|to)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "holidayScope",
                    "calendar",
                    "from",
                    "to"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "HolidayCalendarCode": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "read_cross_workspace_analytics",
      "description": "Aggregate metrics, inbox accounts, and unibox filter dimensions across authorized workspaces.\n\nUse to report across every workspace the caller can read (ADR-051 at-origin filtering).\n\nEvery row is re-authorized per workspace; it never exposes an unauthorized workspace.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "overview"
                    ]
                  }
                ]
              },
              "campaignFilter": {
                "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"
                      ]
                    }
                  }
                ]
              },
              "workspaceIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 100
              },
              "workspaceActivity": {
                "type": "string",
                "enum": [
                  "all",
                  "active",
                  "inactive"
                ]
              },
              "campaignStatuses": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "draft",
                    "active",
                    "paused",
                    "archived",
                    "completed"
                  ]
                },
                "maxItems": 5
              },
              "dateRange": {
                "type": "string",
                "enum": [
                  "7d",
                  "30d",
                  "90d",
                  "all"
                ]
              },
              "search": {
                "type": "string",
                "maxLength": 200
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view|campaignFilter|workspaceIds|workspaceActivity|campaignStatuses|dateRange|search)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "campaignFilter",
                "workspaceIds",
                "workspaceActivity",
                "campaignStatuses",
                "dateRange",
                "search"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "accounts"
                    ]
                  }
                ]
              },
              "workspaceIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 100
              },
              "offset": {
                "type": "integer",
                "minimum": 0
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 200
              },
              "search": {
                "type": "string",
                "maxLength": 200
              },
              "provider": {
                "type": "string",
                "enum": [
                  "all",
                  "google_workspace",
                  "microsoft_365",
                  "other"
                ]
              },
              "statuses": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "active",
                    "inactive",
                    "error",
                    "alert"
                  ]
                },
                "maxItems": 4
              },
              "warmup": {
                "type": "string",
                "enum": [
                  "all",
                  "enabled",
                  "disabled"
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view|workspaceIds|offset|limit|search|provider|statuses|warmup)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "workspaceIds",
                "offset",
                "limit",
                "search",
                "provider",
                "statuses",
                "warmup"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "uniboxFilters"
                    ]
                  }
                ]
              },
              "workspaceIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 100
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view|workspaceIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "workspaceIds"
              ]
            }
          }
        ],
        "$defs": {
          "ReadCrossWorkspaceAnalyticsInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "overview"
                        ]
                      }
                    ]
                  },
                  "campaignFilter": {
                    "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"
                          ]
                        }
                      }
                    ]
                  },
                  "workspaceIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  },
                  "workspaceActivity": {
                    "type": "string",
                    "enum": [
                      "all",
                      "active",
                      "inactive"
                    ]
                  },
                  "campaignStatuses": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "active",
                        "paused",
                        "archived",
                        "completed"
                      ]
                    },
                    "maxItems": 5
                  },
                  "dateRange": {
                    "type": "string",
                    "enum": [
                      "7d",
                      "30d",
                      "90d",
                      "all"
                    ]
                  },
                  "search": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view|campaignFilter|workspaceIds|workspaceActivity|campaignStatuses|dateRange|search)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "campaignFilter",
                    "workspaceIds",
                    "workspaceActivity",
                    "campaignStatuses",
                    "dateRange",
                    "search"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "accounts"
                        ]
                      }
                    ]
                  },
                  "workspaceIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 200
                  },
                  "search": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "all",
                      "google_workspace",
                      "microsoft_365",
                      "other"
                    ]
                  },
                  "statuses": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "active",
                        "inactive",
                        "error",
                        "alert"
                      ]
                    },
                    "maxItems": 4
                  },
                  "warmup": {
                    "type": "string",
                    "enum": [
                      "all",
                      "enabled",
                      "disabled"
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view|workspaceIds|offset|limit|search|provider|statuses|warmup)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "workspaceIds",
                    "offset",
                    "limit",
                    "search",
                    "provider",
                    "statuses",
                    "warmup"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "uniboxFilters"
                        ]
                      }
                    ]
                  },
                  "workspaceIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view|workspaceIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "workspaceIds"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "WorkspaceRoleSlug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "ReadCrossWorkspaceAnalyticsOutput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "availableWorkspaces": {
                    "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": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "slug": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "logo": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/HttpUrl"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "role": {
                          "$ref": "#/$defs/WorkspaceRoleSlug"
                        },
                        "accessible": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "slug",
                        "logo",
                        "createdAt",
                        "role",
                        "accessible"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name|slug|logo|createdAt|role|accessible)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name",
                          "slug",
                          "logo",
                          "createdAt",
                          "role",
                          "accessible"
                        ]
                      }
                    }
                  },
                  "rows": {
                    "type": "array",
                    "items": {
                      "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"
                        },
                        "workspaceName": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "workspaceSlug": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "workspaceLogo": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/HttpUrl"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "totalLeads": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "totalCampaigns": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "activeCampaigns": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "pausedCampaigns": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "completedCampaigns": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "contactedLeads": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "completedLeads": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "emailsSent": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "repliedLeads": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "replyRate": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        }
                      },
                      "required": [
                        "workspaceId",
                        "workspaceName",
                        "workspaceSlug",
                        "workspaceLogo",
                        "totalLeads",
                        "totalCampaigns",
                        "activeCampaigns",
                        "pausedCampaigns",
                        "completedCampaigns",
                        "contactedLeads",
                        "completedLeads",
                        "emailsSent",
                        "repliedLeads",
                        "replyRate"
                      ],
                      "patternProperties": {
                        "^(?!(?:workspaceId|workspaceName|workspaceSlug|workspaceLogo|totalLeads|totalCampaigns|activeCampaigns|pausedCampaigns|completedCampaigns|contactedLeads|completedLeads|emailsSent|repliedLeads|replyRate)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "workspaceId",
                          "workspaceName",
                          "workspaceSlug",
                          "workspaceLogo",
                          "totalLeads",
                          "totalCampaigns",
                          "activeCampaigns",
                          "pausedCampaigns",
                          "completedCampaigns",
                          "contactedLeads",
                          "completedLeads",
                          "emailsSent",
                          "repliedLeads",
                          "replyRate"
                        ]
                      }
                    }
                  },
                  "summary": {
                    "type": "object",
                    "properties": {
                      "totalWorkspaces": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "totalLeads": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "totalCampaigns": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "activeCampaigns": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "pausedCampaigns": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "completedCampaigns": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "contactedLeads": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "completedLeads": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "emailsSent": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "repliedLeads": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "replyRate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      }
                    },
                    "required": [
                      "totalWorkspaces",
                      "totalLeads",
                      "totalCampaigns",
                      "activeCampaigns",
                      "pausedCampaigns",
                      "completedCampaigns",
                      "contactedLeads",
                      "completedLeads",
                      "emailsSent",
                      "repliedLeads",
                      "replyRate"
                    ],
                    "patternProperties": {
                      "^(?!(?:totalWorkspaces|totalLeads|totalCampaigns|activeCampaigns|pausedCampaigns|completedCampaigns|contactedLeads|completedLeads|emailsSent|repliedLeads|replyRate)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "totalWorkspaces",
                        "totalLeads",
                        "totalCampaigns",
                        "activeCampaigns",
                        "pausedCampaigns",
                        "completedCampaigns",
                        "contactedLeads",
                        "completedLeads",
                        "emailsSent",
                        "repliedLeads",
                        "replyRate"
                      ]
                    }
                  }
                },
                "required": [
                  "availableWorkspaces",
                  "rows",
                  "summary"
                ],
                "patternProperties": {
                  "^(?!(?:availableWorkspaces|rows|summary)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "availableWorkspaces",
                    "rows",
                    "summary"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "availableWorkspaces": {
                    "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": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "slug": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "logo": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/HttpUrl"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "role": {
                          "$ref": "#/$defs/WorkspaceRoleSlug"
                        },
                        "accessible": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "slug",
                        "logo",
                        "createdAt",
                        "role",
                        "accessible"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name|slug|logo|createdAt|role|accessible)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name",
                          "slug",
                          "logo",
                          "createdAt",
                          "role",
                          "accessible"
                        ]
                      }
                    }
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/$defs/OpaqueId"
                        },
                        "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"
                        },
                        "workspaceName": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "workspaceSlug": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/ShortText"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "emailAddress": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "provider": {
                          "type": "string",
                          "enum": [
                            "google_workspace",
                            "microsoft_365",
                            "other"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive",
                            "error",
                            "alert"
                          ]
                        },
                        "statusDetail": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "senderFirstName": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/LeadStoredText"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "senderLastName": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/LeadStoredText"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "campaignName": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/ShortText"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "dailySendingLimit": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "warmupEnabled": {
                          "type": "boolean"
                        },
                        "warmupReputationScore": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "warmupCurrentDailyVolume": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "dnsRecords": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sentCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "errorCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "workspaceId",
                        "workspaceName",
                        "workspaceSlug",
                        "emailAddress",
                        "provider",
                        "status",
                        "statusDetail",
                        "senderFirstName",
                        "senderLastName",
                        "campaignName",
                        "dailySendingLimit",
                        "warmupEnabled",
                        "warmupReputationScore",
                        "warmupCurrentDailyVolume",
                        "dnsRecords",
                        "sentCount",
                        "errorCount"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|workspaceId|workspaceName|workspaceSlug|emailAddress|provider|status|statusDetail|senderFirstName|senderLastName|campaignName|dailySendingLimit|warmupEnabled|warmupReputationScore|warmupCurrentDailyVolume|dnsRecords|sentCount|errorCount)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "workspaceId",
                          "workspaceName",
                          "workspaceSlug",
                          "emailAddress",
                          "provider",
                          "status",
                          "statusDetail",
                          "senderFirstName",
                          "senderLastName",
                          "campaignName",
                          "dailySendingLimit",
                          "warmupEnabled",
                          "warmupReputationScore",
                          "warmupCurrentDailyVolume",
                          "dnsRecords",
                          "sentCount",
                          "errorCount"
                        ]
                      }
                    }
                  },
                  "stats": {
                    "type": "object",
                    "properties": {
                      "totalAccounts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "totalDomains": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "warmupCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "errorCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "alertCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "totalAccounts",
                      "totalDomains",
                      "warmupCount",
                      "errorCount",
                      "alertCount"
                    ],
                    "patternProperties": {
                      "^(?!(?:totalAccounts|totalDomains|warmupCount|errorCount|alertCount)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "totalAccounts",
                        "totalDomains",
                        "warmupCount",
                        "errorCount",
                        "alertCount"
                      ]
                    }
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total"
                    ],
                    "patternProperties": {
                      "^(?!(?:offset|limit|total)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "offset",
                        "limit",
                        "total"
                      ]
                    }
                  }
                },
                "required": [
                  "availableWorkspaces",
                  "items",
                  "stats",
                  "pagination"
                ],
                "patternProperties": {
                  "^(?!(?:availableWorkspaces|items|stats|pagination)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "availableWorkspaces",
                    "items",
                    "stats",
                    "pagination"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "availableWorkspaces": {
                    "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": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "slug": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "logo": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/HttpUrl"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "role": {
                          "$ref": "#/$defs/WorkspaceRoleSlug"
                        },
                        "accessible": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "slug",
                        "logo",
                        "createdAt",
                        "role",
                        "accessible"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name|slug|logo|createdAt|role|accessible)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name",
                          "slug",
                          "logo",
                          "createdAt",
                          "role",
                          "accessible"
                        ]
                      }
                    }
                  },
                  "inboxes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/$defs/OpaqueId"
                        },
                        "emailAddress": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "provider": {
                          "type": "string",
                          "enum": [
                            "google_workspace",
                            "microsoft_365",
                            "other"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive",
                            "error",
                            "alert"
                          ]
                        },
                        "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"
                        },
                        "workspaceName": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "warmupEnabled": {
                          "type": "boolean"
                        },
                        "warmupScore": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "emailAddress",
                        "provider",
                        "status",
                        "workspaceId",
                        "workspaceName",
                        "warmupEnabled",
                        "warmupScore"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|emailAddress|provider|status|workspaceId|workspaceName|warmupEnabled|warmupScore)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "emailAddress",
                          "provider",
                          "status",
                          "workspaceId",
                          "workspaceName",
                          "warmupEnabled",
                          "warmupScore"
                        ]
                      }
                    }
                  },
                  "campaigns": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/$defs/OpaqueId"
                        },
                        "name": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "draft",
                            "active",
                            "paused",
                            "archived",
                            "completed"
                          ]
                        },
                        "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"
                        },
                        "workspaceName": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "status",
                        "workspaceId",
                        "workspaceName"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name|status|workspaceId|workspaceName)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name",
                          "status",
                          "workspaceId",
                          "workspaceName"
                        ]
                      }
                    }
                  },
                  "labels": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/$defs/OpaqueId"
                        },
                        "name": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "hexColor": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "sentiment": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "positive",
                                "negative",
                                "neutral"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "custom",
                            "default"
                          ]
                        },
                        "workspaceId": {
                          "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"
                            }
                          ]
                        },
                        "workspaceName": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/ShortText"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "hexColor",
                        "sentiment",
                        "type",
                        "workspaceId",
                        "workspaceName"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name|hexColor|sentiment|type|workspaceId|workspaceName)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name",
                          "hexColor",
                          "sentiment",
                          "type",
                          "workspaceId",
                          "workspaceName"
                        ]
                      }
                    }
                  },
                  "members": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "userId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/LeadStoredText"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "image": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/HttpUrl"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          }
                        }
                      },
                      "required": [
                        "userId",
                        "name",
                        "email",
                        "image",
                        "organizationIds"
                      ],
                      "patternProperties": {
                        "^(?!(?:userId|name|email|image|organizationIds)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "userId",
                          "name",
                          "email",
                          "image",
                          "organizationIds"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "availableWorkspaces",
                  "inboxes",
                  "campaigns",
                  "labels",
                  "members"
                ],
                "patternProperties": {
                  "^(?!(?:availableWorkspaces|inboxes|campaigns|labels|members)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "availableWorkspaces",
                    "inboxes",
                    "campaigns",
                    "labels",
                    "members"
                  ]
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/ReadCrossWorkspaceAnalyticsOutput"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/ReadCrossWorkspaceAnalyticsOutput"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_cross_workspace_analytics"
      },
      "scopes": [
        "workspace:read",
        "analytics:read",
        "unibox:read",
        "inbox:read",
        "campaign:read",
        "replyLabel:read"
      ],
      "bundles": [
        "workspace_insights"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "me.allWorkspacesOverview",
        "me.allWorkspacesAccounts",
        "me.allWorkspacesUniboxFilters"
      ],
      "invocations": [
        {
          "operationId": "me.allWorkspacesOverview",
          "method": "GET",
          "path": "/v1/me/all-workspaces/overview",
          "workspaceScoped": false
        },
        {
          "operationId": "me.allWorkspacesAccounts",
          "method": "GET",
          "path": "/v1/me/all-workspaces/accounts",
          "workspaceScoped": false
        },
        {
          "operationId": "me.allWorkspacesUniboxFilters",
          "method": "GET",
          "path": "/v1/me/all-workspaces/unibox-filters",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "overview"
                    ]
                  }
                ]
              },
              "campaignFilter": {
                "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"
                      ]
                    }
                  }
                ]
              },
              "workspaceIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 100
              },
              "workspaceActivity": {
                "type": "string",
                "enum": [
                  "all",
                  "active",
                  "inactive"
                ]
              },
              "campaignStatuses": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "draft",
                    "active",
                    "paused",
                    "archived",
                    "completed"
                  ]
                },
                "maxItems": 5
              },
              "dateRange": {
                "type": "string",
                "enum": [
                  "7d",
                  "30d",
                  "90d",
                  "all"
                ]
              },
              "search": {
                "type": "string",
                "maxLength": 200
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view|campaignFilter|workspaceIds|workspaceActivity|campaignStatuses|dateRange|search)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "campaignFilter",
                "workspaceIds",
                "workspaceActivity",
                "campaignStatuses",
                "dateRange",
                "search"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "accounts"
                    ]
                  }
                ]
              },
              "workspaceIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 100
              },
              "offset": {
                "type": "integer",
                "minimum": 0
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 200
              },
              "search": {
                "type": "string",
                "maxLength": 200
              },
              "provider": {
                "type": "string",
                "enum": [
                  "all",
                  "google_workspace",
                  "microsoft_365",
                  "other"
                ]
              },
              "statuses": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "active",
                    "inactive",
                    "error",
                    "alert"
                  ]
                },
                "maxItems": 4
              },
              "warmup": {
                "type": "string",
                "enum": [
                  "all",
                  "enabled",
                  "disabled"
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view|workspaceIds|offset|limit|search|provider|statuses|warmup)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "workspaceIds",
                "offset",
                "limit",
                "search",
                "provider",
                "statuses",
                "warmup"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "uniboxFilters"
                    ]
                  }
                ]
              },
              "workspaceIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 100
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view|workspaceIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "workspaceIds"
              ]
            }
          }
        ],
        "$defs": {
          "ReadCrossWorkspaceAnalyticsInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "overview"
                        ]
                      }
                    ]
                  },
                  "campaignFilter": {
                    "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"
                          ]
                        }
                      }
                    ]
                  },
                  "workspaceIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  },
                  "workspaceActivity": {
                    "type": "string",
                    "enum": [
                      "all",
                      "active",
                      "inactive"
                    ]
                  },
                  "campaignStatuses": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "active",
                        "paused",
                        "archived",
                        "completed"
                      ]
                    },
                    "maxItems": 5
                  },
                  "dateRange": {
                    "type": "string",
                    "enum": [
                      "7d",
                      "30d",
                      "90d",
                      "all"
                    ]
                  },
                  "search": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view|campaignFilter|workspaceIds|workspaceActivity|campaignStatuses|dateRange|search)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "campaignFilter",
                    "workspaceIds",
                    "workspaceActivity",
                    "campaignStatuses",
                    "dateRange",
                    "search"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "accounts"
                        ]
                      }
                    ]
                  },
                  "workspaceIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 200
                  },
                  "search": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "all",
                      "google_workspace",
                      "microsoft_365",
                      "other"
                    ]
                  },
                  "statuses": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "active",
                        "inactive",
                        "error",
                        "alert"
                      ]
                    },
                    "maxItems": 4
                  },
                  "warmup": {
                    "type": "string",
                    "enum": [
                      "all",
                      "enabled",
                      "disabled"
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view|workspaceIds|offset|limit|search|provider|statuses|warmup)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "workspaceIds",
                    "offset",
                    "limit",
                    "search",
                    "provider",
                    "statuses",
                    "warmup"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "uniboxFilters"
                        ]
                      }
                    ]
                  },
                  "workspaceIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view|workspaceIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "workspaceIds"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "read_dialer_history",
      "description": "Read what the dialer has done: call history and call detail, dialing sessions and their scoreboards, who holds a seat, and workspace or per-rep calling performance. When a person asks to start a call session, prepare and inspect the exact list with manage_call_lists, resolve the authorized workspace with resolve_workspace, then hand them the workspace-scoped call-list URL. After the person starts dialing, call this tool with scope `sessions`, match the returned callListId to the prepared list, then use that session id with scope `session` or `session_report` to follow status and results.\n\nUse to ground any claim about calling activity — how many dials a rep made, what a call was dispositioned as, whether a number is answering, how a session went.\n\nIt never returns recording audio or transcript text; those need their own authorization. It cannot start a session, claim the next contact, place or control a call, drop a voicemail, or record a disposition — those remain the seated human's job in the browser softphone. It offers no agent start handle or automatic handoff. To hand a person the exact prepared list, resolve its workspace slug with resolve_workspace and open `/{workspace.slug}/dialer/lists/{callListId}` in the Scheduler Zero web app; the page selects that list, and the person must review the list and session settings, explicitly start the session, and grant microphone access. This opens the human workflow and does not start a call. Afterward, read scope `sessions`, match callListId, and use the returned session id for scope `session` or `session_report`.",
      "inputSchema": {
        "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"
          },
          "scope": {
            "type": "string",
            "enum": [
              "calls",
              "call",
              "call_status",
              "sessions",
              "session",
              "session_report",
              "seats",
              "own_seat",
              "own_forwarding",
              "stats"
            ]
          },
          "callId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sessionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "calls": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "repUserId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "callListId": {
                "$ref": "#/$defs/CallListId"
              },
              "disposition": {
                "type": "string",
                "enum": [
                  "booked_meeting",
                  "connected",
                  "voicemail",
                  "no_answer",
                  "not_interested",
                  "callback",
                  "wrong_number",
                  "dnc",
                  "gatekeeper",
                  "ai_gatekeeper",
                  "busy",
                  "failed"
                ]
              },
              "direction": {
                "type": "string",
                "enum": [
                  "outbound",
                  "inbound"
                ]
              },
              "leadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "from": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "to": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|repUserId|callListId|disposition|direction|leadId|from|to)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "repUserId",
                "callListId",
                "disposition",
                "direction",
                "leadId",
                "from",
                "to"
              ]
            }
          },
          "stats": {
            "type": "object",
            "properties": {
              "scope": {
                "type": "string",
                "enum": [
                  "workspace",
                  "user",
                  "self"
                ]
              },
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "from": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "to": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:scope|userId|from|to)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "scope",
                "userId",
                "from",
                "to"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "scope"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|scope|callId|sessionId|calls|stats)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "scope",
            "callId",
            "sessionId",
            "calls",
            "stats"
          ]
        },
        "$defs": {
          "CallListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "CallListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "CallListContactId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "CallNote": {
            "type": "string",
            "maxLength": 5000
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "CallTranscriptText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000
          },
          "DialerSeatId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        },
        "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"
                            },
                            "direction": {
                              "type": "string",
                              "enum": [
                                "outbound",
                                "inbound"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "initiated",
                                "ringing",
                                "answered",
                                "bridged",
                                "completed",
                                "no_answer",
                                "busy",
                                "failed",
                                "canceled"
                              ]
                            },
                            "fromPhoneE164": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "toPhoneE164": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "counterpartyPhoneE164": {
                              "$ref": "#/$defs/E164PhoneNumber"
                            },
                            "repUserId": {
                              "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"
                                }
                              ]
                            },
                            "repName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "leadId": {
                              "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"
                                }
                              ]
                            },
                            "callListId": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/CallListId"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "inboundRouteResult": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "forwarded",
                                    "not_configured",
                                    "transfer_failed"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "inboundForwardToE164": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "durationSeconds": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "effectiveDisposition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "booked_meeting",
                                    "connected",
                                    "voicemail",
                                    "no_answer",
                                    "not_interested",
                                    "callback",
                                    "wrong_number",
                                    "dnc",
                                    "gatekeeper",
                                    "ai_gatekeeper",
                                    "busy",
                                    "failed"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dispositionJobStatus": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "queued",
                                    "running",
                                    "completed",
                                    "failed",
                                    "canceled"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "hasRecording": {
                              "type": "boolean"
                            },
                            "recordingPending": {
                              "type": "boolean"
                            },
                            "recordingFailed": {
                              "type": "boolean"
                            },
                            "hasTranscript": {
                              "type": "boolean"
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "direction",
                            "status",
                            "fromPhoneE164",
                            "toPhoneE164",
                            "counterpartyPhoneE164",
                            "repUserId",
                            "repName",
                            "leadId",
                            "callListId",
                            "inboundRouteResult",
                            "inboundForwardToE164",
                            "durationSeconds",
                            "effectiveDisposition",
                            "dispositionJobStatus",
                            "hasRecording",
                            "recordingPending",
                            "recordingFailed",
                            "hasTranscript",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|direction|status|fromPhoneE164|toPhoneE164|counterpartyPhoneE164|repUserId|repName|leadId|callListId|inboundRouteResult|inboundForwardToE164|durationSeconds|effectiveDisposition|dispositionJobStatus|hasRecording|recordingPending|recordingFailed|hasTranscript|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "direction",
                              "status",
                              "fromPhoneE164",
                              "toPhoneE164",
                              "counterpartyPhoneE164",
                              "repUserId",
                              "repName",
                              "leadId",
                              "callListId",
                              "inboundRouteResult",
                              "inboundForwardToE164",
                              "durationSeconds",
                              "effectiveDisposition",
                              "dispositionJobStatus",
                              "hasRecording",
                              "recordingPending",
                              "recordingFailed",
                              "hasTranscript",
                              "createdAt"
                            ]
                          }
                        }
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalPages": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "currentPage": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "pageSize": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "hasNextPage": {
                            "type": "boolean"
                          },
                          "hasPreviousPage": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "total",
                          "totalPages",
                          "currentPage",
                          "pageSize",
                          "offset",
                          "hasNextPage",
                          "hasPreviousPage"
                        ],
                        "patternProperties": {
                          "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "total",
                            "totalPages",
                            "currentPage",
                            "pageSize",
                            "offset",
                            "hasNextPage",
                            "hasPreviousPage"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "call": {
                        "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"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "outbound",
                              "inbound"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "initiated",
                              "ringing",
                              "answered",
                              "bridged",
                              "completed",
                              "no_answer",
                              "busy",
                              "failed",
                              "canceled"
                            ]
                          },
                          "voiceProvider": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "twilio"
                                ]
                              }
                            ]
                          },
                          "fromPhoneE164": {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          "toPhoneE164": {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          "counterpartyPhoneE164": {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          "dialerNumberId": {
                            "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"
                              }
                            ]
                          },
                          "repUserId": {
                            "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"
                              }
                            ]
                          },
                          "sessionId": {
                            "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"
                              }
                            ]
                          },
                          "callListId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/CallListId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "callListContactId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/CallListContactId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "leadId": {
                            "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"
                              }
                            ]
                          },
                          "amdResult": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "hangupCause": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inboundRouteResult": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "forwarded",
                                  "not_configured",
                                  "transfer_failed"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inboundForwardToE164": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "voicemailDropArmed": {
                            "type": "boolean"
                          },
                          "voicemailDropped": {
                            "type": "boolean"
                          },
                          "voicemailRecordingId": {
                            "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"
                              }
                            ]
                          },
                          "voicemailDropMode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "drop_and_end",
                                  "drop_and_talk"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "recordingConsentState": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "recordingSkipReason": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "consentDisclosurePlayed": {
                            "type": "boolean"
                          },
                          "consentJurisdiction": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "processingStatus": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "recording_stored",
                              "transcribed",
                              "completed",
                              "failed"
                            ]
                          },
                          "repNote": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/CallNote"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "answeredAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "endedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "durationSeconds": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "connectedSeconds": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "direction",
                          "status",
                          "voiceProvider",
                          "fromPhoneE164",
                          "toPhoneE164",
                          "counterpartyPhoneE164",
                          "dialerNumberId",
                          "repUserId",
                          "sessionId",
                          "callListId",
                          "callListContactId",
                          "leadId",
                          "amdResult",
                          "hangupCause",
                          "inboundRouteResult",
                          "inboundForwardToE164",
                          "voicemailDropArmed",
                          "voicemailDropped",
                          "voicemailRecordingId",
                          "voicemailDropMode",
                          "recordingConsentState",
                          "recordingSkipReason",
                          "consentDisclosurePlayed",
                          "consentJurisdiction",
                          "processingStatus",
                          "repNote",
                          "startedAt",
                          "answeredAt",
                          "endedAt",
                          "durationSeconds",
                          "connectedSeconds",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|direction|status|voiceProvider|fromPhoneE164|toPhoneE164|counterpartyPhoneE164|dialerNumberId|repUserId|sessionId|callListId|callListContactId|leadId|amdResult|hangupCause|inboundRouteResult|inboundForwardToE164|voicemailDropArmed|voicemailDropped|voicemailRecordingId|voicemailDropMode|recordingConsentState|recordingSkipReason|consentDisclosurePlayed|consentJurisdiction|processingStatus|repNote|startedAt|answeredAt|endedAt|durationSeconds|connectedSeconds|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "direction",
                            "status",
                            "voiceProvider",
                            "fromPhoneE164",
                            "toPhoneE164",
                            "counterpartyPhoneE164",
                            "dialerNumberId",
                            "repUserId",
                            "sessionId",
                            "callListId",
                            "callListContactId",
                            "leadId",
                            "amdResult",
                            "hangupCause",
                            "inboundRouteResult",
                            "inboundForwardToE164",
                            "voicemailDropArmed",
                            "voicemailDropped",
                            "voicemailRecordingId",
                            "voicemailDropMode",
                            "recordingConsentState",
                            "recordingSkipReason",
                            "consentDisclosurePlayed",
                            "consentJurisdiction",
                            "processingStatus",
                            "repNote",
                            "startedAt",
                            "answeredAt",
                            "endedAt",
                            "durationSeconds",
                            "connectedSeconds",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      "repName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "effectiveDisposition": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "booked_meeting",
                              "connected",
                              "voicemail",
                              "no_answer",
                              "not_interested",
                              "callback",
                              "wrong_number",
                              "dnc",
                              "gatekeeper",
                              "ai_gatekeeper",
                              "busy",
                              "failed"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "notes": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/CallNote"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dispositions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "disposition": {
                              "type": "string",
                              "enum": [
                                "booked_meeting",
                                "connected",
                                "voicemail",
                                "no_answer",
                                "not_interested",
                                "callback",
                                "wrong_number",
                                "dnc",
                                "gatekeeper",
                                "ai_gatekeeper",
                                "busy",
                                "failed"
                              ]
                            },
                            "source": {
                              "type": "string",
                              "enum": [
                                "ai_suggested",
                                "manual"
                              ]
                            },
                            "note": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/CallNote"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confidence": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "disposition",
                            "source",
                            "note",
                            "confidence"
                          ],
                          "patternProperties": {
                            "^(?!(?:disposition|source|note|confidence)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "disposition",
                              "source",
                              "note",
                              "confidence"
                            ]
                          }
                        },
                        "maxItems": 2
                      },
                      "dispositionJobStatus": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "completed",
                              "failed",
                              "canceled"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "hasRecording": {
                        "type": "boolean"
                      },
                      "recordingPending": {
                        "type": "boolean"
                      },
                      "recordingFailed": {
                        "type": "boolean"
                      },
                      "hasTranscript": {
                        "type": "boolean"
                      },
                      "aiSummary": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "transcriptText": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/CallTranscriptText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "qualityStats": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "version": {
                                "type": "number",
                                "enum": [
                                  1
                                ]
                              },
                              "capturedAtMs": {
                                "type": "number",
                                "minimum": 0
                              },
                              "durationMs": {
                                "type": "number",
                                "minimum": 0
                              },
                              "sampleCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "mosAvg": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 1,
                                    "maximum": 5
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "mosMin": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 1,
                                    "maximum": 5
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "rttMsAvg": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "rttMsMax": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "concealedSamplesPct": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 100
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "jitterBufferDelayMsAvg": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "audioLevelAvg": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "classification": {
                                "type": "string",
                                "enum": [
                                  "clean",
                                  "network_degraded",
                                  "insufficient_data"
                                ]
                              },
                              "inbound": {
                                "type": "object",
                                "properties": {
                                  "codec": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 64
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "clockRate": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "packets": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "packetsLost": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "packetLossPct": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "jitterMsAvg": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "jitterMsMax": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "codec",
                                  "clockRate",
                                  "packets",
                                  "packetsLost",
                                  "packetLossPct",
                                  "jitterMsAvg",
                                  "jitterMsMax"
                                ],
                                "patternProperties": {
                                  "^(?!(?:codec|clockRate|packets|packetsLost|packetLossPct|jitterMsAvg|jitterMsMax)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "codec",
                                    "clockRate",
                                    "packets",
                                    "packetsLost",
                                    "packetLossPct",
                                    "jitterMsAvg",
                                    "jitterMsMax"
                                  ]
                                }
                              },
                              "outbound": {
                                "type": "object",
                                "properties": {
                                  "codec": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 64
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "clockRate": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "packets": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "packetsLost": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "packetLossPct": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "jitterMsAvg": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "jitterMsMax": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "codec",
                                  "clockRate",
                                  "packets",
                                  "packetsLost",
                                  "packetLossPct",
                                  "jitterMsAvg",
                                  "jitterMsMax"
                                ],
                                "patternProperties": {
                                  "^(?!(?:codec|clockRate|packets|packetsLost|packetLossPct|jitterMsAvg|jitterMsMax)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "codec",
                                    "clockRate",
                                    "packets",
                                    "packetsLost",
                                    "packetLossPct",
                                    "jitterMsAvg",
                                    "jitterMsMax"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "version",
                              "capturedAtMs",
                              "durationMs",
                              "sampleCount",
                              "rttMsAvg",
                              "rttMsMax",
                              "concealedSamplesPct",
                              "jitterBufferDelayMsAvg",
                              "audioLevelAvg",
                              "classification",
                              "inbound",
                              "outbound"
                            ],
                            "patternProperties": {
                              "^(?!(?:version|capturedAtMs|durationMs|sampleCount|mosAvg|mosMin|rttMsAvg|rttMsMax|concealedSamplesPct|jitterBufferDelayMsAvg|audioLevelAvg|classification|inbound|outbound)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "version",
                                "capturedAtMs",
                                "durationMs",
                                "sampleCount",
                                "mosAvg",
                                "mosMin",
                                "rttMsAvg",
                                "rttMsMax",
                                "concealedSamplesPct",
                                "jitterBufferDelayMsAvg",
                                "audioLevelAvg",
                                "classification",
                                "inbound",
                                "outbound"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "call",
                      "repName",
                      "effectiveDisposition",
                      "notes",
                      "dispositions",
                      "dispositionJobStatus",
                      "hasRecording",
                      "recordingPending",
                      "recordingFailed",
                      "hasTranscript",
                      "aiSummary"
                    ],
                    "patternProperties": {
                      "^(?!(?:call|repName|effectiveDisposition|notes|dispositions|dispositionJobStatus|hasRecording|recordingPending|recordingFailed|hasTranscript|aiSummary|transcriptText|qualityStats)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "call",
                        "repName",
                        "effectiveDisposition",
                        "notes",
                        "dispositions",
                        "dispositionJobStatus",
                        "hasRecording",
                        "recordingPending",
                        "recordingFailed",
                        "hasTranscript",
                        "aiSummary",
                        "transcriptText",
                        "qualityStats"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "initiated",
                          "ringing",
                          "answered",
                          "bridged",
                          "completed",
                          "no_answer",
                          "busy",
                          "failed",
                          "canceled"
                        ]
                      },
                      "hangupCause": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "amdResult": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "status",
                      "hangupCause",
                      "amdResult"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|status|hangupCause|amdResult)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "status",
                        "hangupCause",
                        "amdResult"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "callListId": {
                              "$ref": "#/$defs/CallListId"
                            },
                            "callListName": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "paused",
                                "ended"
                              ]
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "power"
                              ]
                            },
                            "autoAdvanceDelaySeconds": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "startedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "endedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "totalCalls": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "connects": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "connectionRate": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "talkTimeSeconds": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "meetingsBooked": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "pendingAi": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "failedAi": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "redials": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "id",
                            "callListId",
                            "callListName",
                            "status",
                            "mode",
                            "autoAdvanceDelaySeconds",
                            "startedAt",
                            "endedAt",
                            "totalCalls",
                            "connects",
                            "connectionRate",
                            "talkTimeSeconds",
                            "meetingsBooked",
                            "pendingAi",
                            "failedAi",
                            "redials"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|callListId|callListName|status|mode|autoAdvanceDelaySeconds|startedAt|endedAt|totalCalls|connects|connectionRate|talkTimeSeconds|meetingsBooked|pendingAi|failedAi|redials)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "callListId",
                              "callListName",
                              "status",
                              "mode",
                              "autoAdvanceDelaySeconds",
                              "startedAt",
                              "endedAt",
                              "totalCalls",
                              "connects",
                              "connectionRate",
                              "talkTimeSeconds",
                              "meetingsBooked",
                              "pendingAi",
                              "failedAi",
                              "redials"
                            ]
                          }
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "session": {
                        "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"
                          },
                          "callListId": {
                            "$ref": "#/$defs/CallListId"
                          },
                          "userId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "dialerNumberId": {
                            "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"
                              }
                            ]
                          },
                          "dialerNumberIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "maxItems": 50
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "power"
                            ]
                          },
                          "autoAdvanceDelaySeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 300
                          },
                          "rotationFrequency": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "paused",
                              "ended"
                            ]
                          },
                          "currentContactId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/CallListContactId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currentLeadId": {
                            "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"
                              }
                            ]
                          },
                          "callsPlaced": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "callsConnected": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "startedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "endedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "callListId",
                          "userId",
                          "dialerNumberId",
                          "dialerNumberIds",
                          "mode",
                          "autoAdvanceDelaySeconds",
                          "rotationFrequency",
                          "status",
                          "currentContactId",
                          "currentLeadId",
                          "callsPlaced",
                          "callsConnected",
                          "startedAt",
                          "endedAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|callListId|userId|dialerNumberId|dialerNumberIds|mode|autoAdvanceDelaySeconds|rotationFrequency|status|currentContactId|currentLeadId|callsPlaced|callsConnected|startedAt|endedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "callListId",
                            "userId",
                            "dialerNumberId",
                            "dialerNumberIds",
                            "mode",
                            "autoAdvanceDelaySeconds",
                            "rotationFrequency",
                            "status",
                            "currentContactId",
                            "currentLeadId",
                            "callsPlaced",
                            "callsConnected",
                            "startedAt",
                            "endedAt",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      "currentCall": {
                        "anyOf": [
                          {
                            "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"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "initiated",
                                  "ringing",
                                  "answered",
                                  "bridged",
                                  "completed",
                                  "no_answer",
                                  "busy",
                                  "failed",
                                  "canceled"
                                ]
                              },
                              "hangupCause": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "status",
                              "hangupCause"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|status|hangupCause)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "status",
                                "hangupCause"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "session",
                      "currentCall"
                    ],
                    "patternProperties": {
                      "^(?!(?:session|currentCall)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "session",
                        "currentCall"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "report": {
                        "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"
                          },
                          "callListId": {
                            "$ref": "#/$defs/CallListId"
                          },
                          "callListName": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "paused",
                              "ended"
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "power"
                            ]
                          },
                          "autoAdvanceDelaySeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "startedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "endedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "totalCalls": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "connects": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "connectionRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "talkTimeSeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "meetingsBooked": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "pendingAi": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "failedAi": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "redials": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "id",
                          "callListId",
                          "callListName",
                          "status",
                          "mode",
                          "autoAdvanceDelaySeconds",
                          "startedAt",
                          "endedAt",
                          "totalCalls",
                          "connects",
                          "connectionRate",
                          "talkTimeSeconds",
                          "meetingsBooked",
                          "pendingAi",
                          "failedAi",
                          "redials"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|callListId|callListName|status|mode|autoAdvanceDelaySeconds|startedAt|endedAt|totalCalls|connects|connectionRate|talkTimeSeconds|meetingsBooked|pendingAi|failedAi|redials)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "callListId",
                            "callListName",
                            "status",
                            "mode",
                            "autoAdvanceDelaySeconds",
                            "startedAt",
                            "endedAt",
                            "totalCalls",
                            "connects",
                            "connectionRate",
                            "talkTimeSeconds",
                            "meetingsBooked",
                            "pendingAi",
                            "failedAi",
                            "redials"
                          ]
                        }
                      },
                      "dispositionBreakdown": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "disposition": {
                              "type": "string",
                              "enum": [
                                "booked_meeting",
                                "connected",
                                "voicemail",
                                "no_answer",
                                "not_interested",
                                "callback",
                                "wrong_number",
                                "dnc",
                                "gatekeeper",
                                "ai_gatekeeper",
                                "busy",
                                "failed"
                              ]
                            },
                            "count": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "disposition",
                            "count"
                          ],
                          "patternProperties": {
                            "^(?!(?:disposition|count)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "disposition",
                              "count"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "report",
                      "dispositionBreakdown"
                    ],
                    "patternProperties": {
                      "^(?!(?:report|dispositionBreakdown)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "report",
                        "dispositionBreakdown"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/DialerSeatId"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "userId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "active": {
                              "type": "boolean"
                            },
                            "assignedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "assignedByUserId": {
                              "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"
                                }
                              ]
                            },
                            "userName": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "userEmail": {
                              "$ref": "#/$defs/EmailAddress"
                            }
                          },
                          "required": [
                            "id",
                            "userId",
                            "active",
                            "assignedAt",
                            "assignedByUserId",
                            "userName",
                            "userEmail"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|userId|active|assignedAt|assignedByUserId|userName|userEmail)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "userId",
                              "active",
                              "assignedAt",
                              "assignedByUserId",
                              "userName",
                              "userEmail"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "hasSeat": {
                        "type": "boolean"
                      },
                      "active": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "hasSeat",
                      "active"
                    ],
                    "patternProperties": {
                      "^(?!(?:hasSeat|active)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "hasSeat",
                        "active"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "hasSeat": {
                        "type": "boolean"
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "forwardE164": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "hasSeat",
                      "enabled",
                      "forwardE164"
                    ],
                    "patternProperties": {
                      "^(?!(?:hasSeat|enabled|forwardE164)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "hasSeat",
                        "enabled",
                        "forwardE164"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "totalDials": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "connects": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "connectRate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "meetingsBooked": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "talkTimeSeconds": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "avgCallDurationSeconds": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "voicemailsDropped": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "inbound": {
                        "type": "object",
                        "properties": {
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "answered": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "missed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "notRouted": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "talkTimeSeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "total",
                          "answered",
                          "missed",
                          "notRouted",
                          "talkTimeSeconds"
                        ],
                        "patternProperties": {
                          "^(?!(?:total|answered|missed|notRouted|talkTimeSeconds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "total",
                            "answered",
                            "missed",
                            "notRouted",
                            "talkTimeSeconds"
                          ]
                        }
                      },
                      "dailySeries": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "dials": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "connects": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "meetings": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "dials",
                            "connects",
                            "meetings"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|dials|connects|meetings)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "dials",
                              "connects",
                              "meetings"
                            ]
                          }
                        }
                      },
                      "dispositionBreakdown": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "disposition": {
                              "type": "string",
                              "enum": [
                                "booked_meeting",
                                "connected",
                                "voicemail",
                                "no_answer",
                                "not_interested",
                                "callback",
                                "wrong_number",
                                "dnc",
                                "gatekeeper",
                                "ai_gatekeeper",
                                "busy",
                                "failed"
                              ]
                            },
                            "count": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "disposition",
                            "count"
                          ],
                          "patternProperties": {
                            "^(?!(?:disposition|count)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "disposition",
                              "count"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "totalDials",
                      "connects",
                      "connectRate",
                      "meetingsBooked",
                      "talkTimeSeconds",
                      "avgCallDurationSeconds",
                      "voicemailsDropped",
                      "inbound",
                      "dailySeries",
                      "dispositionBreakdown"
                    ],
                    "patternProperties": {
                      "^(?!(?:totalDials|connects|connectRate|meetingsBooked|talkTimeSeconds|avgCallDurationSeconds|voicemailsDropped|inbound|dailySeries|dispositionBreakdown)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "totalDials",
                        "connects",
                        "connectRate",
                        "meetingsBooked",
                        "talkTimeSeconds",
                        "avgCallDurationSeconds",
                        "voicemailsDropped",
                        "inbound",
                        "dailySeries",
                        "dispositionBreakdown"
                      ]
                    }
                  }
                ]
              },
              {
                "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"
                                },
                                "direction": {
                                  "type": "string",
                                  "enum": [
                                    "outbound",
                                    "inbound"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "queued",
                                    "initiated",
                                    "ringing",
                                    "answered",
                                    "bridged",
                                    "completed",
                                    "no_answer",
                                    "busy",
                                    "failed",
                                    "canceled"
                                  ]
                                },
                                "fromPhoneE164": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "toPhoneE164": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "counterpartyPhoneE164": {
                                  "$ref": "#/$defs/E164PhoneNumber"
                                },
                                "repUserId": {
                                  "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"
                                    }
                                  ]
                                },
                                "repName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "leadId": {
                                  "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"
                                    }
                                  ]
                                },
                                "callListId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/CallListId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "inboundRouteResult": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "forwarded",
                                        "not_configured",
                                        "transfer_failed"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "inboundForwardToE164": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/E164PhoneNumber"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "durationSeconds": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "effectiveDisposition": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "booked_meeting",
                                        "connected",
                                        "voicemail",
                                        "no_answer",
                                        "not_interested",
                                        "callback",
                                        "wrong_number",
                                        "dnc",
                                        "gatekeeper",
                                        "ai_gatekeeper",
                                        "busy",
                                        "failed"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dispositionJobStatus": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "queued",
                                        "running",
                                        "completed",
                                        "failed",
                                        "canceled"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "hasRecording": {
                                  "type": "boolean"
                                },
                                "recordingPending": {
                                  "type": "boolean"
                                },
                                "recordingFailed": {
                                  "type": "boolean"
                                },
                                "hasTranscript": {
                                  "type": "boolean"
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "direction",
                                "status",
                                "fromPhoneE164",
                                "toPhoneE164",
                                "counterpartyPhoneE164",
                                "repUserId",
                                "repName",
                                "leadId",
                                "callListId",
                                "inboundRouteResult",
                                "inboundForwardToE164",
                                "durationSeconds",
                                "effectiveDisposition",
                                "dispositionJobStatus",
                                "hasRecording",
                                "recordingPending",
                                "recordingFailed",
                                "hasTranscript",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|direction|status|fromPhoneE164|toPhoneE164|counterpartyPhoneE164|repUserId|repName|leadId|callListId|inboundRouteResult|inboundForwardToE164|durationSeconds|effectiveDisposition|dispositionJobStatus|hasRecording|recordingPending|recordingFailed|hasTranscript|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "direction",
                                  "status",
                                  "fromPhoneE164",
                                  "toPhoneE164",
                                  "counterpartyPhoneE164",
                                  "repUserId",
                                  "repName",
                                  "leadId",
                                  "callListId",
                                  "inboundRouteResult",
                                  "inboundForwardToE164",
                                  "durationSeconds",
                                  "effectiveDisposition",
                                  "dispositionJobStatus",
                                  "hasRecording",
                                  "recordingPending",
                                  "recordingFailed",
                                  "hasTranscript",
                                  "createdAt"
                                ]
                              }
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalPages": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "currentPage": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pageSize": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "hasNextPage": {
                                "type": "boolean"
                              },
                              "hasPreviousPage": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "total",
                              "totalPages",
                              "currentPage",
                              "pageSize",
                              "offset",
                              "hasNextPage",
                              "hasPreviousPage"
                            ],
                            "patternProperties": {
                              "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "total",
                                "totalPages",
                                "currentPage",
                                "pageSize",
                                "offset",
                                "hasNextPage",
                                "hasPreviousPage"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "call": {
                            "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"
                              },
                              "direction": {
                                "type": "string",
                                "enum": [
                                  "outbound",
                                  "inbound"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "initiated",
                                  "ringing",
                                  "answered",
                                  "bridged",
                                  "completed",
                                  "no_answer",
                                  "busy",
                                  "failed",
                                  "canceled"
                                ]
                              },
                              "voiceProvider": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "twilio"
                                    ]
                                  }
                                ]
                              },
                              "fromPhoneE164": {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              "toPhoneE164": {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              "counterpartyPhoneE164": {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              "dialerNumberId": {
                                "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"
                                  }
                                ]
                              },
                              "repUserId": {
                                "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"
                                  }
                                ]
                              },
                              "sessionId": {
                                "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"
                                  }
                                ]
                              },
                              "callListId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/CallListId"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "callListContactId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/CallListContactId"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "leadId": {
                                "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"
                                  }
                                ]
                              },
                              "amdResult": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "hangupCause": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inboundRouteResult": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "forwarded",
                                      "not_configured",
                                      "transfer_failed"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inboundForwardToE164": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/E164PhoneNumber"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "voicemailDropArmed": {
                                "type": "boolean"
                              },
                              "voicemailDropped": {
                                "type": "boolean"
                              },
                              "voicemailRecordingId": {
                                "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"
                                  }
                                ]
                              },
                              "voicemailDropMode": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "drop_and_end",
                                      "drop_and_talk"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "recordingConsentState": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "recordingSkipReason": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "consentDisclosurePlayed": {
                                "type": "boolean"
                              },
                              "consentJurisdiction": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "processingStatus": {
                                "type": "string",
                                "enum": [
                                  "pending",
                                  "recording_stored",
                                  "transcribed",
                                  "completed",
                                  "failed"
                                ]
                              },
                              "repNote": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/CallNote"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "startedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "answeredAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "endedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "durationSeconds": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "connectedSeconds": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "id",
                              "direction",
                              "status",
                              "voiceProvider",
                              "fromPhoneE164",
                              "toPhoneE164",
                              "counterpartyPhoneE164",
                              "dialerNumberId",
                              "repUserId",
                              "sessionId",
                              "callListId",
                              "callListContactId",
                              "leadId",
                              "amdResult",
                              "hangupCause",
                              "inboundRouteResult",
                              "inboundForwardToE164",
                              "voicemailDropArmed",
                              "voicemailDropped",
                              "voicemailRecordingId",
                              "voicemailDropMode",
                              "recordingConsentState",
                              "recordingSkipReason",
                              "consentDisclosurePlayed",
                              "consentJurisdiction",
                              "processingStatus",
                              "repNote",
                              "startedAt",
                              "answeredAt",
                              "endedAt",
                              "durationSeconds",
                              "connectedSeconds",
                              "createdAt",
                              "updatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|direction|status|voiceProvider|fromPhoneE164|toPhoneE164|counterpartyPhoneE164|dialerNumberId|repUserId|sessionId|callListId|callListContactId|leadId|amdResult|hangupCause|inboundRouteResult|inboundForwardToE164|voicemailDropArmed|voicemailDropped|voicemailRecordingId|voicemailDropMode|recordingConsentState|recordingSkipReason|consentDisclosurePlayed|consentJurisdiction|processingStatus|repNote|startedAt|answeredAt|endedAt|durationSeconds|connectedSeconds|createdAt|updatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "direction",
                                "status",
                                "voiceProvider",
                                "fromPhoneE164",
                                "toPhoneE164",
                                "counterpartyPhoneE164",
                                "dialerNumberId",
                                "repUserId",
                                "sessionId",
                                "callListId",
                                "callListContactId",
                                "leadId",
                                "amdResult",
                                "hangupCause",
                                "inboundRouteResult",
                                "inboundForwardToE164",
                                "voicemailDropArmed",
                                "voicemailDropped",
                                "voicemailRecordingId",
                                "voicemailDropMode",
                                "recordingConsentState",
                                "recordingSkipReason",
                                "consentDisclosurePlayed",
                                "consentJurisdiction",
                                "processingStatus",
                                "repNote",
                                "startedAt",
                                "answeredAt",
                                "endedAt",
                                "durationSeconds",
                                "connectedSeconds",
                                "createdAt",
                                "updatedAt"
                              ]
                            }
                          },
                          "repName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectiveDisposition": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "booked_meeting",
                                  "connected",
                                  "voicemail",
                                  "no_answer",
                                  "not_interested",
                                  "callback",
                                  "wrong_number",
                                  "dnc",
                                  "gatekeeper",
                                  "ai_gatekeeper",
                                  "busy",
                                  "failed"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "notes": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/CallNote"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dispositions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "disposition": {
                                  "type": "string",
                                  "enum": [
                                    "booked_meeting",
                                    "connected",
                                    "voicemail",
                                    "no_answer",
                                    "not_interested",
                                    "callback",
                                    "wrong_number",
                                    "dnc",
                                    "gatekeeper",
                                    "ai_gatekeeper",
                                    "busy",
                                    "failed"
                                  ]
                                },
                                "source": {
                                  "type": "string",
                                  "enum": [
                                    "ai_suggested",
                                    "manual"
                                  ]
                                },
                                "note": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/CallNote"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "confidence": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "disposition",
                                "source",
                                "note",
                                "confidence"
                              ],
                              "patternProperties": {
                                "^(?!(?:disposition|source|note|confidence)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "disposition",
                                  "source",
                                  "note",
                                  "confidence"
                                ]
                              }
                            },
                            "maxItems": 2
                          },
                          "dispositionJobStatus": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "completed",
                                  "failed",
                                  "canceled"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "hasRecording": {
                            "type": "boolean"
                          },
                          "recordingPending": {
                            "type": "boolean"
                          },
                          "recordingFailed": {
                            "type": "boolean"
                          },
                          "hasTranscript": {
                            "type": "boolean"
                          },
                          "aiSummary": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Description"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "transcriptText": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/CallTranscriptText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "qualityStats": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "version": {
                                    "type": "number",
                                    "enum": [
                                      1
                                    ]
                                  },
                                  "capturedAtMs": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "durationMs": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "sampleCount": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "mosAvg": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 1,
                                        "maximum": 5
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "mosMin": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 1,
                                        "maximum": 5
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "rttMsAvg": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "rttMsMax": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "concealedSamplesPct": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "jitterBufferDelayMsAvg": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "audioLevelAvg": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 1
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "classification": {
                                    "type": "string",
                                    "enum": [
                                      "clean",
                                      "network_degraded",
                                      "insufficient_data"
                                    ]
                                  },
                                  "inbound": {
                                    "type": "object",
                                    "properties": {
                                      "codec": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 64
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "clockRate": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "packets": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "packetsLost": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "packetLossPct": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 100
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "jitterMsAvg": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "jitterMsMax": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "codec",
                                      "clockRate",
                                      "packets",
                                      "packetsLost",
                                      "packetLossPct",
                                      "jitterMsAvg",
                                      "jitterMsMax"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:codec|clockRate|packets|packetsLost|packetLossPct|jitterMsAvg|jitterMsMax)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "codec",
                                        "clockRate",
                                        "packets",
                                        "packetsLost",
                                        "packetLossPct",
                                        "jitterMsAvg",
                                        "jitterMsMax"
                                      ]
                                    }
                                  },
                                  "outbound": {
                                    "type": "object",
                                    "properties": {
                                      "codec": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 64
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "clockRate": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "packets": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "packetsLost": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "packetLossPct": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 100
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "jitterMsAvg": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "jitterMsMax": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "codec",
                                      "clockRate",
                                      "packets",
                                      "packetsLost",
                                      "packetLossPct",
                                      "jitterMsAvg",
                                      "jitterMsMax"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:codec|clockRate|packets|packetsLost|packetLossPct|jitterMsAvg|jitterMsMax)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "codec",
                                        "clockRate",
                                        "packets",
                                        "packetsLost",
                                        "packetLossPct",
                                        "jitterMsAvg",
                                        "jitterMsMax"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "version",
                                  "capturedAtMs",
                                  "durationMs",
                                  "sampleCount",
                                  "rttMsAvg",
                                  "rttMsMax",
                                  "concealedSamplesPct",
                                  "jitterBufferDelayMsAvg",
                                  "audioLevelAvg",
                                  "classification",
                                  "inbound",
                                  "outbound"
                                ],
                                "patternProperties": {
                                  "^(?!(?:version|capturedAtMs|durationMs|sampleCount|mosAvg|mosMin|rttMsAvg|rttMsMax|concealedSamplesPct|jitterBufferDelayMsAvg|audioLevelAvg|classification|inbound|outbound)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "version",
                                    "capturedAtMs",
                                    "durationMs",
                                    "sampleCount",
                                    "mosAvg",
                                    "mosMin",
                                    "rttMsAvg",
                                    "rttMsMax",
                                    "concealedSamplesPct",
                                    "jitterBufferDelayMsAvg",
                                    "audioLevelAvg",
                                    "classification",
                                    "inbound",
                                    "outbound"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "call",
                          "repName",
                          "effectiveDisposition",
                          "notes",
                          "dispositions",
                          "dispositionJobStatus",
                          "hasRecording",
                          "recordingPending",
                          "recordingFailed",
                          "hasTranscript",
                          "aiSummary"
                        ],
                        "patternProperties": {
                          "^(?!(?:call|repName|effectiveDisposition|notes|dispositions|dispositionJobStatus|hasRecording|recordingPending|recordingFailed|hasTranscript|aiSummary|transcriptText|qualityStats)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "call",
                            "repName",
                            "effectiveDisposition",
                            "notes",
                            "dispositions",
                            "dispositionJobStatus",
                            "hasRecording",
                            "recordingPending",
                            "recordingFailed",
                            "hasTranscript",
                            "aiSummary",
                            "transcriptText",
                            "qualityStats"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "initiated",
                              "ringing",
                              "answered",
                              "bridged",
                              "completed",
                              "no_answer",
                              "busy",
                              "failed",
                              "canceled"
                            ]
                          },
                          "hangupCause": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "amdResult": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "hangupCause",
                          "amdResult"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|status|hangupCause|amdResult)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "status",
                            "hangupCause",
                            "amdResult"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "callListId": {
                                  "$ref": "#/$defs/CallListId"
                                },
                                "callListName": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "paused",
                                    "ended"
                                  ]
                                },
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "manual",
                                    "power"
                                  ]
                                },
                                "autoAdvanceDelaySeconds": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "startedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "endedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "totalCalls": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "connects": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "connectionRate": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "talkTimeSeconds": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "meetingsBooked": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "pendingAi": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "failedAi": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "redials": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "id",
                                "callListId",
                                "callListName",
                                "status",
                                "mode",
                                "autoAdvanceDelaySeconds",
                                "startedAt",
                                "endedAt",
                                "totalCalls",
                                "connects",
                                "connectionRate",
                                "talkTimeSeconds",
                                "meetingsBooked",
                                "pendingAi",
                                "failedAi",
                                "redials"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|callListId|callListName|status|mode|autoAdvanceDelaySeconds|startedAt|endedAt|totalCalls|connects|connectionRate|talkTimeSeconds|meetingsBooked|pendingAi|failedAi|redials)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "callListId",
                                  "callListName",
                                  "status",
                                  "mode",
                                  "autoAdvanceDelaySeconds",
                                  "startedAt",
                                  "endedAt",
                                  "totalCalls",
                                  "connects",
                                  "connectionRate",
                                  "talkTimeSeconds",
                                  "meetingsBooked",
                                  "pendingAi",
                                  "failedAi",
                                  "redials"
                                ]
                              }
                            },
                            "maxItems": 100
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "session": {
                            "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"
                              },
                              "callListId": {
                                "$ref": "#/$defs/CallListId"
                              },
                              "userId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "dialerNumberId": {
                                "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"
                                  }
                                ]
                              },
                              "dialerNumberIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 50
                              },
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "manual",
                                  "power"
                                ]
                              },
                              "autoAdvanceDelaySeconds": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 300
                              },
                              "rotationFrequency": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 100
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "active",
                                  "paused",
                                  "ended"
                                ]
                              },
                              "currentContactId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/CallListContactId"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "currentLeadId": {
                                "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"
                                  }
                                ]
                              },
                              "callsPlaced": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "callsConnected": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "startedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "endedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "id",
                              "callListId",
                              "userId",
                              "dialerNumberId",
                              "dialerNumberIds",
                              "mode",
                              "autoAdvanceDelaySeconds",
                              "rotationFrequency",
                              "status",
                              "currentContactId",
                              "currentLeadId",
                              "callsPlaced",
                              "callsConnected",
                              "startedAt",
                              "endedAt",
                              "createdAt",
                              "updatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|callListId|userId|dialerNumberId|dialerNumberIds|mode|autoAdvanceDelaySeconds|rotationFrequency|status|currentContactId|currentLeadId|callsPlaced|callsConnected|startedAt|endedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "callListId",
                                "userId",
                                "dialerNumberId",
                                "dialerNumberIds",
                                "mode",
                                "autoAdvanceDelaySeconds",
                                "rotationFrequency",
                                "status",
                                "currentContactId",
                                "currentLeadId",
                                "callsPlaced",
                                "callsConnected",
                                "startedAt",
                                "endedAt",
                                "createdAt",
                                "updatedAt"
                              ]
                            }
                          },
                          "currentCall": {
                            "anyOf": [
                              {
                                "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"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "queued",
                                      "initiated",
                                      "ringing",
                                      "answered",
                                      "bridged",
                                      "completed",
                                      "no_answer",
                                      "busy",
                                      "failed",
                                      "canceled"
                                    ]
                                  },
                                  "hangupCause": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "hangupCause"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|status|hangupCause)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "status",
                                    "hangupCause"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "session",
                          "currentCall"
                        ],
                        "patternProperties": {
                          "^(?!(?:session|currentCall)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "session",
                            "currentCall"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "report": {
                            "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"
                              },
                              "callListId": {
                                "$ref": "#/$defs/CallListId"
                              },
                              "callListName": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "active",
                                  "paused",
                                  "ended"
                                ]
                              },
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "manual",
                                  "power"
                                ]
                              },
                              "autoAdvanceDelaySeconds": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "startedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "endedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "totalCalls": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "connects": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "connectionRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              },
                              "talkTimeSeconds": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "meetingsBooked": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pendingAi": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "failedAi": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "redials": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "id",
                              "callListId",
                              "callListName",
                              "status",
                              "mode",
                              "autoAdvanceDelaySeconds",
                              "startedAt",
                              "endedAt",
                              "totalCalls",
                              "connects",
                              "connectionRate",
                              "talkTimeSeconds",
                              "meetingsBooked",
                              "pendingAi",
                              "failedAi",
                              "redials"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|callListId|callListName|status|mode|autoAdvanceDelaySeconds|startedAt|endedAt|totalCalls|connects|connectionRate|talkTimeSeconds|meetingsBooked|pendingAi|failedAi|redials)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "callListId",
                                "callListName",
                                "status",
                                "mode",
                                "autoAdvanceDelaySeconds",
                                "startedAt",
                                "endedAt",
                                "totalCalls",
                                "connects",
                                "connectionRate",
                                "talkTimeSeconds",
                                "meetingsBooked",
                                "pendingAi",
                                "failedAi",
                                "redials"
                              ]
                            }
                          },
                          "dispositionBreakdown": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "disposition": {
                                  "type": "string",
                                  "enum": [
                                    "booked_meeting",
                                    "connected",
                                    "voicemail",
                                    "no_answer",
                                    "not_interested",
                                    "callback",
                                    "wrong_number",
                                    "dnc",
                                    "gatekeeper",
                                    "ai_gatekeeper",
                                    "busy",
                                    "failed"
                                  ]
                                },
                                "count": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "disposition",
                                "count"
                              ],
                              "patternProperties": {
                                "^(?!(?:disposition|count)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "disposition",
                                  "count"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "report",
                          "dispositionBreakdown"
                        ],
                        "patternProperties": {
                          "^(?!(?:report|dispositionBreakdown)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "report",
                            "dispositionBreakdown"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/DialerSeatId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "userId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "active": {
                                  "type": "boolean"
                                },
                                "assignedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "assignedByUserId": {
                                  "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"
                                    }
                                  ]
                                },
                                "userName": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "userEmail": {
                                  "$ref": "#/$defs/EmailAddress"
                                }
                              },
                              "required": [
                                "id",
                                "userId",
                                "active",
                                "assignedAt",
                                "assignedByUserId",
                                "userName",
                                "userEmail"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|userId|active|assignedAt|assignedByUserId|userName|userEmail)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "userId",
                                  "active",
                                  "assignedAt",
                                  "assignedByUserId",
                                  "userName",
                                  "userEmail"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "hasSeat": {
                            "type": "boolean"
                          },
                          "active": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "hasSeat",
                          "active"
                        ],
                        "patternProperties": {
                          "^(?!(?:hasSeat|active)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "hasSeat",
                            "active"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "hasSeat": {
                            "type": "boolean"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "forwardE164": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "hasSeat",
                          "enabled",
                          "forwardE164"
                        ],
                        "patternProperties": {
                          "^(?!(?:hasSeat|enabled|forwardE164)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "hasSeat",
                            "enabled",
                            "forwardE164"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "totalDials": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "connects": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "connectRate": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "meetingsBooked": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "talkTimeSeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "avgCallDurationSeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "voicemailsDropped": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "inbound": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "answered": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "missed": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "notRouted": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "talkTimeSeconds": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "total",
                              "answered",
                              "missed",
                              "notRouted",
                              "talkTimeSeconds"
                            ],
                            "patternProperties": {
                              "^(?!(?:total|answered|missed|notRouted|talkTimeSeconds)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "total",
                                "answered",
                                "missed",
                                "notRouted",
                                "talkTimeSeconds"
                              ]
                            }
                          },
                          "dailySeries": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "dials": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "connects": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "meetings": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "dials",
                                "connects",
                                "meetings"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|dials|connects|meetings)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "dials",
                                  "connects",
                                  "meetings"
                                ]
                              }
                            }
                          },
                          "dispositionBreakdown": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "disposition": {
                                  "type": "string",
                                  "enum": [
                                    "booked_meeting",
                                    "connected",
                                    "voicemail",
                                    "no_answer",
                                    "not_interested",
                                    "callback",
                                    "wrong_number",
                                    "dnc",
                                    "gatekeeper",
                                    "ai_gatekeeper",
                                    "busy",
                                    "failed"
                                  ]
                                },
                                "count": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "disposition",
                                "count"
                              ],
                              "patternProperties": {
                                "^(?!(?:disposition|count)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "disposition",
                                  "count"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "totalDials",
                          "connects",
                          "connectRate",
                          "meetingsBooked",
                          "talkTimeSeconds",
                          "avgCallDurationSeconds",
                          "voicemailsDropped",
                          "inbound",
                          "dailySeries",
                          "dispositionBreakdown"
                        ],
                        "patternProperties": {
                          "^(?!(?:totalDials|connects|connectRate|meetingsBooked|talkTimeSeconds|avgCallDurationSeconds|voicemailsDropped|inbound|dailySeries|dispositionBreakdown)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "totalDials",
                            "connects",
                            "connectRate",
                            "meetingsBooked",
                            "talkTimeSeconds",
                            "avgCallDurationSeconds",
                            "voicemailsDropped",
                            "inbound",
                            "dailySeries",
                            "dispositionBreakdown"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_dialer_history"
      },
      "scopes": [
        "dialer:read"
      ],
      "bundles": [
        "dialer_operations"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerCalls.list",
        "dialerCalls.get",
        "dialerCalls.status",
        "dialerSessions.list",
        "dialerSessions.get",
        "dialerSessions.report",
        "dialerSeats.list",
        "dialerSeats.me",
        "dialerSeats.getInboundForwarding",
        "dialerStats.overview"
      ],
      "invocations": [
        {
          "operationId": "dialerCalls.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/calls",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCalls.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/calls/:callId",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerCalls.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/calls/:callId/status",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerSessions.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/sessions",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerSessions.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/sessions/:sessionId",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerSessions.report",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/sessions/:sessionId/report",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerSeats.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/seats",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerSeats.me",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/seats/me",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerSeats.getInboundForwarding",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/seats/me/inbound-forwarding",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerStats.overview",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/stats/overview",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "scope": {
            "type": "string",
            "enum": [
              "calls",
              "call",
              "call_status",
              "sessions",
              "session",
              "session_report",
              "seats",
              "own_seat",
              "own_forwarding",
              "stats"
            ]
          },
          "callId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sessionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "calls": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "repUserId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "callListId": {
                "$ref": "#/$defs/CallListId"
              },
              "disposition": {
                "type": "string",
                "enum": [
                  "booked_meeting",
                  "connected",
                  "voicemail",
                  "no_answer",
                  "not_interested",
                  "callback",
                  "wrong_number",
                  "dnc",
                  "gatekeeper",
                  "ai_gatekeeper",
                  "busy",
                  "failed"
                ]
              },
              "direction": {
                "type": "string",
                "enum": [
                  "outbound",
                  "inbound"
                ]
              },
              "leadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "from": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "to": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|repUserId|callListId|disposition|direction|leadId|from|to)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "repUserId",
                "callListId",
                "disposition",
                "direction",
                "leadId",
                "from",
                "to"
              ]
            }
          },
          "stats": {
            "type": "object",
            "properties": {
              "scope": {
                "type": "string",
                "enum": [
                  "workspace",
                  "user",
                  "self"
                ]
              },
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "from": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "to": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:scope|userId|from|to)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "scope",
                "userId",
                "from",
                "to"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "scope"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|scope|callId|sessionId|calls|stats)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "scope",
            "callId",
            "sessionId",
            "calls",
            "stats"
          ]
        },
        "$defs": {
          "CallListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      }
    },
    {
      "feature": "commerce",
      "name": "read_domains",
      "description": "Read the workspace's existing domains, registration progress, and outbound transfers.\n\nUse to inspect domains a workspace already owns and their state.\n\nNew domain purchases are no longer available.",
      "inputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  },
                  "cursor": {
                    "$ref": "#/$defs/Cursor"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind|cursor|limit)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "cursor",
                    "limit"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  },
                  "domainId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "domainId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|domainId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "domainId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "registration_status"
                    ]
                  },
                  "domainId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "domainId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|domainId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "domainId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "transfer_status"
                    ]
                  },
                  "domainId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "domainId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|domainId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "domainId"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          },
          "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$"
          },
          "Money": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BOV",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHE",
                  "CHF",
                  "CHW",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "COU",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MXV",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLE",
                  "SOS",
                  "SRD",
                  "SSP",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "USN",
                  "UYI",
                  "UYU",
                  "UYW",
                  "UZS",
                  "VED",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAD",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XBA",
                  "XBB",
                  "XBC",
                  "XBD",
                  "XCD",
                  "XCG",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "XSU",
                  "XTS",
                  "XUA",
                  "XXX",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWG"
                ]
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "patternProperties": {
              "^(?!(?:amountMinor|currency)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "amountMinor",
                "currency"
              ]
            }
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "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"
                            },
                            "domainName": {
                              "$ref": "#/$defs/DomainName"
                            },
                            "registrar": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "registering",
                                "renew_option_pending",
                                "active",
                                "renewal_due",
                                "transfer_pending",
                                "transferred_out",
                                "expired",
                                "failed"
                              ]
                            },
                            "registeredAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "expiresAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "autoRenew": {
                              "type": "boolean"
                            },
                            "dnsProvider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "purchasePrice": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Money"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "renewalPrice": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Money"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "failureReason": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Description"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "domainName",
                            "registrar",
                            "status",
                            "registeredAt",
                            "expiresAt",
                            "autoRenew",
                            "dnsProvider",
                            "purchasePrice",
                            "renewalPrice",
                            "failureReason",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|domainName|registrar|status|registeredAt|expiresAt|autoRenew|dnsProvider|purchasePrice|renewalPrice|failureReason|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "domainName",
                              "registrar",
                              "status",
                              "registeredAt",
                              "expiresAt",
                              "autoRenew",
                              "dnsProvider",
                              "purchasePrice",
                              "renewalPrice",
                              "failureReason",
                              "createdAt"
                            ]
                          }
                        }
                      },
                      "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": {
                      "domain": {
                        "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"
                          },
                          "domainName": {
                            "$ref": "#/$defs/DomainName"
                          },
                          "registrar": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "registering",
                              "renew_option_pending",
                              "active",
                              "renewal_due",
                              "transfer_pending",
                              "transferred_out",
                              "expired",
                              "failed"
                            ]
                          },
                          "registeredAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "autoRenew": {
                            "type": "boolean"
                          },
                          "dnsProvider": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "purchasePrice": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Money"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "renewalPrice": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Money"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "failureReason": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Description"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "domainName",
                          "registrar",
                          "status",
                          "registeredAt",
                          "expiresAt",
                          "autoRenew",
                          "dnsProvider",
                          "purchasePrice",
                          "renewalPrice",
                          "failureReason",
                          "createdAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|domainName|registrar|status|registeredAt|expiresAt|autoRenew|dnsProvider|purchasePrice|renewalPrice|failureReason|createdAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "domainName",
                            "registrar",
                            "status",
                            "registeredAt",
                            "expiresAt",
                            "autoRenew",
                            "dnsProvider",
                            "purchasePrice",
                            "renewalPrice",
                            "failureReason",
                            "createdAt"
                          ]
                        }
                      },
                      "orders": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "registration",
                                "renewal"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "pending",
                                "paid",
                                "fulfilled",
                                "failed",
                                "refund_pending",
                                "refunded"
                              ]
                            },
                            "years": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "amount": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Money"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Description"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "kind",
                            "status",
                            "years",
                            "amount",
                            "error",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|kind|status|years|amount|error|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "kind",
                              "status",
                              "years",
                              "amount",
                              "error",
                              "createdAt"
                            ]
                          }
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "domain",
                      "orders"
                    ],
                    "patternProperties": {
                      "^(?!(?:domain|orders)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "domain",
                        "orders"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "state": {
                        "type": "string",
                        "enum": [
                          "idle",
                          "running",
                          "reconciling"
                        ]
                      },
                      "progress": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "message": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "state",
                      "progress",
                      "message"
                    ],
                    "patternProperties": {
                      "^(?!(?:state|progress|message)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "state",
                        "progress",
                        "message"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "registering",
                          "renew_option_pending",
                          "active",
                          "renewal_due",
                          "transfer_pending",
                          "transferred_out",
                          "expired",
                          "failed"
                        ]
                      },
                      "rawStatus": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "changed": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "status",
                      "rawStatus",
                      "changed"
                    ],
                    "patternProperties": {
                      "^(?!(?:status|rawStatus|changed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "status",
                        "rawStatus",
                        "changed"
                      ]
                    }
                  }
                ]
              },
              {
                "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"
                                },
                                "domainName": {
                                  "$ref": "#/$defs/DomainName"
                                },
                                "registrar": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "registering",
                                    "renew_option_pending",
                                    "active",
                                    "renewal_due",
                                    "transfer_pending",
                                    "transferred_out",
                                    "expired",
                                    "failed"
                                  ]
                                },
                                "registeredAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "expiresAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "autoRenew": {
                                  "type": "boolean"
                                },
                                "dnsProvider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "purchasePrice": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Money"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "renewalPrice": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Money"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "failureReason": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Description"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "domainName",
                                "registrar",
                                "status",
                                "registeredAt",
                                "expiresAt",
                                "autoRenew",
                                "dnsProvider",
                                "purchasePrice",
                                "renewalPrice",
                                "failureReason",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|domainName|registrar|status|registeredAt|expiresAt|autoRenew|dnsProvider|purchasePrice|renewalPrice|failureReason|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "domainName",
                                  "registrar",
                                  "status",
                                  "registeredAt",
                                  "expiresAt",
                                  "autoRenew",
                                  "dnsProvider",
                                  "purchasePrice",
                                  "renewalPrice",
                                  "failureReason",
                                  "createdAt"
                                ]
                              }
                            }
                          },
                          "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": {
                          "domain": {
                            "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"
                              },
                              "domainName": {
                                "$ref": "#/$defs/DomainName"
                              },
                              "registrar": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "registering",
                                  "renew_option_pending",
                                  "active",
                                  "renewal_due",
                                  "transfer_pending",
                                  "transferred_out",
                                  "expired",
                                  "failed"
                                ]
                              },
                              "registeredAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "expiresAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "autoRenew": {
                                "type": "boolean"
                              },
                              "dnsProvider": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "purchasePrice": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/Money"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "renewalPrice": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/Money"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "failureReason": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/Description"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "id",
                              "domainName",
                              "registrar",
                              "status",
                              "registeredAt",
                              "expiresAt",
                              "autoRenew",
                              "dnsProvider",
                              "purchasePrice",
                              "renewalPrice",
                              "failureReason",
                              "createdAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|domainName|registrar|status|registeredAt|expiresAt|autoRenew|dnsProvider|purchasePrice|renewalPrice|failureReason|createdAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "domainName",
                                "registrar",
                                "status",
                                "registeredAt",
                                "expiresAt",
                                "autoRenew",
                                "dnsProvider",
                                "purchasePrice",
                                "renewalPrice",
                                "failureReason",
                                "createdAt"
                              ]
                            }
                          },
                          "orders": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "registration",
                                    "renewal"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "pending",
                                    "paid",
                                    "fulfilled",
                                    "failed",
                                    "refund_pending",
                                    "refunded"
                                  ]
                                },
                                "years": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "amount": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Money"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "error": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Description"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "kind",
                                "status",
                                "years",
                                "amount",
                                "error",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|kind|status|years|amount|error|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "kind",
                                  "status",
                                  "years",
                                  "amount",
                                  "error",
                                  "createdAt"
                                ]
                              }
                            },
                            "maxItems": 100
                          }
                        },
                        "required": [
                          "domain",
                          "orders"
                        ],
                        "patternProperties": {
                          "^(?!(?:domain|orders)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "domain",
                            "orders"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "state": {
                            "type": "string",
                            "enum": [
                              "idle",
                              "running",
                              "reconciling"
                            ]
                          },
                          "progress": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "message": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "state",
                          "progress",
                          "message"
                        ],
                        "patternProperties": {
                          "^(?!(?:state|progress|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "state",
                            "progress",
                            "message"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "registering",
                              "renew_option_pending",
                              "active",
                              "renewal_due",
                              "transfer_pending",
                              "transferred_out",
                              "expired",
                              "failed"
                            ]
                          },
                          "rawStatus": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "status",
                          "rawStatus",
                          "changed"
                        ],
                        "patternProperties": {
                          "^(?!(?:status|rawStatus|changed)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "status",
                            "rawStatus",
                            "changed"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_domains"
      },
      "scopes": [
        "domain:read"
      ],
      "bundles": [
        "domain_manager",
        "domain_reader"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "domains.list",
        "domains.get",
        "domains.registrationStatus",
        "domains.transferStatus"
      ],
      "invocations": [
        {
          "operationId": "domains.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains",
          "workspaceScoped": false
        },
        {
          "operationId": "domains.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains/:domainId",
          "workspaceScoped": false
        },
        {
          "operationId": "domains.registrationStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains/:domainId/registration-status",
          "workspaceScoped": false
        },
        {
          "operationId": "domains.transferStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains/:domainId/transfer-status",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  },
                  "cursor": {
                    "$ref": "#/$defs/Cursor"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind|cursor|limit)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "cursor",
                    "limit"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  },
                  "domainId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "domainId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|domainId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "domainId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "registration_status"
                    ]
                  },
                  "domainId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "domainId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|domainId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "domainId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "transfer_status"
                    ]
                  },
                  "domainId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "domainId"
                ],
                "patternProperties": {
                  "^(?!(?:kind|domainId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "domainId"
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "action"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "read_heyreach",
      "description": "Read the workspace's HeyReach LinkedIn automation as it is right now: the connection, sender accounts and their session status, campaigns with their sequences and enrolled leads, lists, lead tags, synced LinkedIn conversations, a sender's network, activity statistics, an email-enrichment job, and the webhook deliveries this workspace received.\n\nUse before proposing any LinkedIn outreach change — every read is a live provider read with the workspace's own key, so it is the only honest answer to what HeyReach is doing. Page through campaigns, lists, leads, and network with offset/limit; conversation search pages with the provider cursor.\n\nNothing is cached locally: a read costs a HeyReach API call and HeyReach rate-limits the workspace, so do not poll tight loops. `HeyReachNotConnected` means the workspace has no key — a person must connect one in Settings. HeyReach's own documents (sequences, account status, lead lookups, per-campaign statistics) come back verbatim as provider JSON.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "connection"
                ]
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "proxy_countries"
                ]
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "webhooks"
                ]
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "accounts"
                ]
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "keyword": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|offset|limit|keyword)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "offset",
                "limit",
                "keyword"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "account"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|accountId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "accountId"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "account_status"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|accountId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "accountId"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "network"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "pageNumber": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|accountId|pageNumber|pageSize)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "accountId",
                "pageNumber",
                "pageSize"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaigns"
                ]
              },
              "campaignSearch": {
                "$ref": "#/$defs/SearchHeyReachCampaignsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignSearch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|campaignSearch)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "campaignSearch"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaign"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "campaignId"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaign_sequence"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|campaignId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "campaignId"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaign_leads"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|campaignId|offset|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "campaignId",
                "offset",
                "limit"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaigns_for_lead"
                ]
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|profileUrl|offset|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "profileUrl",
                "offset",
                "limit"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "lists"
                ]
              },
              "listSearch": {
                "$ref": "#/$defs/SearchHeyReachListsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "listSearch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|listSearch)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "listSearch"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "list"
                ]
              },
              "listId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "listId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|listId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "listId"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "list_leads"
                ]
              },
              "listId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target",
              "listId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|listId|offset|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "listId",
                "offset",
                "limit"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "lead"
                ]
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|profileUrl)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "profileUrl"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "lead_tags"
                ]
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|profileUrl)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "profileUrl"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "conversations"
                ]
              },
              "conversationSearch": {
                "$ref": "#/$defs/SearchHeyReachConversationsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "conversationSearch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|conversationSearch)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "conversationSearch"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "conversation"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "conversationId": {
                "$ref": "#/$defs/HeyReachConversationId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId",
              "conversationId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|accountId|conversationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "accountId",
                "conversationId"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "is_connection"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|accountId|profileUrl)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "accountId",
                "profileUrl"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "stats"
                ]
              },
              "stats": {
                "$ref": "#/$defs/HeyReachStatsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "stats"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|stats)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "stats"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "stats_by_campaign"
                ]
              },
              "stats": {
                "$ref": "#/$defs/HeyReachStatsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "stats"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|stats)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "stats"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "enrichment_job"
                ]
              },
              "jobId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "jobId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|jobId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "jobId"
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "events"
                ]
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|target|offset|limit)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "target",
                "offset",
                "limit"
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "HeyReachCampaignStatus": {
            "type": "string",
            "enum": [
              "DRAFT",
              "IN_PROGRESS",
              "PAUSED",
              "FINISHED",
              "CANCELED",
              "FAILED",
              "STARTING",
              "SCHEDULED"
            ]
          },
          "SearchHeyReachCampaignsInput": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "keyword": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "statuses": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachCampaignStatus"
                },
                "maxItems": 8
              },
              "accountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|keyword|statuses|accountIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "keyword",
                "statuses",
                "accountIds"
              ]
            }
          },
          "LinkedInProfileUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "HeyReachListType": {
            "type": "string",
            "enum": [
              "USER_LIST",
              "COMPANY_LIST"
            ]
          },
          "SearchHeyReachListsInput": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "keyword": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "listType": {
                "$ref": "#/$defs/HeyReachListType"
              },
              "campaignIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|keyword|listType|campaignIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "keyword",
                "listType",
                "campaignIds"
              ]
            }
          },
          "HeyReachInstant": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "SearchHeyReachConversationsInput": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "from": {
                "$ref": "#/$defs/HeyReachInstant"
              },
              "to": {
                "$ref": "#/$defs/HeyReachInstant"
              },
              "filters": {
                "type": "object",
                "properties": {
                  "linkedInAccountIds": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HeyReachId"
                    },
                    "minItems": 0,
                    "maxItems": 100
                  },
                  "campaignIds": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HeyReachId"
                    },
                    "minItems": 0,
                    "maxItems": 100
                  },
                  "searchString": {
                    "type": "string",
                    "minLength": 0,
                    "maxLength": 500
                  },
                  "leadLinkedInId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "leadProfileUrl": {
                    "$ref": "#/$defs/LinkedInProfileUrl"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 100
                    },
                    "maxItems": 100
                  },
                  "latestAutoTagNames": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 100
                    },
                    "maxItems": 100
                  },
                  "seen": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:linkedInAccountIds|campaignIds|searchString|leadLinkedInId|leadProfileUrl|tags|latestAutoTagNames|seen)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "linkedInAccountIds",
                    "campaignIds",
                    "searchString",
                    "leadLinkedInId",
                    "leadProfileUrl",
                    "tags",
                    "latestAutoTagNames",
                    "seen"
                  ]
                }
              }
            },
            "patternProperties": {
              "^(?!(?:limit|cursor|from|to|filters)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "limit",
                "cursor",
                "from",
                "to",
                "filters"
              ]
            }
          },
          "HeyReachConversationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "HeyReachStatsInput": {
            "type": "object",
            "properties": {
              "accountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              },
              "campaignIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              },
              "startDate": {
                "$ref": "#/$defs/HeyReachInstant"
              },
              "endDate": {
                "$ref": "#/$defs/HeyReachInstant"
              }
            },
            "required": [
              "startDate",
              "endDate"
            ],
            "patternProperties": {
              "^(?!(?:accountIds|campaignIds|startDate|endDate)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "accountIds",
                "campaignIds",
                "startDate",
                "endDate"
              ]
            }
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "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$"
          },
          "HeyReachConnectionStatus": {
            "type": "object",
            "properties": {
              "connected": {
                "type": "boolean"
              },
              "replyWebhookReady": {
                "type": "boolean"
              },
              "connectionId": {
                "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"
                  }
                ]
              },
              "credential": {
                "anyOf": [
                  {
                    "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"
                      },
                      "provider": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "kind": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "connected",
                          "needs_reauthorization",
                          "disabled",
                          "disconnected"
                        ]
                      },
                      "fingerprint": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "lastFour": {
                        "type": "string",
                        "pattern": "^.{4}$"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "lastUsedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "provider",
                      "kind",
                      "status",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|provider|kind|status|fingerprint|lastFour|createdAt|updatedAt|lastUsedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "provider",
                        "kind",
                        "status",
                        "fingerprint",
                        "lastFour",
                        "createdAt",
                        "updatedAt",
                        "lastUsedAt"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "connectedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastCheckedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "connected",
              "replyWebhookReady",
              "connectionId",
              "credential",
              "connectedAt",
              "lastCheckedAt"
            ],
            "patternProperties": {
              "^(?!(?:connected|replyWebhookReady|connectionId|credential|connectedAt|lastCheckedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "connected",
                "replyWebhookReady",
                "connectionId",
                "credential",
                "connectedAt",
                "lastCheckedAt"
              ]
            }
          },
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "HeyReachText": {
            "type": "string",
            "minLength": 0,
            "maxLength": 10000
          },
          "HeyReachAccount": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/HeyReachId"
              },
              "firstName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "emailAddress": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "profileUrl": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isActive": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "authIsValid": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "activeCampaigns": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isValidNavigator": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isValidRecruiter": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "accountLimits": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "number"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "firstName",
              "lastName",
              "emailAddress",
              "profileUrl",
              "isActive",
              "authIsValid",
              "activeCampaigns",
              "isValidNavigator",
              "isValidRecruiter",
              "accountLimits"
            ],
            "patternProperties": {
              "^(?!(?:id|firstName|lastName|emailAddress|profileUrl|isActive|authIsValid|activeCampaigns|isValidNavigator|isValidRecruiter|accountLimits)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "firstName",
                "lastName",
                "emailAddress",
                "profileUrl",
                "isActive",
                "authIsValid",
                "activeCampaigns",
                "isValidNavigator",
                "isValidRecruiter",
                "accountLimits"
              ]
            }
          },
          "HeyReachAccountPage": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachAccount"
                },
                "maxItems": 100
              },
              "totalCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "items",
              "totalCount"
            ],
            "patternProperties": {
              "^(?!(?:items|totalCount)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "items",
                "totalCount"
              ]
            }
          },
          "HeyReachProxyCountryList": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "$ref": "#/$defs/HeyReachText"
                    },
                    "code": {
                      "$ref": "#/$defs/HeyReachText"
                    }
                  },
                  "required": [
                    "name",
                    "code"
                  ],
                  "patternProperties": {
                    "^(?!(?:name|code)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "name",
                      "code"
                    ]
                  }
                },
                "maxItems": 500
              }
            },
            "required": [
              "items"
            ],
            "patternProperties": {
              "^(?!(?:items)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "items"
                  ]
                }
              ]
            }
          },
          "HeyReachCampaign": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/HeyReachId"
              },
              "name": {
                "$ref": "#/$defs/HeyReachText"
              },
              "status": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "creationTime": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "linkedInUserListId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "linkedInUserListName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "campaignAccountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "maxItems": 1000
              },
              "progressStats": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "totalUsers": {
                        "type": "number",
                        "minimum": 0
                      },
                      "totalUsersInProgress": {
                        "type": "number",
                        "minimum": 0
                      },
                      "totalUsersPending": {
                        "type": "number",
                        "minimum": 0
                      },
                      "totalUsersFinished": {
                        "type": "number",
                        "minimum": 0
                      },
                      "totalUsersFailed": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "totalUsers",
                      "totalUsersInProgress",
                      "totalUsersPending",
                      "totalUsersFinished",
                      "totalUsersFailed"
                    ],
                    "patternProperties": {
                      "^(?!(?:totalUsers|totalUsersInProgress|totalUsersPending|totalUsersFinished|totalUsersFailed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "totalUsers",
                        "totalUsersInProgress",
                        "totalUsersPending",
                        "totalUsersFinished",
                        "totalUsersFailed"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "status",
              "creationTime",
              "linkedInUserListId",
              "linkedInUserListName",
              "campaignAccountIds",
              "progressStats"
            ],
            "patternProperties": {
              "^(?!(?:id|name|status|creationTime|linkedInUserListId|linkedInUserListName|campaignAccountIds|progressStats)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "name",
                "status",
                "creationTime",
                "linkedInUserListId",
                "linkedInUserListName",
                "campaignAccountIds",
                "progressStats"
              ]
            }
          },
          "HeyReachCampaignPage": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachCampaign"
                },
                "maxItems": 100
              },
              "totalCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "items",
              "totalCount"
            ],
            "patternProperties": {
              "^(?!(?:items|totalCount)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "items",
                "totalCount"
              ]
            }
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "HeyReachDocument": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/$defs/Union_"
            }
          },
          "HeyReachDocumentPage": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachDocument"
                },
                "maxItems": 100
              },
              "totalCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "items",
              "totalCount"
            ],
            "patternProperties": {
              "^(?!(?:items|totalCount)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "items",
                "totalCount"
              ]
            }
          },
          "HeyReachList": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/HeyReachId"
              },
              "name": {
                "$ref": "#/$defs/HeyReachText"
              },
              "totalItemsCount": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "count": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "listType": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "creationTime": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "campaignIds": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HeyReachId"
                    },
                    "maxItems": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "totalItemsCount",
              "count",
              "listType",
              "creationTime",
              "campaignIds"
            ],
            "patternProperties": {
              "^(?!(?:id|name|totalItemsCount|count|listType|creationTime|campaignIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "name",
                "totalItemsCount",
                "count",
                "listType",
                "creationTime",
                "campaignIds"
              ]
            }
          },
          "HeyReachListPage": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachList"
                },
                "maxItems": 100
              },
              "totalCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "items",
              "totalCount"
            ],
            "patternProperties": {
              "^(?!(?:items|totalCount)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "items",
                "totalCount"
              ]
            }
          },
          "HeyReachLeadTags": {
            "type": "object",
            "properties": {
              "tags": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachText"
                },
                "maxItems": 1000
              }
            },
            "required": [
              "tags"
            ],
            "patternProperties": {
              "^(?!(?:tags)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "tags"
                  ]
                }
              ]
            }
          },
          "HeyReachConversationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "HeyReachProfile": {
            "type": "object",
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "linkedinId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "profileUrl": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "headline": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "imageUrl": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyName": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "emailAddress": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tags": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachText"
                },
                "maxItems": 1000
              },
              "customFields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_]+$",
                      "maxLength": 100
                    },
                    "value": {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 10000
                    }
                  },
                  "required": [
                    "name",
                    "value"
                  ],
                  "patternProperties": {
                    "^(?!(?:name|value)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "name",
                      "value"
                    ]
                  }
                },
                "maxItems": 100
              }
            },
            "required": [
              "id",
              "linkedinId",
              "profileUrl",
              "firstName",
              "lastName",
              "headline",
              "imageUrl",
              "companyName",
              "emailAddress",
              "tags",
              "customFields"
            ],
            "patternProperties": {
              "^(?!(?:id|linkedinId|profileUrl|firstName|lastName|headline|imageUrl|companyName|emailAddress|tags|customFields)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "linkedinId",
                "profileUrl",
                "firstName",
                "lastName",
                "headline",
                "imageUrl",
                "companyName",
                "emailAddress",
                "tags",
                "customFields"
              ]
            }
          },
          "HeyReachMessage": {
            "type": "object",
            "properties": {
              "createdAt": {
                "$ref": "#/$defs/HeyReachText"
              },
              "body": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "subject": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sender": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isInMail": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "createdAt",
              "body",
              "subject",
              "sender",
              "isInMail"
            ],
            "patternProperties": {
              "^(?!(?:createdAt|body|subject|sender|isInMail)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "createdAt",
                "body",
                "subject",
                "sender",
                "isInMail"
              ]
            }
          },
          "HeyReachConversation": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/HeyReachConversationId"
              },
              "linkedInAccountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "read": {
                "type": "boolean"
              },
              "groupChat": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "blockedByMe": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "blockedByParticipant": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastMessageAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastMessageText": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastMessageSender": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachText"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalMessages": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "campaignId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "correspondentProfile": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachProfile"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "linkedInAccount": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachAccount"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "messages": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HeyReachMessage"
                    },
                    "maxItems": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "linkedInAccountId",
              "read",
              "groupChat",
              "blockedByMe",
              "blockedByParticipant",
              "lastMessageAt",
              "lastMessageText",
              "lastMessageSender",
              "totalMessages",
              "campaignId",
              "correspondentProfile",
              "linkedInAccount",
              "messages"
            ],
            "patternProperties": {
              "^(?!(?:id|linkedInAccountId|read|groupChat|blockedByMe|blockedByParticipant|lastMessageAt|lastMessageText|lastMessageSender|totalMessages|campaignId|correspondentProfile|linkedInAccount|messages)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "linkedInAccountId",
                "read",
                "groupChat",
                "blockedByMe",
                "blockedByParticipant",
                "lastMessageAt",
                "lastMessageText",
                "lastMessageSender",
                "totalMessages",
                "campaignId",
                "correspondentProfile",
                "linkedInAccount",
                "messages"
              ]
            }
          },
          "HeyReachConversationPage": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachConversation"
                },
                "maxItems": 100
              },
              "totalCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hasNextPage": {
                "type": "boolean"
              }
            },
            "required": [
              "items",
              "totalCount",
              "nextCursor",
              "hasNextPage"
            ],
            "patternProperties": {
              "^(?!(?:items|totalCount|nextCursor|hasNextPage)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "items",
                "totalCount",
                "nextCursor",
                "hasNextPage"
              ]
            }
          },
          "HeyReachConnectionCheck": {
            "type": "object",
            "properties": {
              "isConnection": {
                "type": "boolean"
              }
            },
            "required": [
              "isConnection"
            ],
            "patternProperties": {
              "^(?!(?:isConnection)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "isConnection"
                  ]
                }
              ]
            }
          },
          "HeyReachStats": {
            "type": "object",
            "properties": {
              "overallStats": {
                "type": "object",
                "additionalProperties": {
                  "type": "number"
                }
              },
              "byDayStats": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "number"
                  }
                }
              }
            },
            "required": [
              "overallStats",
              "byDayStats"
            ],
            "patternProperties": {
              "^(?!(?:overallStats|byDayStats)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "overallStats",
                "byDayStats"
              ]
            }
          },
          "HeyReachEnrichmentJob": {
            "type": "object",
            "properties": {
              "jobId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "status": {
                "type": "string",
                "enum": [
                  "PENDING",
                  "IN_PROGRESS",
                  "COMPLETED",
                  "FAILED"
                ]
              },
              "data": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "ENRICHED",
                          "EMAIL_NOT_FOUND",
                          "CANCELLED",
                          "FAILED"
                        ]
                      },
                      "message": {
                        "$ref": "#/$defs/HeyReachText"
                      },
                      "emailAddress": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HeyReachText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "memberId": {
                        "$ref": "#/$defs/HeyReachText"
                      },
                      "profileUrl": {
                        "$ref": "#/$defs/HeyReachText"
                      }
                    },
                    "required": [
                      "status",
                      "message",
                      "emailAddress",
                      "memberId",
                      "profileUrl"
                    ],
                    "patternProperties": {
                      "^(?!(?:status|message|emailAddress|memberId|profileUrl)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "status",
                        "message",
                        "emailAddress",
                        "memberId",
                        "profileUrl"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "jobId",
              "status",
              "data"
            ],
            "patternProperties": {
              "^(?!(?:jobId|status|data)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "jobId",
                "status",
                "data"
              ]
            }
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "HeyReachWebhookEventType": {
            "type": "string",
            "enum": [
              "CONNECTION_REQUEST_SENT",
              "CONNECTION_REQUEST_ACCEPTED",
              "MESSAGE_SENT",
              "MESSAGE_REPLY_RECEIVED",
              "INMAIL_SENT",
              "INMAIL_REPLY_RECEIVED",
              "EVERY_MESSAGE_REPLY_RECEIVED",
              "FOLLOW_SENT",
              "LIKED_POST",
              "VIEWED_PROFILE",
              "CAMPAIGN_COMPLETED",
              "LEAD_TAG_UPDATED"
            ]
          },
          "HeyReachEvent": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/OpaqueId"
              },
              "webhookId": {
                "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"
                  }
                ]
              },
              "eventType": {
                "$ref": "#/$defs/HeyReachWebhookEventType"
              },
              "receivedAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "payload": {
                "$ref": "#/$defs/HeyReachDocument"
              }
            },
            "required": [
              "id",
              "webhookId",
              "eventType",
              "receivedAt",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:id|webhookId|eventType|receivedAt|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "webhookId",
                "eventType",
                "receivedAt",
                "payload"
              ]
            }
          },
          "HeyReachEventPage": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachEvent"
                },
                "maxItems": 100
              },
              "totalCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "items",
              "totalCount"
            ],
            "patternProperties": {
              "^(?!(?:items|totalCount)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "items",
                "totalCount"
              ]
            }
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HeyReachWebhookStatus": {
            "type": "string",
            "enum": [
              "pending",
              "active",
              "failed",
              "deleting"
            ]
          },
          "HeyReachWebhook": {
            "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"
              },
              "remoteId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "$ref": "#/$defs/ShortText"
              },
              "eventType": {
                "$ref": "#/$defs/HeyReachWebhookEventType"
              },
              "campaignIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "maxItems": 100
              },
              "status": {
                "$ref": "#/$defs/HeyReachWebhookStatus"
              },
              "lastReceivedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "id",
              "remoteId",
              "name",
              "eventType",
              "campaignIds",
              "status",
              "lastReceivedAt",
              "createdAt"
            ],
            "patternProperties": {
              "^(?!(?:id|remoteId|name|eventType|campaignIds|status|lastReceivedAt|createdAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "remoteId",
                "name",
                "eventType",
                "campaignIds",
                "status",
                "lastReceivedAt",
                "createdAt"
              ]
            }
          },
          "HeyReachWebhookList": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachWebhook"
                },
                "maxItems": 200
              }
            },
            "required": [
              "items"
            ],
            "patternProperties": {
              "^(?!(?:items)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "items"
                  ]
                }
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HeyReachConnectionStatus"
                  },
                  {
                    "$ref": "#/$defs/HeyReachAccountPage"
                  },
                  {
                    "$ref": "#/$defs/HeyReachAccount"
                  },
                  {
                    "$ref": "#/$defs/HeyReachProxyCountryList"
                  },
                  {
                    "$ref": "#/$defs/HeyReachCampaignPage"
                  },
                  {
                    "$ref": "#/$defs/HeyReachCampaign"
                  },
                  {
                    "$ref": "#/$defs/HeyReachDocumentPage"
                  },
                  {
                    "$ref": "#/$defs/HeyReachListPage"
                  },
                  {
                    "$ref": "#/$defs/HeyReachList"
                  },
                  {
                    "$ref": "#/$defs/HeyReachLeadTags"
                  },
                  {
                    "$ref": "#/$defs/HeyReachConversationPage"
                  },
                  {
                    "$ref": "#/$defs/HeyReachConversation"
                  },
                  {
                    "$ref": "#/$defs/HeyReachConnectionCheck"
                  },
                  {
                    "$ref": "#/$defs/HeyReachStats"
                  },
                  {
                    "$ref": "#/$defs/HeyReachEnrichmentJob"
                  },
                  {
                    "$ref": "#/$defs/HeyReachEventPage"
                  },
                  {
                    "$ref": "#/$defs/HeyReachWebhookList"
                  },
                  {
                    "$ref": "#/$defs/HeyReachDocument"
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HeyReachConnectionStatus"
                      },
                      {
                        "$ref": "#/$defs/HeyReachAccountPage"
                      },
                      {
                        "$ref": "#/$defs/HeyReachAccount"
                      },
                      {
                        "$ref": "#/$defs/HeyReachProxyCountryList"
                      },
                      {
                        "$ref": "#/$defs/HeyReachCampaignPage"
                      },
                      {
                        "$ref": "#/$defs/HeyReachCampaign"
                      },
                      {
                        "$ref": "#/$defs/HeyReachDocumentPage"
                      },
                      {
                        "$ref": "#/$defs/HeyReachListPage"
                      },
                      {
                        "$ref": "#/$defs/HeyReachList"
                      },
                      {
                        "$ref": "#/$defs/HeyReachLeadTags"
                      },
                      {
                        "$ref": "#/$defs/HeyReachConversationPage"
                      },
                      {
                        "$ref": "#/$defs/HeyReachConversation"
                      },
                      {
                        "$ref": "#/$defs/HeyReachConnectionCheck"
                      },
                      {
                        "$ref": "#/$defs/HeyReachStats"
                      },
                      {
                        "$ref": "#/$defs/HeyReachEnrichmentJob"
                      },
                      {
                        "$ref": "#/$defs/HeyReachEventPage"
                      },
                      {
                        "$ref": "#/$defs/HeyReachWebhookList"
                      },
                      {
                        "$ref": "#/$defs/HeyReachDocument"
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_heyreach"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "heyreach"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "heyreachConnection.status",
        "heyreachAccounts.list",
        "heyreachAccounts.get",
        "heyreachAccounts.status",
        "heyreachAccounts.proxyCountries",
        "heyreachCampaigns.list",
        "heyreachCampaigns.get",
        "heyreachCampaigns.sequence",
        "heyreachCampaigns.leads",
        "heyreachCampaigns.forLead",
        "heyreachLists.list",
        "heyreachLists.get",
        "heyreachLists.leads",
        "heyreachLeads.lookup",
        "heyreachLeads.tags",
        "heyreachConversations.list",
        "heyreachConversations.get",
        "heyreachInsights.network",
        "heyreachInsights.isConnection",
        "heyreachInsights.stats",
        "heyreachInsights.statsByCampaign",
        "heyreachInsights.enrichStatus",
        "heyreachInsights.events",
        "heyreachWebhooks.list"
      ],
      "invocations": [
        {
          "operationId": "heyreachConnection.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/status",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachAccounts.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachAccounts.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts/:accountId",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachAccounts.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts/:accountId/status",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachAccounts.proxyCountries",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts/proxy-countries",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.list",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/search",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.sequence",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/sequence",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.leads",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/:campaignId/leads",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachCampaigns.forLead",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/campaigns/for-lead",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLists.list",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/lists/search",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLists.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/lists/:listId",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLists.leads",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/lists/:listId/leads",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLeads.lookup",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/leads/lookup",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachLeads.tags",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/leads/tags",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachConversations.list",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/conversations/search",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachConversations.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts/:accountId/conversations/:conversationId",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachInsights.network",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/accounts/:accountId/network",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachInsights.isConnection",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/network/connection",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachInsights.stats",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/statistics",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachInsights.statsByCampaign",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/statistics/by-campaign",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachInsights.enrichStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/enrichment/:jobId",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachInsights.events",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/events",
          "workspaceScoped": false
        },
        {
          "operationId": "heyreachWebhooks.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/integrations/heyreach/webhooks",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "connection"
                ]
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "proxy_countries"
                ]
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "webhooks"
                ]
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "accounts"
                ]
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "keyword": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|offset|limit|keyword)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "offset",
                    "limit",
                    "keyword"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "account"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|accountId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "accountId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "account_status"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|accountId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "accountId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "network"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "pageNumber": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|accountId|pageNumber|pageSize)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "accountId",
                    "pageNumber",
                    "pageSize"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaigns"
                ]
              },
              "campaignSearch": {
                "$ref": "#/$defs/SearchHeyReachCampaignsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignSearch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|campaignSearch)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "campaignSearch"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaign"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaign_sequence"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|campaignId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "campaignId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaign_leads"
                ]
              },
              "campaignId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|campaignId|offset|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "campaignId",
                    "offset",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "campaigns_for_lead"
                ]
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|profileUrl|offset|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "profileUrl",
                    "offset",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "lists"
                ]
              },
              "listSearch": {
                "$ref": "#/$defs/SearchHeyReachListsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "listSearch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|listSearch)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "listSearch"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "list"
                ]
              },
              "listId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "listId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|listId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "listId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "list_leads"
                ]
              },
              "listId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target",
              "listId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|listId|offset|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "listId",
                    "offset",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "lead"
                ]
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|profileUrl)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "profileUrl"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "lead_tags"
                ]
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|profileUrl)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "profileUrl"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "conversations"
                ]
              },
              "conversationSearch": {
                "$ref": "#/$defs/SearchHeyReachConversationsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "conversationSearch"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|conversationSearch)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "conversationSearch"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "conversation"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "conversationId": {
                "$ref": "#/$defs/HeyReachConversationId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId",
              "conversationId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|accountId|conversationId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "accountId",
                    "conversationId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "is_connection"
                ]
              },
              "accountId": {
                "$ref": "#/$defs/HeyReachId"
              },
              "profileUrl": {
                "$ref": "#/$defs/LinkedInProfileUrl"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "accountId",
              "profileUrl"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|accountId|profileUrl)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "accountId",
                    "profileUrl"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "stats"
                ]
              },
              "stats": {
                "$ref": "#/$defs/HeyReachStatsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "stats"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|stats)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "stats"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "stats_by_campaign"
                ]
              },
              "stats": {
                "$ref": "#/$defs/HeyReachStatsInput"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "stats"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|stats)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "stats"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "enrichment_job"
                ]
              },
              "jobId": {
                "$ref": "#/$defs/HeyReachId"
              }
            },
            "required": [
              "workspaceId",
              "target",
              "jobId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|jobId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "jobId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "target": {
                "type": "string",
                "enum": [
                  "events"
                ]
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "target"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|target|offset|limit)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "target",
                    "offset",
                    "limit"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "HeyReachId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "HeyReachCampaignStatus": {
            "type": "string",
            "enum": [
              "DRAFT",
              "IN_PROGRESS",
              "PAUSED",
              "FINISHED",
              "CANCELED",
              "FAILED",
              "STARTING",
              "SCHEDULED"
            ]
          },
          "SearchHeyReachCampaignsInput": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "keyword": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "statuses": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachCampaignStatus"
                },
                "maxItems": 8
              },
              "accountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|keyword|statuses|accountIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "keyword",
                "statuses",
                "accountIds"
              ]
            }
          },
          "LinkedInProfileUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "HeyReachListType": {
            "type": "string",
            "enum": [
              "USER_LIST",
              "COMPANY_LIST"
            ]
          },
          "SearchHeyReachListsInput": {
            "type": "object",
            "properties": {
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "keyword": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "listType": {
                "$ref": "#/$defs/HeyReachListType"
              },
              "campaignIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              }
            },
            "patternProperties": {
              "^(?!(?:offset|limit|keyword|listType|campaignIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "offset",
                "limit",
                "keyword",
                "listType",
                "campaignIds"
              ]
            }
          },
          "HeyReachInstant": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "SearchHeyReachConversationsInput": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "from": {
                "$ref": "#/$defs/HeyReachInstant"
              },
              "to": {
                "$ref": "#/$defs/HeyReachInstant"
              },
              "filters": {
                "type": "object",
                "properties": {
                  "linkedInAccountIds": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HeyReachId"
                    },
                    "minItems": 0,
                    "maxItems": 100
                  },
                  "campaignIds": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HeyReachId"
                    },
                    "minItems": 0,
                    "maxItems": 100
                  },
                  "searchString": {
                    "type": "string",
                    "minLength": 0,
                    "maxLength": 500
                  },
                  "leadLinkedInId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "leadProfileUrl": {
                    "$ref": "#/$defs/LinkedInProfileUrl"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 100
                    },
                    "maxItems": 100
                  },
                  "latestAutoTagNames": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 100
                    },
                    "maxItems": 100
                  },
                  "seen": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "patternProperties": {
                  "^(?!(?:linkedInAccountIds|campaignIds|searchString|leadLinkedInId|leadProfileUrl|tags|latestAutoTagNames|seen)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "linkedInAccountIds",
                    "campaignIds",
                    "searchString",
                    "leadLinkedInId",
                    "leadProfileUrl",
                    "tags",
                    "latestAutoTagNames",
                    "seen"
                  ]
                }
              }
            },
            "patternProperties": {
              "^(?!(?:limit|cursor|from|to|filters)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "limit",
                "cursor",
                "from",
                "to",
                "filters"
              ]
            }
          },
          "HeyReachConversationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "HeyReachStatsInput": {
            "type": "object",
            "properties": {
              "accountIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              },
              "campaignIds": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/HeyReachId"
                },
                "minItems": 0,
                "maxItems": 100
              },
              "startDate": {
                "$ref": "#/$defs/HeyReachInstant"
              },
              "endDate": {
                "$ref": "#/$defs/HeyReachInstant"
              }
            },
            "required": [
              "startDate",
              "endDate"
            ],
            "patternProperties": {
              "^(?!(?:accountIds|campaignIds|startDate|endDate)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "accountIds",
                "campaignIds",
                "startDate",
                "endDate"
              ]
            }
          }
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "read_inbox_health",
      "description": "Reads workspace inboxes, aggregate stats, per-inbox row stats, analytics, recent-health alerts, deliverability state, placement runs, and subscription targets.\n\nChoose action for one native read; use batch_row_stats for up to 100 visible inbox IDs; omit it for a paginated inbox list plus aggregate stats. Filters apply only to the list; stats cover the Workspace. Use returned pagination for further pages.\n\nWhen the caller wants to mutate settings or dispatch work.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "overview"
                ]
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "sortBy": {
                "type": "string",
                "enum": [
                  "emailAddress",
                  "status",
                  "dailySendingLimit",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortOrder": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              },
              "provider": {
                "type": "string",
                "enum": [
                  "all",
                  "google_workspace",
                  "microsoft_365",
                  "other"
                ]
              },
              "statuses": {
                "$ref": "#/$defs/ShortText"
              },
              "tagIds": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|offset|limit|search|sortBy|sortOrder|provider|statuses|tagIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "offset",
                "limit",
                "search",
                "sortBy",
                "sortOrder",
                "provider",
                "statuses",
                "tagIds"
              ]
            }
          },
          {
            "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"
                ]
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "sortBy": {
                "type": "string",
                "enum": [
                  "emailAddress",
                  "status",
                  "dailySendingLimit",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortOrder": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              },
              "provider": {
                "type": "string",
                "enum": [
                  "all",
                  "google_workspace",
                  "microsoft_365",
                  "other"
                ]
              },
              "statuses": {
                "$ref": "#/$defs/ShortText"
              },
              "tagIds": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|offset|limit|search|sortBy|sortOrder|provider|statuses|tagIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "offset",
                "limit",
                "search",
                "sortBy",
                "sortOrder",
                "provider",
                "statuses",
                "tagIds"
              ]
            }
          },
          {
            "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": [
                  "stats"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action"
              ]
            }
          },
          {
            "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": [
                  "row_stats"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "batch_row_stats"
                ]
              },
              "inboxIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxIds"
              ]
            }
          },
          {
            "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": [
                  "account_analytics"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "startDate": {
                "$ref": "#/$defs/LocalDate"
              },
              "endDate": {
                "$ref": "#/$defs/LocalDate"
              },
              "recipientProviders": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|startDate|endDate|recipientProviders)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "startDate",
                "endDate",
                "recipientProviders"
              ]
            }
          },
          {
            "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": [
                  "warmup_analytics"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "startDate": {
                "$ref": "#/$defs/LocalDate"
              },
              "endDate": {
                "$ref": "#/$defs/LocalDate"
              },
              "issuePage": {
                "type": "integer",
                "minimum": 1
              },
              "issuePageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|startDate|endDate|issuePage|issuePageSize)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "startDate",
                "endDate",
                "issuePage",
                "issuePageSize"
              ]
            }
          },
          {
            "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": [
                  "recent_health"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "subscription_targets"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action"
              ]
            }
          },
          {
            "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": [
                  "dns_status"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "settings"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "deliverability"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "placement_diagnostics"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "export"
                ]
              },
              "inboxIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 500
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxIds"
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "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$"
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "HexColor": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{6}$"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "inboxes": {
                        "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365",
                                    "other"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive",
                                    "error",
                                    "alert"
                                  ]
                                },
                                "statusDetail": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "senderFirstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "senderLastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dailySendingLimit": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "minGapSeconds": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "warmupEnabled": {
                                  "type": "boolean"
                                },
                                "warmupReputationScore": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "tags": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64
                                      },
                                      "name": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      },
                                      "color": {
                                        "$ref": "#/$defs/HexColor"
                                      },
                                      "description": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 500
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "createdAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "updatedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color",
                                      "description",
                                      "createdAt",
                                      "updatedAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "name",
                                        "color",
                                        "description",
                                        "createdAt",
                                        "updatedAt"
                                      ]
                                    }
                                  }
                                },
                                "deliveryStatus": {
                                  "type": "object",
                                  "properties": {
                                    "state": {
                                      "type": "string",
                                      "enum": [
                                        "ok",
                                        "degraded",
                                        "blocked",
                                        "unknown"
                                      ]
                                    },
                                    "detail": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "state",
                                    "detail"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:state|detail)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "state",
                                      "detail"
                                    ]
                                  }
                                },
                                "dnsRecords": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Union_"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "recipientBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "senderBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "unclassifiedBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "provider",
                                "status",
                                "statusDetail",
                                "createdAt",
                                "updatedAt",
                                "senderFirstName",
                                "senderLastName",
                                "dailySendingLimit",
                                "minGapSeconds",
                                "warmupEnabled",
                                "warmupReputationScore",
                                "tags",
                                "deliveryStatus"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|provider|status|statusDetail|createdAt|updatedAt|senderFirstName|senderLastName|dailySendingLimit|minGapSeconds|warmupEnabled|warmupReputationScore|tags|deliveryStatus|dnsRecords|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "provider",
                                  "status",
                                  "statusDetail",
                                  "createdAt",
                                  "updatedAt",
                                  "senderFirstName",
                                  "senderLastName",
                                  "dailySendingLimit",
                                  "minGapSeconds",
                                  "warmupEnabled",
                                  "warmupReputationScore",
                                  "tags",
                                  "deliveryStatus",
                                  "dnsRecords",
                                  "recipientBounceCount",
                                  "senderBounceCount",
                                  "unclassifiedBounceCount"
                                ]
                              }
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalPages": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "currentPage": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pageSize": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "hasNextPage": {
                                "type": "boolean"
                              },
                              "hasPreviousPage": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "total",
                              "totalPages",
                              "currentPage",
                              "pageSize",
                              "offset",
                              "hasNextPage",
                              "hasPreviousPage"
                            ],
                            "patternProperties": {
                              "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "total",
                                "totalPages",
                                "currentPage",
                                "pageSize",
                                "offset",
                                "hasNextPage",
                                "hasPreviousPage"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      "stats": {
                        "type": "object",
                        "properties": {
                          "totalInboxes": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalDomains": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "warmupCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "errorCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "alertCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "totalInboxes",
                          "totalDomains",
                          "warmupCount",
                          "errorCount",
                          "alertCount"
                        ],
                        "patternProperties": {
                          "^(?!(?:totalInboxes|totalDomains|warmupCount|errorCount|alertCount)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "totalInboxes",
                            "totalDomains",
                            "warmupCount",
                            "errorCount",
                            "alertCount"
                          ]
                        }
                      }
                    },
                    "required": [
                      "inboxes",
                      "stats"
                    ],
                    "patternProperties": {
                      "^(?!(?:inboxes|stats)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "inboxes",
                        "stats"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365",
                                "other"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "inactive",
                                "error",
                                "alert"
                              ]
                            },
                            "statusDetail": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "senderFirstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "senderLastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dailySendingLimit": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "minGapSeconds": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "warmupEnabled": {
                              "type": "boolean"
                            },
                            "warmupReputationScore": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tags": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100
                                  },
                                  "color": {
                                    "$ref": "#/$defs/HexColor"
                                  },
                                  "description": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 500
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "createdAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "updatedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "color",
                                  "description",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "name",
                                    "color",
                                    "description",
                                    "createdAt",
                                    "updatedAt"
                                  ]
                                }
                              }
                            },
                            "deliveryStatus": {
                              "type": "object",
                              "properties": {
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "ok",
                                    "degraded",
                                    "blocked",
                                    "unknown"
                                  ]
                                },
                                "detail": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "state",
                                "detail"
                              ],
                              "patternProperties": {
                                "^(?!(?:state|detail)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "state",
                                  "detail"
                                ]
                              }
                            },
                            "dnsRecords": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Union_"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "recipientBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "senderBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "unclassifiedBounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "id",
                            "emailAddress",
                            "provider",
                            "status",
                            "statusDetail",
                            "createdAt",
                            "updatedAt",
                            "senderFirstName",
                            "senderLastName",
                            "dailySendingLimit",
                            "minGapSeconds",
                            "warmupEnabled",
                            "warmupReputationScore",
                            "tags",
                            "deliveryStatus"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|emailAddress|provider|status|statusDetail|createdAt|updatedAt|senderFirstName|senderLastName|dailySendingLimit|minGapSeconds|warmupEnabled|warmupReputationScore|tags|deliveryStatus|dnsRecords|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "emailAddress",
                              "provider",
                              "status",
                              "statusDetail",
                              "createdAt",
                              "updatedAt",
                              "senderFirstName",
                              "senderLastName",
                              "dailySendingLimit",
                              "minGapSeconds",
                              "warmupEnabled",
                              "warmupReputationScore",
                              "tags",
                              "deliveryStatus",
                              "dnsRecords",
                              "recipientBounceCount",
                              "senderBounceCount",
                              "unclassifiedBounceCount"
                            ]
                          }
                        }
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalPages": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "currentPage": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "pageSize": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "hasNextPage": {
                            "type": "boolean"
                          },
                          "hasPreviousPage": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "total",
                          "totalPages",
                          "currentPage",
                          "pageSize",
                          "offset",
                          "hasNextPage",
                          "hasPreviousPage"
                        ],
                        "patternProperties": {
                          "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "total",
                            "totalPages",
                            "currentPage",
                            "pageSize",
                            "offset",
                            "hasNextPage",
                            "hasPreviousPage"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "totalInboxes": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "totalDomains": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "warmupCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "errorCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "alertCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "totalInboxes",
                      "totalDomains",
                      "warmupCount",
                      "errorCount",
                      "alertCount"
                    ],
                    "patternProperties": {
                      "^(?!(?:totalInboxes|totalDomains|warmupCount|errorCount|alertCount)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "totalInboxes",
                        "totalDomains",
                        "warmupCount",
                        "errorCount",
                        "alertCount"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "dailySentEmails": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "sendLimitToday": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "sendLimitTarget": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sendRampDaysRemaining": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "totalWarmupEmails": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "initialWarmupEmails": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "warmupLimitToday": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "warmupLimitTarget": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warmupRampDaysRemaining": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "warmupEmailDeliverability": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "replyRate": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "totalCampaigns": {
                        "$ref": "#/$defs/ShortText"
                      }
                    },
                    "required": [
                      "dailySentEmails",
                      "sendLimitToday",
                      "sendLimitTarget",
                      "sendRampDaysRemaining",
                      "totalWarmupEmails",
                      "initialWarmupEmails",
                      "warmupLimitToday",
                      "warmupLimitTarget",
                      "warmupRampDaysRemaining",
                      "warmupEmailDeliverability",
                      "replyRate",
                      "totalCampaigns"
                    ],
                    "patternProperties": {
                      "^(?!(?:dailySentEmails|sendLimitToday|sendLimitTarget|sendRampDaysRemaining|totalWarmupEmails|initialWarmupEmails|warmupLimitToday|warmupLimitTarget|warmupRampDaysRemaining|warmupEmailDeliverability|replyRate|totalCampaigns)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "dailySentEmails",
                        "sendLimitToday",
                        "sendLimitTarget",
                        "sendRampDaysRemaining",
                        "totalWarmupEmails",
                        "initialWarmupEmails",
                        "warmupLimitToday",
                        "warmupLimitTarget",
                        "warmupRampDaysRemaining",
                        "warmupEmailDeliverability",
                        "replyRate",
                        "totalCampaigns"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "inboxId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "stats": {
                              "type": "object",
                              "properties": {
                                "dailySentEmails": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "sendLimitToday": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "sendLimitTarget": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sendRampDaysRemaining": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "totalWarmupEmails": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "initialWarmupEmails": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "warmupLimitToday": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "warmupLimitTarget": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "warmupRampDaysRemaining": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "warmupEmailDeliverability": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "replyRate": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "totalCampaigns": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "dailySentEmails",
                                "sendLimitToday",
                                "sendLimitTarget",
                                "sendRampDaysRemaining",
                                "totalWarmupEmails",
                                "initialWarmupEmails",
                                "warmupLimitToday",
                                "warmupLimitTarget",
                                "warmupRampDaysRemaining",
                                "warmupEmailDeliverability",
                                "replyRate",
                                "totalCampaigns"
                              ],
                              "patternProperties": {
                                "^(?!(?:dailySentEmails|sendLimitToday|sendLimitTarget|sendRampDaysRemaining|totalWarmupEmails|initialWarmupEmails|warmupLimitToday|warmupLimitTarget|warmupRampDaysRemaining|warmupEmailDeliverability|replyRate|totalCampaigns)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "dailySentEmails",
                                  "sendLimitToday",
                                  "sendLimitTarget",
                                  "sendRampDaysRemaining",
                                  "totalWarmupEmails",
                                  "initialWarmupEmails",
                                  "warmupLimitToday",
                                  "warmupLimitTarget",
                                  "warmupRampDaysRemaining",
                                  "warmupEmailDeliverability",
                                  "replyRate",
                                  "totalCampaigns"
                                ]
                              }
                            }
                          },
                          "required": [
                            "inboxId",
                            "stats"
                          ],
                          "patternProperties": {
                            "^(?!(?:inboxId|stats)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "inboxId",
                              "stats"
                            ]
                          }
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "summary": {
                        "type": "object",
                        "properties": {
                          "totalLeads": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "leadsContacted": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "leadsContactedPercentage": {
                            "type": "number"
                          },
                          "totalEmailsSent": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyCountWithOOO": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyRate": {
                            "type": "number"
                          },
                          "replyRateWithOOO": {
                            "type": "number"
                          },
                          "positiveReplyCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "positiveReplyRate": {
                            "type": "number"
                          },
                          "bounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "bounceRate": {
                            "type": "number"
                          },
                          "newLeadsContacted": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalCompletedLeads": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "recipientBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "senderBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unclassifiedBounceCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "totalLeads",
                          "leadsContacted",
                          "leadsContactedPercentage",
                          "totalEmailsSent",
                          "replyCount",
                          "replyCountWithOOO",
                          "replyRate",
                          "replyRateWithOOO",
                          "positiveReplyCount",
                          "positiveReplyRate",
                          "bounceCount",
                          "bounceRate",
                          "newLeadsContacted",
                          "totalCompletedLeads"
                        ],
                        "patternProperties": {
                          "^(?!(?:totalLeads|leadsContacted|leadsContactedPercentage|totalEmailsSent|replyCount|replyCountWithOOO|replyRate|replyRateWithOOO|positiveReplyCount|positiveReplyRate|bounceCount|bounceRate|newLeadsContacted|totalCompletedLeads|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "totalLeads",
                            "leadsContacted",
                            "leadsContactedPercentage",
                            "totalEmailsSent",
                            "replyCount",
                            "replyCountWithOOO",
                            "replyRate",
                            "replyRateWithOOO",
                            "positiveReplyCount",
                            "positiveReplyRate",
                            "bounceCount",
                            "bounceRate",
                            "newLeadsContacted",
                            "totalCompletedLeads",
                            "recipientBounceCount",
                            "senderBounceCount",
                            "unclassifiedBounceCount"
                          ]
                        }
                      },
                      "dailyEmailSent": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "newLead": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "followUp": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "newLead",
                            "followUp"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|newLead|followUp)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "newLead",
                              "followUp"
                            ]
                          }
                        }
                      },
                      "dailyMetrics": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "replyCountWithOOO": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "replyCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "positiveReplyCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "bounceCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "replyCountWithOOO",
                            "replyCount",
                            "positiveReplyCount",
                            "bounceCount"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|replyCountWithOOO|replyCount|positiveReplyCount|bounceCount)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "replyCountWithOOO",
                              "replyCount",
                              "positiveReplyCount",
                              "bounceCount"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "summary",
                      "dailyEmailSent",
                      "dailyMetrics"
                    ],
                    "patternProperties": {
                      "^(?!(?:summary|dailyEmailSent|dailyMetrics)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "summary",
                        "dailyEmailSent",
                        "dailyMetrics"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "summary": {
                        "type": "object",
                        "properties": {
                          "receivedBySeeds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "warmupEmailsSent": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "sentByUs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "neverArrived": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "awaitingConfirmation": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "landedInInbox": {
                            "type": "number"
                          },
                          "landedInInboxCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "landedInSpam": {
                            "type": "number"
                          },
                          "landedInSpamCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "landedInTabs": {
                            "type": "number"
                          },
                          "landedInTabsCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "followUp": {
                            "type": "object",
                            "properties": {
                              "windowMinutes": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "eligible": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "observed": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "inbox": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "spam": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "tabs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unavailable": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pending": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "inboxRate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "spamRate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "tabsRate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "windowMinutes",
                              "eligible",
                              "observed",
                              "inbox",
                              "spam",
                              "tabs",
                              "unavailable",
                              "pending",
                              "inboxRate",
                              "spamRate",
                              "tabsRate"
                            ],
                            "patternProperties": {
                              "^(?!(?:windowMinutes|eligible|observed|inbox|spam|tabs|unavailable|pending|inboxRate|spamRate|tabsRate)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "windowMinutes",
                                "eligible",
                                "observed",
                                "inbox",
                                "spam",
                                "tabs",
                                "unavailable",
                                "pending",
                                "inboxRate",
                                "spamRate",
                                "tabsRate"
                              ]
                            }
                          },
                          "bouncedCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "seedReplies": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "receivedBySeeds",
                          "warmupEmailsSent",
                          "sentByUs",
                          "neverArrived",
                          "awaitingConfirmation",
                          "landedInInbox",
                          "landedInInboxCount",
                          "landedInSpam",
                          "landedInSpamCount",
                          "landedInTabs",
                          "landedInTabsCount",
                          "followUp",
                          "bouncedCount",
                          "seedReplies"
                        ],
                        "patternProperties": {
                          "^(?!(?:receivedBySeeds|warmupEmailsSent|sentByUs|neverArrived|awaitingConfirmation|landedInInbox|landedInInboxCount|landedInSpam|landedInSpamCount|landedInTabs|landedInTabsCount|followUp|bouncedCount|seedReplies)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "receivedBySeeds",
                            "warmupEmailsSent",
                            "sentByUs",
                            "neverArrived",
                            "awaitingConfirmation",
                            "landedInInbox",
                            "landedInInboxCount",
                            "landedInSpam",
                            "landedInSpamCount",
                            "landedInTabs",
                            "landedInTabsCount",
                            "followUp",
                            "bouncedCount",
                            "seedReplies"
                          ]
                        }
                      },
                      "dailyDeliverability": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "sent": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "received": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inbox": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spam": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "tabs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "followUpEligible": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "followUpUnavailable": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "sent",
                            "received",
                            "inbox",
                            "spam",
                            "tabs",
                            "followUpEligible",
                            "followUpUnavailable"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|sent|received|inbox|spam|tabs|followUpEligible|followUpUnavailable)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "sent",
                              "received",
                              "inbox",
                              "spam",
                              "tabs",
                              "followUpEligible",
                              "followUpUnavailable"
                            ]
                          }
                        }
                      },
                      "placementByProvider": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "received": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inbox": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spam": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "tabs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inboxRate": {
                              "type": "number"
                            },
                            "spamRate": {
                              "type": "number"
                            },
                            "tabsRate": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "provider",
                            "received",
                            "inbox",
                            "spam",
                            "tabs",
                            "inboxRate",
                            "spamRate",
                            "tabsRate"
                          ],
                          "patternProperties": {
                            "^(?!(?:provider|received|inbox|spam|tabs|inboxRate|spamRate|tabsRate)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "provider",
                              "received",
                              "inbox",
                              "spam",
                              "tabs",
                              "inboxRate",
                              "spamRate",
                              "tabsRate"
                            ]
                          }
                        }
                      },
                      "sevenDayEngagement": {
                        "type": "object",
                        "properties": {
                          "window": {
                            "type": "object",
                            "properties": {
                              "from": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "to": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "hours": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "from",
                              "to",
                              "hours"
                            ],
                            "patternProperties": {
                              "^(?!(?:from|to|hours)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "from",
                                "to",
                                "hours"
                              ]
                            }
                          },
                          "pool": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/OpaqueId"
                                  },
                                  "name": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|name)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "name"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "desired": {
                            "$ref": "#/$defs/Union_"
                          },
                          "applied": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "providerId": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "desiredPolicy": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Union_"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "appliedPolicy": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Union_"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unsupportedControls": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "lastSyncAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastSyncError": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "providerId",
                                "status",
                                "desiredPolicy",
                                "appliedPolicy",
                                "unsupportedControls",
                                "lastSyncAt",
                                "lastSyncError"
                              ],
                              "patternProperties": {
                                "^(?!(?:providerId|status|desiredPolicy|appliedPolicy|unsupportedControls|lastSyncAt|lastSyncError)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "providerId",
                                  "status",
                                  "desiredPolicy",
                                  "appliedPolicy",
                                  "unsupportedControls",
                                  "lastSyncAt",
                                  "lastSyncError"
                                ]
                              }
                            }
                          },
                          "observed": {
                            "type": "object",
                            "properties": {
                              "composition": {
                                "type": "object",
                                "properties": {
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "html": {
                                    "type": "object",
                                    "properties": {
                                      "count": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "rate": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "count",
                                      "rate"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:count|rate)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "count",
                                        "rate"
                                      ]
                                    }
                                  },
                                  "tracked": {
                                    "type": "object",
                                    "properties": {
                                      "count": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "eligible": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "rate": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "count",
                                      "eligible",
                                      "rate"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:count|eligible|rate)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "count",
                                        "eligible",
                                        "rate"
                                      ]
                                    }
                                  },
                                  "signed": {
                                    "type": "object",
                                    "properties": {
                                      "count": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "eligible": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "rate": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "count",
                                      "eligible",
                                      "rate"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:count|eligible|rate)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "count",
                                        "eligible",
                                        "rate"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "total",
                                  "html",
                                  "tracked",
                                  "signed"
                                ],
                                "patternProperties": {
                                  "^(?!(?:total|html|tracked|signed)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "total",
                                    "html",
                                    "tracked",
                                    "signed"
                                  ]
                                }
                              },
                              "warmupip": {
                                "type": "object",
                                "properties": {
                                  "delivered": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "opens": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "clicks": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "openRate": {
                                    "type": "number"
                                  },
                                  "clickRate": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "delivered",
                                  "opens",
                                  "clicks",
                                  "openRate",
                                  "clickRate"
                                ],
                                "patternProperties": {
                                  "^(?!(?:delivered|opens|clicks|openRate|clickRate)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "delivered",
                                    "opens",
                                    "clicks",
                                    "openRate",
                                    "clickRate"
                                  ]
                                }
                              },
                              "internalMesh": {
                                "type": "object",
                                "properties": {
                                  "delivered": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "read": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "clicked": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "replied": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "important": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "rescuedFromSpam": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "delivered",
                                  "read",
                                  "clicked",
                                  "replied",
                                  "important",
                                  "rescuedFromSpam"
                                ],
                                "patternProperties": {
                                  "^(?!(?:delivered|read|clicked|replied|important|rescuedFromSpam)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "delivered",
                                    "read",
                                    "clicked",
                                    "replied",
                                    "important",
                                    "rescuedFromSpam"
                                  ]
                                }
                              },
                              "localTracking": {
                                "type": "object",
                                "properties": {
                                  "opens": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "clicks": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "rawOpens": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "rawClicks": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "opens",
                                  "clicks",
                                  "rawOpens",
                                  "rawClicks"
                                ],
                                "patternProperties": {
                                  "^(?!(?:opens|clicks|rawOpens|rawClicks)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "opens",
                                    "clicks",
                                    "rawOpens",
                                    "rawClicks"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "composition",
                              "warmupip",
                              "internalMesh",
                              "localTracking"
                            ],
                            "patternProperties": {
                              "^(?!(?:composition|warmupip|internalMesh|localTracking)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "composition",
                                "warmupip",
                                "internalMesh",
                                "localTracking"
                              ]
                            }
                          }
                        },
                        "required": [
                          "window",
                          "pool",
                          "desired",
                          "applied",
                          "observed"
                        ],
                        "patternProperties": {
                          "^(?!(?:window|pool|desired|applied|observed)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "window",
                            "pool",
                            "desired",
                            "applied",
                            "observed"
                          ]
                        }
                      },
                      "deliveryIssues": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "bounced",
                                "failed"
                              ]
                            },
                            "receiverEmail": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reason": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "occurredAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "status",
                            "receiverEmail",
                            "reason",
                            "occurredAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:status|receiverEmail|reason|occurredAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "status",
                              "receiverEmail",
                              "reason",
                              "occurredAt"
                            ]
                          }
                        }
                      },
                      "deliveryIssuesPagination": {
                        "type": "object",
                        "properties": {
                          "page": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "pageSize": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalPages": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "page",
                          "pageSize",
                          "total",
                          "totalPages"
                        ],
                        "patternProperties": {
                          "^(?!(?:page|pageSize|total|totalPages)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "page",
                            "pageSize",
                            "total",
                            "totalPages"
                          ]
                        }
                      }
                    },
                    "required": [
                      "summary",
                      "dailyDeliverability",
                      "placementByProvider",
                      "sevenDayEngagement",
                      "deliveryIssues",
                      "deliveryIssuesPagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:summary|dailyDeliverability|placementByProvider|sevenDayEngagement|deliveryIssues|deliveryIssuesPagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "summary",
                        "dailyDeliverability",
                        "placementByProvider",
                        "sevenDayEngagement",
                        "deliveryIssues",
                        "deliveryIssuesPagination"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "windows": {
                        "type": "object",
                        "properties": {
                          "evaluatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "bounceRecentStart": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "bouncePreviousStart": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "replyRecentEnd": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "replyRecentStart": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "replyPreviousStart": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "evaluatedAt",
                          "bounceRecentStart",
                          "bouncePreviousStart",
                          "replyRecentEnd",
                          "replyRecentStart",
                          "replyPreviousStart"
                        ],
                        "patternProperties": {
                          "^(?!(?:evaluatedAt|bounceRecentStart|bouncePreviousStart|replyRecentEnd|replyRecentStart|replyPreviousStart)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "evaluatedAt",
                            "bounceRecentStart",
                            "bouncePreviousStart",
                            "replyRecentEnd",
                            "replyRecentStart",
                            "replyPreviousStart"
                          ]
                        }
                      },
                      "policy": {
                        "type": "object",
                        "properties": {
                          "windowDays": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "replyObservationHours": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "minBounceSends": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "minBounces": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "bounceRatePercent": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "bounceIncreasePoints": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "minReplyContacts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "windowDays",
                          "replyObservationHours",
                          "minBounceSends",
                          "minBounces",
                          "bounceRatePercent",
                          "bounceIncreasePoints",
                          "minReplyContacts"
                        ],
                        "patternProperties": {
                          "^(?!(?:windowDays|replyObservationHours|minBounceSends|minBounces|bounceRatePercent|bounceIncreasePoints|minReplyContacts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "windowDays",
                            "replyObservationHours",
                            "minBounceSends",
                            "minBounces",
                            "bounceRatePercent",
                            "bounceIncreasePoints",
                            "minReplyContacts"
                          ]
                        }
                      },
                      "alerts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "scope": {
                              "type": "string",
                              "enum": [
                                "inbox",
                                "domain"
                              ]
                            },
                            "key": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "label": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "code": {
                              "type": "string",
                              "enum": [
                                "high_bounce_rate",
                                "bounce_rate_increase",
                                "reply_rate_drop"
                              ]
                            },
                            "title": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "description": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "recommendation": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "recent": {
                              "type": "object",
                              "properties": {
                                "sent": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "bounced": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "contacts": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replied": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "sent",
                                "bounced",
                                "contacts",
                                "replied"
                              ],
                              "patternProperties": {
                                "^(?!(?:sent|bounced|contacts|replied)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "sent",
                                  "bounced",
                                  "contacts",
                                  "replied"
                                ]
                              }
                            },
                            "previous": {
                              "type": "object",
                              "properties": {
                                "sent": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "bounced": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "contacts": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replied": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "sent",
                                "bounced",
                                "contacts",
                                "replied"
                              ],
                              "patternProperties": {
                                "^(?!(?:sent|bounced|contacts|replied)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "sent",
                                  "bounced",
                                  "contacts",
                                  "replied"
                                ]
                              }
                            }
                          },
                          "required": [
                            "id",
                            "scope",
                            "key",
                            "label",
                            "code",
                            "title",
                            "description",
                            "recommendation",
                            "recent",
                            "previous"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|scope|key|label|code|title|description|recommendation|recent|previous)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "scope",
                              "key",
                              "label",
                              "code",
                              "title",
                              "description",
                              "recommendation",
                              "recent",
                              "previous"
                            ]
                          }
                        },
                        "maxItems": 100
                      },
                      "totalAlerts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "evaluatedScopes": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "insufficientBounceSamples": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "insufficientReplySamples": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "windows",
                      "policy",
                      "alerts",
                      "totalAlerts",
                      "evaluatedScopes",
                      "insufficientBounceSamples",
                      "insufficientReplySamples"
                    ],
                    "patternProperties": {
                      "^(?!(?:windows|policy|alerts|totalAlerts|evaluatedScopes|insufficientBounceSamples|insufficientReplySamples)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "windows",
                        "policy",
                        "alerts",
                        "totalAlerts",
                        "evaluatedScopes",
                        "insufficientBounceSamples",
                        "insufficientReplySamples"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "inactive",
                                "error",
                                "alert"
                              ]
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365",
                                "other"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "emailAddress",
                            "status",
                            "provider"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|emailAddress|status|provider)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "emailAddress",
                              "status",
                              "provider"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "state": {
                        "type": "string",
                        "enum": [
                          "idle",
                          "running",
                          "completed",
                          "failed"
                        ]
                      },
                      "runId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "step": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "progress": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "records": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Union_"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "state",
                      "runId",
                      "step",
                      "progress",
                      "records",
                      "error"
                    ],
                    "patternProperties": {
                      "^(?!(?:state|runId|step|progress|records|error)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "state",
                        "runId",
                        "step",
                        "progress",
                        "records",
                        "error"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "emailAddress": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "senderFirstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderLastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderReplyTo": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "autoBcc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 5
                      },
                      "autoCc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 5
                      },
                      "dailySendingLimit": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minGapSeconds": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 120,
                            "maximum": 21600
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "initialDailyLimit": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dailyIncrement": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "campaignEmailRampUp": {
                        "type": "boolean"
                      },
                      "signature": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Union_"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "customVariables": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "key": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[a-z][a-z0-9_]*$"
                            },
                            "value": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 10000
                            }
                          },
                          "required": [
                            "key",
                            "value"
                          ],
                          "patternProperties": {
                            "^(?!(?:key|value)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "key",
                              "value"
                            ]
                          }
                        },
                        "maxItems": 50
                      },
                      "customTrackingDomain": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/DomainName"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "customTrackingDomainVerified": {
                        "type": "boolean"
                      },
                      "syncNonCampaignEmails": {
                        "type": "boolean"
                      },
                      "isPlacementTestRecipient": {
                        "type": "boolean"
                      },
                      "canSyncNonCampaignEmails": {
                        "type": "boolean"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "color": {
                              "$ref": "#/$defs/HexColor"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "color",
                            "description",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "color",
                              "description",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "id",
                      "emailAddress",
                      "senderFirstName",
                      "senderLastName",
                      "senderReplyTo",
                      "autoBcc",
                      "autoCc",
                      "dailySendingLimit",
                      "minGapSeconds",
                      "initialDailyLimit",
                      "dailyIncrement",
                      "campaignEmailRampUp",
                      "signature",
                      "customVariables",
                      "customTrackingDomain",
                      "customTrackingDomainVerified",
                      "syncNonCampaignEmails",
                      "isPlacementTestRecipient",
                      "canSyncNonCampaignEmails",
                      "tags"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|emailAddress|senderFirstName|senderLastName|senderReplyTo|autoBcc|autoCc|dailySendingLimit|minGapSeconds|initialDailyLimit|dailyIncrement|campaignEmailRampUp|signature|customVariables|customTrackingDomain|customTrackingDomainVerified|syncNonCampaignEmails|isPlacementTestRecipient|canSyncNonCampaignEmails|tags)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "emailAddress",
                        "senderFirstName",
                        "senderLastName",
                        "senderReplyTo",
                        "autoBcc",
                        "autoCc",
                        "dailySendingLimit",
                        "minGapSeconds",
                        "initialDailyLimit",
                        "dailyIncrement",
                        "campaignEmailRampUp",
                        "signature",
                        "customVariables",
                        "customTrackingDomain",
                        "customTrackingDomainVerified",
                        "syncNonCampaignEmails",
                        "isPlacementTestRecipient",
                        "canSyncNonCampaignEmails",
                        "tags"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "enum": [
                          "hetrixtools"
                        ]
                      },
                      "monitoredValues": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "run": {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "idle",
                              "running",
                              "completed",
                              "failed"
                            ]
                          }
                        },
                        "required": [
                          "runId",
                          "state"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|state)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "state"
                          ]
                        }
                      },
                      "assets": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "sending_domain",
                                "tracking_domain"
                              ]
                            },
                            "value": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "provider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "lastCheckStatus": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastCheckedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "checkedCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "listedCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "warningCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "timeoutCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "lastError": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "listings": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/OpaqueId"
                                  },
                                  "assetId": {
                                    "$ref": "#/$defs/OpaqueId"
                                  },
                                  "listName": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "info": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "detailUrl": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "firstListedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "lastSeenListedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "assetId",
                                  "listName",
                                  "info",
                                  "detailUrl",
                                  "firstListedAt",
                                  "lastSeenListedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|assetId|listName|info|detailUrl|firstListedAt|lastSeenListedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "assetId",
                                    "listName",
                                    "info",
                                    "detailUrl",
                                    "firstListedAt",
                                    "lastSeenListedAt"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "id",
                            "kind",
                            "value",
                            "provider",
                            "lastCheckStatus",
                            "lastCheckedAt",
                            "checkedCount",
                            "listedCount",
                            "warningCount",
                            "timeoutCount",
                            "lastError",
                            "listings"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|kind|value|provider|lastCheckStatus|lastCheckedAt|checkedCount|listedCount|warningCount|timeoutCount|lastError|listings)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "kind",
                              "value",
                              "provider",
                              "lastCheckStatus",
                              "lastCheckedAt",
                              "checkedCount",
                              "listedCount",
                              "warningCount",
                              "timeoutCount",
                              "lastError",
                              "listings"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "provider",
                      "monitoredValues",
                      "run",
                      "assets"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|monitoredValues|run|assets)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "monitoredValues",
                        "run",
                        "assets"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "recipients": {
                        "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"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365",
                                "other"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "emailAddress",
                            "provider"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|emailAddress|provider)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "emailAddress",
                              "provider"
                            ]
                          }
                        }
                      },
                      "tests": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "recipientInboxId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "subject": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "pending",
                                "sending",
                                "observing",
                                "completed",
                                "failed",
                                "send_uncertain"
                              ]
                            },
                            "sentAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "errorMessage": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "observations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "checkpointSeconds": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "placement": {
                                    "type": "string",
                                    "enum": [
                                      "inbox",
                                      "tabs",
                                      "spam",
                                      "other",
                                      "not_found",
                                      "error"
                                    ]
                                  },
                                  "isRead": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "errorMessage": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "observedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  }
                                },
                                "required": [
                                  "checkpointSeconds",
                                  "placement",
                                  "isRead",
                                  "errorMessage",
                                  "observedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:checkpointSeconds|placement|isRead|errorMessage|observedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "checkpointSeconds",
                                    "placement",
                                    "isRead",
                                    "errorMessage",
                                    "observedAt"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "id",
                            "recipientInboxId",
                            "subject",
                            "status",
                            "sentAt",
                            "createdAt",
                            "errorMessage",
                            "observations"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|recipientInboxId|subject|status|sentAt|createdAt|errorMessage|observations)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "recipientInboxId",
                              "subject",
                              "status",
                              "sentAt",
                              "createdAt",
                              "errorMessage",
                              "observations"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "recipients",
                      "tests"
                    ],
                    "patternProperties": {
                      "^(?!(?:recipients|tests)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "recipients",
                        "tests"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365",
                                "other"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "inactive",
                                "error",
                                "alert"
                              ]
                            },
                            "statusDetail": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dailySendingLimit": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "minGapSeconds": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "warmupEnabled": {
                              "type": "boolean"
                            },
                            "dailyWarmupLimit": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tags": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "emailAddress",
                            "provider",
                            "status",
                            "statusDetail",
                            "dailySendingLimit",
                            "minGapSeconds",
                            "warmupEnabled",
                            "dailyWarmupLimit",
                            "tags",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:emailAddress|provider|status|statusDetail|dailySendingLimit|minGapSeconds|warmupEnabled|dailyWarmupLimit|tags|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "emailAddress",
                              "provider",
                              "status",
                              "statusDetail",
                              "dailySendingLimit",
                              "minGapSeconds",
                              "warmupEnabled",
                              "dailyWarmupLimit",
                              "tags",
                              "createdAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "inboxes": {
                            "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"
                                    },
                                    "emailAddress": {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "google_workspace",
                                        "microsoft_365",
                                        "other"
                                      ]
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive",
                                        "error",
                                        "alert"
                                      ]
                                    },
                                    "statusDetail": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "createdAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "updatedAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "senderFirstName": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "senderLastName": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "dailySendingLimit": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "minGapSeconds": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "warmupEnabled": {
                                      "type": "boolean"
                                    },
                                    "warmupReputationScore": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "tags": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64
                                          },
                                          "name": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 100
                                          },
                                          "color": {
                                            "$ref": "#/$defs/HexColor"
                                          },
                                          "description": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "maxLength": 500
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "createdAt": {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          "updatedAt": {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color",
                                          "description",
                                          "createdAt",
                                          "updatedAt"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "id",
                                            "name",
                                            "color",
                                            "description",
                                            "createdAt",
                                            "updatedAt"
                                          ]
                                        }
                                      }
                                    },
                                    "deliveryStatus": {
                                      "type": "object",
                                      "properties": {
                                        "state": {
                                          "type": "string",
                                          "enum": [
                                            "ok",
                                            "degraded",
                                            "blocked",
                                            "unknown"
                                          ]
                                        },
                                        "detail": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/ShortText"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "state",
                                        "detail"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:state|detail)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "state",
                                          "detail"
                                        ]
                                      }
                                    },
                                    "dnsRecords": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/Union_"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "recipientBounceCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "senderBounceCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "unclassifiedBounceCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "emailAddress",
                                    "provider",
                                    "status",
                                    "statusDetail",
                                    "createdAt",
                                    "updatedAt",
                                    "senderFirstName",
                                    "senderLastName",
                                    "dailySendingLimit",
                                    "minGapSeconds",
                                    "warmupEnabled",
                                    "warmupReputationScore",
                                    "tags",
                                    "deliveryStatus"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|emailAddress|provider|status|statusDetail|createdAt|updatedAt|senderFirstName|senderLastName|dailySendingLimit|minGapSeconds|warmupEnabled|warmupReputationScore|tags|deliveryStatus|dnsRecords|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "emailAddress",
                                      "provider",
                                      "status",
                                      "statusDetail",
                                      "createdAt",
                                      "updatedAt",
                                      "senderFirstName",
                                      "senderLastName",
                                      "dailySendingLimit",
                                      "minGapSeconds",
                                      "warmupEnabled",
                                      "warmupReputationScore",
                                      "tags",
                                      "deliveryStatus",
                                      "dnsRecords",
                                      "recipientBounceCount",
                                      "senderBounceCount",
                                      "unclassifiedBounceCount"
                                    ]
                                  }
                                }
                              },
                              "pagination": {
                                "type": "object",
                                "properties": {
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "totalPages": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "currentPage": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "pageSize": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "offset": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "hasNextPage": {
                                    "type": "boolean"
                                  },
                                  "hasPreviousPage": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "total",
                                  "totalPages",
                                  "currentPage",
                                  "pageSize",
                                  "offset",
                                  "hasNextPage",
                                  "hasPreviousPage"
                                ],
                                "patternProperties": {
                                  "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "total",
                                    "totalPages",
                                    "currentPage",
                                    "pageSize",
                                    "offset",
                                    "hasNextPage",
                                    "hasPreviousPage"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "items",
                              "pagination"
                            ],
                            "patternProperties": {
                              "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "items",
                                "pagination"
                              ]
                            }
                          },
                          "stats": {
                            "type": "object",
                            "properties": {
                              "totalInboxes": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalDomains": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "warmupCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "errorCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "alertCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "totalInboxes",
                              "totalDomains",
                              "warmupCount",
                              "errorCount",
                              "alertCount"
                            ],
                            "patternProperties": {
                              "^(?!(?:totalInboxes|totalDomains|warmupCount|errorCount|alertCount)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "totalInboxes",
                                "totalDomains",
                                "warmupCount",
                                "errorCount",
                                "alertCount"
                              ]
                            }
                          }
                        },
                        "required": [
                          "inboxes",
                          "stats"
                        ],
                        "patternProperties": {
                          "^(?!(?:inboxes|stats)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "inboxes",
                            "stats"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365",
                                    "other"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive",
                                    "error",
                                    "alert"
                                  ]
                                },
                                "statusDetail": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "senderFirstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "senderLastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dailySendingLimit": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "minGapSeconds": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "warmupEnabled": {
                                  "type": "boolean"
                                },
                                "warmupReputationScore": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "tags": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64
                                      },
                                      "name": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      },
                                      "color": {
                                        "$ref": "#/$defs/HexColor"
                                      },
                                      "description": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 500
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "createdAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "updatedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color",
                                      "description",
                                      "createdAt",
                                      "updatedAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "name",
                                        "color",
                                        "description",
                                        "createdAt",
                                        "updatedAt"
                                      ]
                                    }
                                  }
                                },
                                "deliveryStatus": {
                                  "type": "object",
                                  "properties": {
                                    "state": {
                                      "type": "string",
                                      "enum": [
                                        "ok",
                                        "degraded",
                                        "blocked",
                                        "unknown"
                                      ]
                                    },
                                    "detail": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "state",
                                    "detail"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:state|detail)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "state",
                                      "detail"
                                    ]
                                  }
                                },
                                "dnsRecords": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Union_"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "recipientBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "senderBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "unclassifiedBounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "provider",
                                "status",
                                "statusDetail",
                                "createdAt",
                                "updatedAt",
                                "senderFirstName",
                                "senderLastName",
                                "dailySendingLimit",
                                "minGapSeconds",
                                "warmupEnabled",
                                "warmupReputationScore",
                                "tags",
                                "deliveryStatus"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|provider|status|statusDetail|createdAt|updatedAt|senderFirstName|senderLastName|dailySendingLimit|minGapSeconds|warmupEnabled|warmupReputationScore|tags|deliveryStatus|dnsRecords|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "provider",
                                  "status",
                                  "statusDetail",
                                  "createdAt",
                                  "updatedAt",
                                  "senderFirstName",
                                  "senderLastName",
                                  "dailySendingLimit",
                                  "minGapSeconds",
                                  "warmupEnabled",
                                  "warmupReputationScore",
                                  "tags",
                                  "deliveryStatus",
                                  "dnsRecords",
                                  "recipientBounceCount",
                                  "senderBounceCount",
                                  "unclassifiedBounceCount"
                                ]
                              }
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalPages": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "currentPage": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pageSize": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "hasNextPage": {
                                "type": "boolean"
                              },
                              "hasPreviousPage": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "total",
                              "totalPages",
                              "currentPage",
                              "pageSize",
                              "offset",
                              "hasNextPage",
                              "hasPreviousPage"
                            ],
                            "patternProperties": {
                              "^(?!(?:total|totalPages|currentPage|pageSize|offset|hasNextPage|hasPreviousPage)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "total",
                                "totalPages",
                                "currentPage",
                                "pageSize",
                                "offset",
                                "hasNextPage",
                                "hasPreviousPage"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "totalInboxes": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalDomains": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "warmupCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "errorCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "alertCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "totalInboxes",
                          "totalDomains",
                          "warmupCount",
                          "errorCount",
                          "alertCount"
                        ],
                        "patternProperties": {
                          "^(?!(?:totalInboxes|totalDomains|warmupCount|errorCount|alertCount)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "totalInboxes",
                            "totalDomains",
                            "warmupCount",
                            "errorCount",
                            "alertCount"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "dailySentEmails": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "sendLimitToday": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "sendLimitTarget": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sendRampDaysRemaining": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalWarmupEmails": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "initialWarmupEmails": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "warmupLimitToday": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "warmupLimitTarget": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "warmupRampDaysRemaining": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "warmupEmailDeliverability": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "replyRate": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "totalCampaigns": {
                            "$ref": "#/$defs/ShortText"
                          }
                        },
                        "required": [
                          "dailySentEmails",
                          "sendLimitToday",
                          "sendLimitTarget",
                          "sendRampDaysRemaining",
                          "totalWarmupEmails",
                          "initialWarmupEmails",
                          "warmupLimitToday",
                          "warmupLimitTarget",
                          "warmupRampDaysRemaining",
                          "warmupEmailDeliverability",
                          "replyRate",
                          "totalCampaigns"
                        ],
                        "patternProperties": {
                          "^(?!(?:dailySentEmails|sendLimitToday|sendLimitTarget|sendRampDaysRemaining|totalWarmupEmails|initialWarmupEmails|warmupLimitToday|warmupLimitTarget|warmupRampDaysRemaining|warmupEmailDeliverability|replyRate|totalCampaigns)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "dailySentEmails",
                            "sendLimitToday",
                            "sendLimitTarget",
                            "sendRampDaysRemaining",
                            "totalWarmupEmails",
                            "initialWarmupEmails",
                            "warmupLimitToday",
                            "warmupLimitTarget",
                            "warmupRampDaysRemaining",
                            "warmupEmailDeliverability",
                            "replyRate",
                            "totalCampaigns"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "inboxId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "stats": {
                                  "type": "object",
                                  "properties": {
                                    "dailySentEmails": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "sendLimitToday": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "sendLimitTarget": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "sendRampDaysRemaining": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "totalWarmupEmails": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "initialWarmupEmails": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "warmupLimitToday": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "warmupLimitTarget": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "warmupRampDaysRemaining": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "warmupEmailDeliverability": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "replyRate": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "totalCampaigns": {
                                      "$ref": "#/$defs/ShortText"
                                    }
                                  },
                                  "required": [
                                    "dailySentEmails",
                                    "sendLimitToday",
                                    "sendLimitTarget",
                                    "sendRampDaysRemaining",
                                    "totalWarmupEmails",
                                    "initialWarmupEmails",
                                    "warmupLimitToday",
                                    "warmupLimitTarget",
                                    "warmupRampDaysRemaining",
                                    "warmupEmailDeliverability",
                                    "replyRate",
                                    "totalCampaigns"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:dailySentEmails|sendLimitToday|sendLimitTarget|sendRampDaysRemaining|totalWarmupEmails|initialWarmupEmails|warmupLimitToday|warmupLimitTarget|warmupRampDaysRemaining|warmupEmailDeliverability|replyRate|totalCampaigns)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "dailySentEmails",
                                      "sendLimitToday",
                                      "sendLimitTarget",
                                      "sendRampDaysRemaining",
                                      "totalWarmupEmails",
                                      "initialWarmupEmails",
                                      "warmupLimitToday",
                                      "warmupLimitTarget",
                                      "warmupRampDaysRemaining",
                                      "warmupEmailDeliverability",
                                      "replyRate",
                                      "totalCampaigns"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "inboxId",
                                "stats"
                              ],
                              "patternProperties": {
                                "^(?!(?:inboxId|stats)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "inboxId",
                                  "stats"
                                ]
                              }
                            },
                            "maxItems": 100
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "type": "object",
                            "properties": {
                              "totalLeads": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "leadsContacted": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "leadsContactedPercentage": {
                                "type": "number"
                              },
                              "totalEmailsSent": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "replyCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "replyCountWithOOO": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "replyRate": {
                                "type": "number"
                              },
                              "replyRateWithOOO": {
                                "type": "number"
                              },
                              "positiveReplyCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "positiveReplyRate": {
                                "type": "number"
                              },
                              "bounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "bounceRate": {
                                "type": "number"
                              },
                              "newLeadsContacted": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalCompletedLeads": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "recipientBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "senderBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unclassifiedBounceCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "totalLeads",
                              "leadsContacted",
                              "leadsContactedPercentage",
                              "totalEmailsSent",
                              "replyCount",
                              "replyCountWithOOO",
                              "replyRate",
                              "replyRateWithOOO",
                              "positiveReplyCount",
                              "positiveReplyRate",
                              "bounceCount",
                              "bounceRate",
                              "newLeadsContacted",
                              "totalCompletedLeads"
                            ],
                            "patternProperties": {
                              "^(?!(?:totalLeads|leadsContacted|leadsContactedPercentage|totalEmailsSent|replyCount|replyCountWithOOO|replyRate|replyRateWithOOO|positiveReplyCount|positiveReplyRate|bounceCount|bounceRate|newLeadsContacted|totalCompletedLeads|recipientBounceCount|senderBounceCount|unclassifiedBounceCount)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "totalLeads",
                                "leadsContacted",
                                "leadsContactedPercentage",
                                "totalEmailsSent",
                                "replyCount",
                                "replyCountWithOOO",
                                "replyRate",
                                "replyRateWithOOO",
                                "positiveReplyCount",
                                "positiveReplyRate",
                                "bounceCount",
                                "bounceRate",
                                "newLeadsContacted",
                                "totalCompletedLeads",
                                "recipientBounceCount",
                                "senderBounceCount",
                                "unclassifiedBounceCount"
                              ]
                            }
                          },
                          "dailyEmailSent": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "newLead": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "followUp": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "newLead",
                                "followUp"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|newLead|followUp)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "newLead",
                                  "followUp"
                                ]
                              }
                            }
                          },
                          "dailyMetrics": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "replyCountWithOOO": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replyCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "positiveReplyCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "bounceCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "replyCountWithOOO",
                                "replyCount",
                                "positiveReplyCount",
                                "bounceCount"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|replyCountWithOOO|replyCount|positiveReplyCount|bounceCount)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "replyCountWithOOO",
                                  "replyCount",
                                  "positiveReplyCount",
                                  "bounceCount"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "summary",
                          "dailyEmailSent",
                          "dailyMetrics"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|dailyEmailSent|dailyMetrics)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "dailyEmailSent",
                            "dailyMetrics"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "type": "object",
                            "properties": {
                              "receivedBySeeds": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "warmupEmailsSent": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "sentByUs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "neverArrived": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "awaitingConfirmation": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "landedInInbox": {
                                "type": "number"
                              },
                              "landedInInboxCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "landedInSpam": {
                                "type": "number"
                              },
                              "landedInSpamCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "landedInTabs": {
                                "type": "number"
                              },
                              "landedInTabsCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "followUp": {
                                "type": "object",
                                "properties": {
                                  "windowMinutes": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "eligible": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "observed": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "inbox": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "spam": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "tabs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "unavailable": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "pending": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "inboxRate": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "spamRate": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "tabsRate": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "windowMinutes",
                                  "eligible",
                                  "observed",
                                  "inbox",
                                  "spam",
                                  "tabs",
                                  "unavailable",
                                  "pending",
                                  "inboxRate",
                                  "spamRate",
                                  "tabsRate"
                                ],
                                "patternProperties": {
                                  "^(?!(?:windowMinutes|eligible|observed|inbox|spam|tabs|unavailable|pending|inboxRate|spamRate|tabsRate)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "windowMinutes",
                                    "eligible",
                                    "observed",
                                    "inbox",
                                    "spam",
                                    "tabs",
                                    "unavailable",
                                    "pending",
                                    "inboxRate",
                                    "spamRate",
                                    "tabsRate"
                                  ]
                                }
                              },
                              "bouncedCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "seedReplies": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "receivedBySeeds",
                              "warmupEmailsSent",
                              "sentByUs",
                              "neverArrived",
                              "awaitingConfirmation",
                              "landedInInbox",
                              "landedInInboxCount",
                              "landedInSpam",
                              "landedInSpamCount",
                              "landedInTabs",
                              "landedInTabsCount",
                              "followUp",
                              "bouncedCount",
                              "seedReplies"
                            ],
                            "patternProperties": {
                              "^(?!(?:receivedBySeeds|warmupEmailsSent|sentByUs|neverArrived|awaitingConfirmation|landedInInbox|landedInInboxCount|landedInSpam|landedInSpamCount|landedInTabs|landedInTabsCount|followUp|bouncedCount|seedReplies)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "receivedBySeeds",
                                "warmupEmailsSent",
                                "sentByUs",
                                "neverArrived",
                                "awaitingConfirmation",
                                "landedInInbox",
                                "landedInInboxCount",
                                "landedInSpam",
                                "landedInSpamCount",
                                "landedInTabs",
                                "landedInTabsCount",
                                "followUp",
                                "bouncedCount",
                                "seedReplies"
                              ]
                            }
                          },
                          "dailyDeliverability": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "sent": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "received": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inbox": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "spam": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "tabs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "followUpEligible": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "followUpUnavailable": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "sent",
                                "received",
                                "inbox",
                                "spam",
                                "tabs",
                                "followUpEligible",
                                "followUpUnavailable"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|sent|received|inbox|spam|tabs|followUpEligible|followUpUnavailable)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "sent",
                                  "received",
                                  "inbox",
                                  "spam",
                                  "tabs",
                                  "followUpEligible",
                                  "followUpUnavailable"
                                ]
                              }
                            }
                          },
                          "placementByProvider": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "received": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inbox": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "spam": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "tabs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inboxRate": {
                                  "type": "number"
                                },
                                "spamRate": {
                                  "type": "number"
                                },
                                "tabsRate": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "provider",
                                "received",
                                "inbox",
                                "spam",
                                "tabs",
                                "inboxRate",
                                "spamRate",
                                "tabsRate"
                              ],
                              "patternProperties": {
                                "^(?!(?:provider|received|inbox|spam|tabs|inboxRate|spamRate|tabsRate)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "provider",
                                  "received",
                                  "inbox",
                                  "spam",
                                  "tabs",
                                  "inboxRate",
                                  "spamRate",
                                  "tabsRate"
                                ]
                              }
                            }
                          },
                          "sevenDayEngagement": {
                            "type": "object",
                            "properties": {
                              "window": {
                                "type": "object",
                                "properties": {
                                  "from": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "to": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "hours": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "from",
                                  "to",
                                  "hours"
                                ],
                                "patternProperties": {
                                  "^(?!(?:from|to|hours)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "from",
                                    "to",
                                    "hours"
                                  ]
                                }
                              },
                              "pool": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/$defs/OpaqueId"
                                      },
                                      "name": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|name)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "name"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "desired": {
                                "$ref": "#/$defs/Union_"
                              },
                              "applied": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "providerId": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "status": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "desiredPolicy": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/Union_"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "appliedPolicy": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/Union_"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "unsupportedControls": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/$defs/ShortText"
                                      }
                                    },
                                    "lastSyncAt": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "lastSyncError": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "providerId",
                                    "status",
                                    "desiredPolicy",
                                    "appliedPolicy",
                                    "unsupportedControls",
                                    "lastSyncAt",
                                    "lastSyncError"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:providerId|status|desiredPolicy|appliedPolicy|unsupportedControls|lastSyncAt|lastSyncError)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "providerId",
                                      "status",
                                      "desiredPolicy",
                                      "appliedPolicy",
                                      "unsupportedControls",
                                      "lastSyncAt",
                                      "lastSyncError"
                                    ]
                                  }
                                }
                              },
                              "observed": {
                                "type": "object",
                                "properties": {
                                  "composition": {
                                    "type": "object",
                                    "properties": {
                                      "total": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "html": {
                                        "type": "object",
                                        "properties": {
                                          "count": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "rate": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "count",
                                          "rate"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:count|rate)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "count",
                                            "rate"
                                          ]
                                        }
                                      },
                                      "tracked": {
                                        "type": "object",
                                        "properties": {
                                          "count": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "eligible": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "rate": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "count",
                                          "eligible",
                                          "rate"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:count|eligible|rate)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "count",
                                            "eligible",
                                            "rate"
                                          ]
                                        }
                                      },
                                      "signed": {
                                        "type": "object",
                                        "properties": {
                                          "count": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "eligible": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "rate": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "count",
                                          "eligible",
                                          "rate"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:count|eligible|rate)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "count",
                                            "eligible",
                                            "rate"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "total",
                                      "html",
                                      "tracked",
                                      "signed"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:total|html|tracked|signed)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "total",
                                        "html",
                                        "tracked",
                                        "signed"
                                      ]
                                    }
                                  },
                                  "warmupip": {
                                    "type": "object",
                                    "properties": {
                                      "delivered": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "opens": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "clicks": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "openRate": {
                                        "type": "number"
                                      },
                                      "clickRate": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "delivered",
                                      "opens",
                                      "clicks",
                                      "openRate",
                                      "clickRate"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:delivered|opens|clicks|openRate|clickRate)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "delivered",
                                        "opens",
                                        "clicks",
                                        "openRate",
                                        "clickRate"
                                      ]
                                    }
                                  },
                                  "internalMesh": {
                                    "type": "object",
                                    "properties": {
                                      "delivered": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "read": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "clicked": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "replied": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "important": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "rescuedFromSpam": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "delivered",
                                      "read",
                                      "clicked",
                                      "replied",
                                      "important",
                                      "rescuedFromSpam"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:delivered|read|clicked|replied|important|rescuedFromSpam)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "delivered",
                                        "read",
                                        "clicked",
                                        "replied",
                                        "important",
                                        "rescuedFromSpam"
                                      ]
                                    }
                                  },
                                  "localTracking": {
                                    "type": "object",
                                    "properties": {
                                      "opens": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "clicks": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "rawOpens": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "rawClicks": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "opens",
                                      "clicks",
                                      "rawOpens",
                                      "rawClicks"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:opens|clicks|rawOpens|rawClicks)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "opens",
                                        "clicks",
                                        "rawOpens",
                                        "rawClicks"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "composition",
                                  "warmupip",
                                  "internalMesh",
                                  "localTracking"
                                ],
                                "patternProperties": {
                                  "^(?!(?:composition|warmupip|internalMesh|localTracking)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "composition",
                                    "warmupip",
                                    "internalMesh",
                                    "localTracking"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "window",
                              "pool",
                              "desired",
                              "applied",
                              "observed"
                            ],
                            "patternProperties": {
                              "^(?!(?:window|pool|desired|applied|observed)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "window",
                                "pool",
                                "desired",
                                "applied",
                                "observed"
                              ]
                            }
                          },
                          "deliveryIssues": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "bounced",
                                    "failed"
                                  ]
                                },
                                "receiverEmail": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "reason": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "status",
                                "receiverEmail",
                                "reason",
                                "occurredAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:status|receiverEmail|reason|occurredAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "status",
                                  "receiverEmail",
                                  "reason",
                                  "occurredAt"
                                ]
                              }
                            }
                          },
                          "deliveryIssuesPagination": {
                            "type": "object",
                            "properties": {
                              "page": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pageSize": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalPages": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "page",
                              "pageSize",
                              "total",
                              "totalPages"
                            ],
                            "patternProperties": {
                              "^(?!(?:page|pageSize|total|totalPages)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "page",
                                "pageSize",
                                "total",
                                "totalPages"
                              ]
                            }
                          }
                        },
                        "required": [
                          "summary",
                          "dailyDeliverability",
                          "placementByProvider",
                          "sevenDayEngagement",
                          "deliveryIssues",
                          "deliveryIssuesPagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|dailyDeliverability|placementByProvider|sevenDayEngagement|deliveryIssues|deliveryIssuesPagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "dailyDeliverability",
                            "placementByProvider",
                            "sevenDayEngagement",
                            "deliveryIssues",
                            "deliveryIssuesPagination"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "windows": {
                            "type": "object",
                            "properties": {
                              "evaluatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "bounceRecentStart": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "bouncePreviousStart": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "replyRecentEnd": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "replyRecentStart": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "replyPreviousStart": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "evaluatedAt",
                              "bounceRecentStart",
                              "bouncePreviousStart",
                              "replyRecentEnd",
                              "replyRecentStart",
                              "replyPreviousStart"
                            ],
                            "patternProperties": {
                              "^(?!(?:evaluatedAt|bounceRecentStart|bouncePreviousStart|replyRecentEnd|replyRecentStart|replyPreviousStart)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "evaluatedAt",
                                "bounceRecentStart",
                                "bouncePreviousStart",
                                "replyRecentEnd",
                                "replyRecentStart",
                                "replyPreviousStart"
                              ]
                            }
                          },
                          "policy": {
                            "type": "object",
                            "properties": {
                              "windowDays": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "replyObservationHours": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "minBounceSends": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "minBounces": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "bounceRatePercent": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "bounceIncreasePoints": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "minReplyContacts": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "windowDays",
                              "replyObservationHours",
                              "minBounceSends",
                              "minBounces",
                              "bounceRatePercent",
                              "bounceIncreasePoints",
                              "minReplyContacts"
                            ],
                            "patternProperties": {
                              "^(?!(?:windowDays|replyObservationHours|minBounceSends|minBounces|bounceRatePercent|bounceIncreasePoints|minReplyContacts)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "windowDays",
                                "replyObservationHours",
                                "minBounceSends",
                                "minBounces",
                                "bounceRatePercent",
                                "bounceIncreasePoints",
                                "minReplyContacts"
                              ]
                            }
                          },
                          "alerts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "scope": {
                                  "type": "string",
                                  "enum": [
                                    "inbox",
                                    "domain"
                                  ]
                                },
                                "key": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "label": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "code": {
                                  "type": "string",
                                  "enum": [
                                    "high_bounce_rate",
                                    "bounce_rate_increase",
                                    "reply_rate_drop"
                                  ]
                                },
                                "title": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "description": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "recommendation": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "recent": {
                                  "type": "object",
                                  "properties": {
                                    "sent": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "bounced": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "contacts": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "replied": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "sent",
                                    "bounced",
                                    "contacts",
                                    "replied"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:sent|bounced|contacts|replied)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "sent",
                                      "bounced",
                                      "contacts",
                                      "replied"
                                    ]
                                  }
                                },
                                "previous": {
                                  "type": "object",
                                  "properties": {
                                    "sent": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "bounced": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "contacts": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "replied": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "sent",
                                    "bounced",
                                    "contacts",
                                    "replied"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:sent|bounced|contacts|replied)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "sent",
                                      "bounced",
                                      "contacts",
                                      "replied"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "scope",
                                "key",
                                "label",
                                "code",
                                "title",
                                "description",
                                "recommendation",
                                "recent",
                                "previous"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|scope|key|label|code|title|description|recommendation|recent|previous)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "scope",
                                  "key",
                                  "label",
                                  "code",
                                  "title",
                                  "description",
                                  "recommendation",
                                  "recent",
                                  "previous"
                                ]
                              }
                            },
                            "maxItems": 100
                          },
                          "totalAlerts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "evaluatedScopes": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "insufficientBounceSamples": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "insufficientReplySamples": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "windows",
                          "policy",
                          "alerts",
                          "totalAlerts",
                          "evaluatedScopes",
                          "insufficientBounceSamples",
                          "insufficientReplySamples"
                        ],
                        "patternProperties": {
                          "^(?!(?:windows|policy|alerts|totalAlerts|evaluatedScopes|insufficientBounceSamples|insufficientReplySamples)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "windows",
                            "policy",
                            "alerts",
                            "totalAlerts",
                            "evaluatedScopes",
                            "insufficientBounceSamples",
                            "insufficientReplySamples"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive",
                                    "error",
                                    "alert"
                                  ]
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365",
                                    "other"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "status",
                                "provider"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|status|provider)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "status",
                                  "provider"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "state": {
                            "type": "string",
                            "enum": [
                              "idle",
                              "running",
                              "completed",
                              "failed"
                            ]
                          },
                          "runId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "step": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "progress": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "records": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Union_"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "error": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "state",
                          "runId",
                          "step",
                          "progress",
                          "records",
                          "error"
                        ],
                        "patternProperties": {
                          "^(?!(?:state|runId|step|progress|records|error)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "state",
                            "runId",
                            "step",
                            "progress",
                            "records",
                            "error"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "emailAddress": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "senderFirstName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "senderLastName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "senderReplyTo": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/EmailAddress"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "autoBcc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "maxItems": 5
                          },
                          "autoCc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "maxItems": 5
                          },
                          "dailySendingLimit": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "minGapSeconds": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 120,
                                "maximum": 21600
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "initialDailyLimit": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dailyIncrement": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 50
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "campaignEmailRampUp": {
                            "type": "boolean"
                          },
                          "signature": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Union_"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "customVariables": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[a-z][a-z0-9_]*$"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 10000
                                }
                              },
                              "required": [
                                "key",
                                "value"
                              ],
                              "patternProperties": {
                                "^(?!(?:key|value)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "key",
                                  "value"
                                ]
                              }
                            },
                            "maxItems": 50
                          },
                          "customTrackingDomain": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/DomainName"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "customTrackingDomainVerified": {
                            "type": "boolean"
                          },
                          "syncNonCampaignEmails": {
                            "type": "boolean"
                          },
                          "isPlacementTestRecipient": {
                            "type": "boolean"
                          },
                          "canSyncNonCampaignEmails": {
                            "type": "boolean"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "color": {
                                  "$ref": "#/$defs/HexColor"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color",
                                "description",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "color",
                                  "description",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "id",
                          "emailAddress",
                          "senderFirstName",
                          "senderLastName",
                          "senderReplyTo",
                          "autoBcc",
                          "autoCc",
                          "dailySendingLimit",
                          "minGapSeconds",
                          "initialDailyLimit",
                          "dailyIncrement",
                          "campaignEmailRampUp",
                          "signature",
                          "customVariables",
                          "customTrackingDomain",
                          "customTrackingDomainVerified",
                          "syncNonCampaignEmails",
                          "isPlacementTestRecipient",
                          "canSyncNonCampaignEmails",
                          "tags"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|emailAddress|senderFirstName|senderLastName|senderReplyTo|autoBcc|autoCc|dailySendingLimit|minGapSeconds|initialDailyLimit|dailyIncrement|campaignEmailRampUp|signature|customVariables|customTrackingDomain|customTrackingDomainVerified|syncNonCampaignEmails|isPlacementTestRecipient|canSyncNonCampaignEmails|tags)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "emailAddress",
                            "senderFirstName",
                            "senderLastName",
                            "senderReplyTo",
                            "autoBcc",
                            "autoCc",
                            "dailySendingLimit",
                            "minGapSeconds",
                            "initialDailyLimit",
                            "dailyIncrement",
                            "campaignEmailRampUp",
                            "signature",
                            "customVariables",
                            "customTrackingDomain",
                            "customTrackingDomainVerified",
                            "syncNonCampaignEmails",
                            "isPlacementTestRecipient",
                            "canSyncNonCampaignEmails",
                            "tags"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "enum": [
                              "hetrixtools"
                            ]
                          },
                          "monitoredValues": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "run": {
                            "type": "object",
                            "properties": {
                              "runId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/OpaqueId"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "idle",
                                  "running",
                                  "completed",
                                  "failed"
                                ]
                              }
                            },
                            "required": [
                              "runId",
                              "state"
                            ],
                            "patternProperties": {
                              "^(?!(?:runId|state)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "runId",
                                "state"
                              ]
                            }
                          },
                          "assets": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "sending_domain",
                                    "tracking_domain"
                                  ]
                                },
                                "value": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "lastCheckStatus": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastCheckedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "checkedCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "listedCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "warningCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "timeoutCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "lastError": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "listings": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/$defs/OpaqueId"
                                      },
                                      "assetId": {
                                        "$ref": "#/$defs/OpaqueId"
                                      },
                                      "listName": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "info": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "detailUrl": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "firstListedAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "lastSeenListedAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "assetId",
                                      "listName",
                                      "info",
                                      "detailUrl",
                                      "firstListedAt",
                                      "lastSeenListedAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|assetId|listName|info|detailUrl|firstListedAt|lastSeenListedAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "assetId",
                                        "listName",
                                        "info",
                                        "detailUrl",
                                        "firstListedAt",
                                        "lastSeenListedAt"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "kind",
                                "value",
                                "provider",
                                "lastCheckStatus",
                                "lastCheckedAt",
                                "checkedCount",
                                "listedCount",
                                "warningCount",
                                "timeoutCount",
                                "lastError",
                                "listings"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|kind|value|provider|lastCheckStatus|lastCheckedAt|checkedCount|listedCount|warningCount|timeoutCount|lastError|listings)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "kind",
                                  "value",
                                  "provider",
                                  "lastCheckStatus",
                                  "lastCheckedAt",
                                  "checkedCount",
                                  "listedCount",
                                  "warningCount",
                                  "timeoutCount",
                                  "lastError",
                                  "listings"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "provider",
                          "monitoredValues",
                          "run",
                          "assets"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|monitoredValues|run|assets)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "monitoredValues",
                            "run",
                            "assets"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "recipients": {
                            "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365",
                                    "other"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "provider"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|provider)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "provider"
                                ]
                              }
                            }
                          },
                          "tests": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "recipientInboxId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "subject": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "pending",
                                    "sending",
                                    "observing",
                                    "completed",
                                    "failed",
                                    "send_uncertain"
                                  ]
                                },
                                "sentAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "errorMessage": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "observations": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "checkpointSeconds": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "placement": {
                                        "type": "string",
                                        "enum": [
                                          "inbox",
                                          "tabs",
                                          "spam",
                                          "other",
                                          "not_found",
                                          "error"
                                        ]
                                      },
                                      "isRead": {
                                        "anyOf": [
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "errorMessage": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "observedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      }
                                    },
                                    "required": [
                                      "checkpointSeconds",
                                      "placement",
                                      "isRead",
                                      "errorMessage",
                                      "observedAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:checkpointSeconds|placement|isRead|errorMessage|observedAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "checkpointSeconds",
                                        "placement",
                                        "isRead",
                                        "errorMessage",
                                        "observedAt"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "recipientInboxId",
                                "subject",
                                "status",
                                "sentAt",
                                "createdAt",
                                "errorMessage",
                                "observations"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|recipientInboxId|subject|status|sentAt|createdAt|errorMessage|observations)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "recipientInboxId",
                                  "subject",
                                  "status",
                                  "sentAt",
                                  "createdAt",
                                  "errorMessage",
                                  "observations"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "recipients",
                          "tests"
                        ],
                        "patternProperties": {
                          "^(?!(?:recipients|tests)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "recipients",
                            "tests"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365",
                                    "other"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive",
                                    "error",
                                    "alert"
                                  ]
                                },
                                "statusDetail": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dailySendingLimit": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "minGapSeconds": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "warmupEnabled": {
                                  "type": "boolean"
                                },
                                "dailyWarmupLimit": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "tags": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "emailAddress",
                                "provider",
                                "status",
                                "statusDetail",
                                "dailySendingLimit",
                                "minGapSeconds",
                                "warmupEnabled",
                                "dailyWarmupLimit",
                                "tags",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:emailAddress|provider|status|statusDetail|dailySendingLimit|minGapSeconds|warmupEnabled|dailyWarmupLimit|tags|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "emailAddress",
                                  "provider",
                                  "status",
                                  "statusDetail",
                                  "dailySendingLimit",
                                  "minGapSeconds",
                                  "warmupEnabled",
                                  "dailyWarmupLimit",
                                  "tags",
                                  "createdAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_inbox_health"
      },
      "scopes": [
        "inbox:read",
        "analytics:read",
        "unibox:read"
      ],
      "bundles": [
        "inbox_operations"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxes.list",
        "inboxes.stats",
        "inboxes.rowStats",
        "inboxes.batchRowStats",
        "inboxes.accountAnalytics",
        "inboxes.warmupAnalytics",
        "inboxes.recentHealth",
        "inboxes.subscriptionTargets",
        "inboxes.dnsCheckStatus",
        "inboxSettings.get",
        "inboxDeliverability.get",
        "inboxPlacementDiagnostics.get",
        "inboxBulk.export"
      ],
      "invocations": [
        {
          "operationId": "inboxes.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.stats",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/stats",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.rowStats",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/row-stats",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.batchRowStats",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/row-stats/batch",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.accountAnalytics",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/account-analytics",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.warmupAnalytics",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/warmup-analytics",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.recentHealth",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/recent-health",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.subscriptionTargets",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/subscription-targets",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.dnsCheckStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/dns-check-status",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxSettings.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/settings",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxDeliverability.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/deliverability",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxPlacementDiagnostics.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/placement-diagnostics",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxBulk.export",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/bulk/export",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "overview"
                ]
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "sortBy": {
                "type": "string",
                "enum": [
                  "emailAddress",
                  "status",
                  "dailySendingLimit",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortOrder": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              },
              "provider": {
                "type": "string",
                "enum": [
                  "all",
                  "google_workspace",
                  "microsoft_365",
                  "other"
                ]
              },
              "statuses": {
                "$ref": "#/$defs/ShortText"
              },
              "tagIds": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|offset|limit|search|sortBy|sortOrder|provider|statuses|tagIds)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "offset",
                    "limit",
                    "search",
                    "sortBy",
                    "sortOrder",
                    "provider",
                    "statuses",
                    "tagIds"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
                ]
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "$ref": "#/$defs/ShortText"
              },
              "sortBy": {
                "type": "string",
                "enum": [
                  "emailAddress",
                  "status",
                  "dailySendingLimit",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortOrder": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              },
              "provider": {
                "type": "string",
                "enum": [
                  "all",
                  "google_workspace",
                  "microsoft_365",
                  "other"
                ]
              },
              "statuses": {
                "$ref": "#/$defs/ShortText"
              },
              "tagIds": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|offset|limit|search|sortBy|sortOrder|provider|statuses|tagIds)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "offset",
                    "limit",
                    "search",
                    "sortBy",
                    "sortOrder",
                    "provider",
                    "statuses",
                    "tagIds"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "stats"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "row_stats"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "batch_row_stats"
                ]
              },
              "inboxIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxIds)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxIds"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "account_analytics"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "startDate": {
                "$ref": "#/$defs/LocalDate"
              },
              "endDate": {
                "$ref": "#/$defs/LocalDate"
              },
              "recipientProviders": {
                "$ref": "#/$defs/ShortText"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|startDate|endDate|recipientProviders)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "startDate",
                    "endDate",
                    "recipientProviders"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "warmup_analytics"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "startDate": {
                "$ref": "#/$defs/LocalDate"
              },
              "endDate": {
                "$ref": "#/$defs/LocalDate"
              },
              "issuePage": {
                "type": "integer",
                "minimum": 1
              },
              "issuePageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|startDate|endDate|issuePage|issuePageSize)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "startDate",
                    "endDate",
                    "issuePage",
                    "issuePageSize"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "recent_health"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "subscription_targets"
                ]
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "dns_status"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "settings"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "deliverability"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "placement_diagnostics"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "export"
                ]
              },
              "inboxIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 500
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxIds)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxIds"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "read_leads",
      "description": "Read leads, their contact points, campaign/list membership views, timelines, and notes. Set view to list (default), get, campaign, lead_list, timeline, search, contact_points, or notes.\n\nUse view=list to page workspace leads (the default); choose get, campaign, lead_list, timeline, search, contact_points, or notes for the corresponding read.\n\nThere is no bulk export; page with bounds instead. Hidden timeline sources are reported, not failures.",
      "inputSchema": {
        "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"
          },
          "view": {
            "type": "string",
            "enum": [
              "list",
              "get",
              "campaign",
              "lead_list",
              "timeline",
              "search",
              "contact_points",
              "notes"
            ]
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "leadListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "query": {
            "type": "string"
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "sortBy": {
            "type": "string",
            "enum": [
              "firstName",
              "lastName",
              "company",
              "createdAt",
              "updatedAt",
              "email",
              "ladder",
              "rank"
            ]
          },
          "sortOrder": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          },
          "assigneeUserIds": {
            "type": "string"
          },
          "cursorAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "cursorId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|view|leadId|leadListId|campaignId|query|offset|sortBy|sortOrder|assigneeUserIds|cursorAt|cursorId|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "view",
            "leadId",
            "leadListId",
            "campaignId",
            "query",
            "offset",
            "sortBy",
            "sortOrder",
            "assigneeUserIds",
            "cursorAt",
            "cursorId",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "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
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "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
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        },
        "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"
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "firstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "company": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "phoneNumber": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "jobTitle": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyWebsiteUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "personalLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "city": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "state": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "country": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "customFieldValues": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "ladder": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rank": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "emails": {
                              "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"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "email",
                                      "phone"
                                    ]
                                  },
                                  "value": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  },
                                  "contactType": {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  "sourceValue": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "position": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "active",
                                      "bad"
                                    ]
                                  },
                                  "badReason": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "badAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "kind",
                                  "value",
                                  "contactType",
                                  "sourceValue",
                                  "position",
                                  "status",
                                  "badReason",
                                  "badAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "kind",
                                    "value",
                                    "contactType",
                                    "sourceValue",
                                    "position",
                                    "status",
                                    "badReason",
                                    "badAt"
                                  ]
                                }
                              }
                            },
                            "phones": {
                              "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"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "email",
                                      "phone"
                                    ]
                                  },
                                  "value": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  },
                                  "contactType": {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  "sourceValue": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "position": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "active",
                                      "bad"
                                    ]
                                  },
                                  "badReason": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "badAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "kind",
                                  "value",
                                  "contactType",
                                  "sourceValue",
                                  "position",
                                  "status",
                                  "badReason",
                                  "badAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "kind",
                                    "value",
                                    "contactType",
                                    "sourceValue",
                                    "position",
                                    "status",
                                    "badReason",
                                    "badAt"
                                  ]
                                }
                              }
                            },
                            "activity": {
                              "type": "object",
                              "properties": {
                                "campaignCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "emailCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replyCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "callCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "recordingCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "lastActivityAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "campaignCount",
                                "emailCount",
                                "replyCount",
                                "callCount",
                                "recordingCount",
                                "lastActivityAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:campaignCount|emailCount|replyCount|callCount|recordingCount|lastActivityAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "campaignCount",
                                  "emailCount",
                                  "replyCount",
                                  "callCount",
                                  "recordingCount",
                                  "lastActivityAt"
                                ]
                              }
                            }
                          },
                          "required": [
                            "id",
                            "email",
                            "firstName",
                            "lastName",
                            "company",
                            "phoneNumber",
                            "jobTitle",
                            "companyWebsiteUrl",
                            "personalLinkedInUrl",
                            "companyLinkedInUrl",
                            "city",
                            "state",
                            "country",
                            "timezone",
                            "customFieldValues",
                            "ladder",
                            "rank",
                            "createdAt",
                            "updatedAt",
                            "emails",
                            "phones",
                            "activity"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|email|firstName|lastName|company|phoneNumber|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues|ladder|rank|createdAt|updatedAt|emails|phones|activity)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "email",
                              "firstName",
                              "lastName",
                              "company",
                              "phoneNumber",
                              "jobTitle",
                              "companyWebsiteUrl",
                              "personalLinkedInUrl",
                              "companyLinkedInUrl",
                              "city",
                              "state",
                              "country",
                              "timezone",
                              "customFieldValues",
                              "ladder",
                              "rank",
                              "createdAt",
                              "updatedAt",
                              "emails",
                              "phones",
                              "activity"
                            ]
                          }
                        }
                      },
                      "activityVisibility": {
                        "type": "object",
                        "properties": {
                          "campaigns": {
                            "type": "boolean"
                          },
                          "replies": {
                            "type": "boolean"
                          },
                          "calls": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "campaigns",
                          "replies",
                          "calls"
                        ],
                        "patternProperties": {
                          "^(?!(?:campaigns|replies|calls)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "campaigns",
                            "replies",
                            "calls"
                          ]
                        }
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "offset",
                          "limit",
                          "total"
                        ],
                        "patternProperties": {
                          "^(?!(?:offset|limit|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "offset",
                            "limit",
                            "total"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "activityVisibility",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|activityVisibility|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "activityVisibility",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "organizationId": {
                        "type": "string"
                      },
                      "emailAddress": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phoneNumber": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phoneBase": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phoneExtension": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "firstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "companyName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "companyWebsiteUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "jobTitle": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "locality": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "region": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "country": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "timezone": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "personalLinkedInUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "companyLinkedInUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "customFieldValues": {
                        "anyOf": [
                          {
                            "type": "object",
                            "additionalProperties": true
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "organizationId",
                      "emailAddress",
                      "phoneNumber",
                      "phoneBase",
                      "phoneExtension",
                      "firstName",
                      "lastName",
                      "companyName",
                      "companyWebsiteUrl",
                      "jobTitle",
                      "locality",
                      "region",
                      "country",
                      "timezone",
                      "personalLinkedInUrl",
                      "companyLinkedInUrl",
                      "source",
                      "customFieldValues",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|organizationId|emailAddress|phoneNumber|phoneBase|phoneExtension|firstName|lastName|companyName|companyWebsiteUrl|jobTitle|locality|region|country|timezone|personalLinkedInUrl|companyLinkedInUrl|source|customFieldValues|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "organizationId",
                        "emailAddress",
                        "phoneNumber",
                        "phoneBase",
                        "phoneExtension",
                        "firstName",
                        "lastName",
                        "companyName",
                        "companyWebsiteUrl",
                        "jobTitle",
                        "locality",
                        "region",
                        "country",
                        "timezone",
                        "personalLinkedInUrl",
                        "companyLinkedInUrl",
                        "source",
                        "customFieldValues",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "leadId": {
                              "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"
                                }
                              ]
                            },
                            "email": {
                              "$ref": "#/$defs/LeadStoredText"
                            },
                            "firstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "company": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "jobTitle": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyDomain": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyWebsiteUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "personalLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "city": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "state": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "country": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "customFieldValues": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "not_contacted",
                                "contacted",
                                "completed",
                                "task_pending",
                                "task_failed",
                                "paused",
                                "out_of_office",
                                "bounced",
                                "unsubscribed",
                                "ladder_queued",
                                "moved_to_subsequence"
                              ]
                            },
                            "bounceCategory": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "recipient",
                                    "sender"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "recipientEsp": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "emailSecurityGateway": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "assignees": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "userId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "email": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "image": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "isFormerMember": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "userId",
                                  "name",
                                  "email",
                                  "image",
                                  "isFormerMember"
                                ],
                                "patternProperties": {
                                  "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "userId",
                                    "name",
                                    "email",
                                    "image",
                                    "isFormerMember"
                                  ]
                                }
                              }
                            },
                            "labels": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "hexColor": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "sentiment": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "custom",
                                      "default"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "hexColor",
                                  "sentiment",
                                  "type"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "name",
                                    "hexColor",
                                    "sentiment",
                                    "type"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "id",
                            "leadId",
                            "email",
                            "firstName",
                            "lastName",
                            "company",
                            "jobTitle",
                            "companyDomain",
                            "companyWebsiteUrl",
                            "personalLinkedInUrl",
                            "companyLinkedInUrl",
                            "city",
                            "state",
                            "country",
                            "timezone",
                            "customFieldValues",
                            "status",
                            "recipientEsp",
                            "emailSecurityGateway",
                            "assignees",
                            "labels"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|leadId|email|firstName|lastName|company|jobTitle|companyDomain|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues|status|bounceCategory|recipientEsp|emailSecurityGateway|assignees|labels)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "leadId",
                              "email",
                              "firstName",
                              "lastName",
                              "company",
                              "jobTitle",
                              "companyDomain",
                              "companyWebsiteUrl",
                              "personalLinkedInUrl",
                              "companyLinkedInUrl",
                              "city",
                              "state",
                              "country",
                              "timezone",
                              "customFieldValues",
                              "status",
                              "bounceCategory",
                              "recipientEsp",
                              "emailSecurityGateway",
                              "assignees",
                              "labels"
                            ]
                          }
                        }
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "offset",
                          "limit",
                          "total"
                        ],
                        "patternProperties": {
                          "^(?!(?:offset|limit|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "offset",
                            "limit",
                            "total"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "firstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "company": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "phoneNumber": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "jobTitle": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyWebsiteUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "personalLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyLinkedInUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "city": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "state": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "country": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "customFieldValues": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "ladder": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rank": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "emails": {
                              "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"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "email",
                                      "phone"
                                    ]
                                  },
                                  "value": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  },
                                  "contactType": {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  "sourceValue": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "position": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "active",
                                      "bad"
                                    ]
                                  },
                                  "badReason": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "badAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "kind",
                                  "value",
                                  "contactType",
                                  "sourceValue",
                                  "position",
                                  "status",
                                  "badReason",
                                  "badAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "kind",
                                    "value",
                                    "contactType",
                                    "sourceValue",
                                    "position",
                                    "status",
                                    "badReason",
                                    "badAt"
                                  ]
                                }
                              }
                            },
                            "phones": {
                              "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"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "email",
                                      "phone"
                                    ]
                                  },
                                  "value": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  },
                                  "contactType": {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  "sourceValue": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "position": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "active",
                                      "bad"
                                    ]
                                  },
                                  "badReason": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "badAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "kind",
                                  "value",
                                  "contactType",
                                  "sourceValue",
                                  "position",
                                  "status",
                                  "badReason",
                                  "badAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "kind",
                                    "value",
                                    "contactType",
                                    "sourceValue",
                                    "position",
                                    "status",
                                    "badReason",
                                    "badAt"
                                  ]
                                }
                              }
                            },
                            "activity": {
                              "type": "object",
                              "properties": {
                                "campaignCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "emailCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replyCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "callCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "recordingCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "lastActivityAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "campaignCount",
                                "emailCount",
                                "replyCount",
                                "callCount",
                                "recordingCount",
                                "lastActivityAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:campaignCount|emailCount|replyCount|callCount|recordingCount|lastActivityAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "campaignCount",
                                  "emailCount",
                                  "replyCount",
                                  "callCount",
                                  "recordingCount",
                                  "lastActivityAt"
                                ]
                              }
                            }
                          },
                          "required": [
                            "id",
                            "email",
                            "firstName",
                            "lastName",
                            "company",
                            "phoneNumber",
                            "jobTitle",
                            "companyWebsiteUrl",
                            "personalLinkedInUrl",
                            "companyLinkedInUrl",
                            "city",
                            "state",
                            "country",
                            "timezone",
                            "customFieldValues",
                            "ladder",
                            "rank",
                            "createdAt",
                            "updatedAt",
                            "emails",
                            "phones",
                            "activity"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|email|firstName|lastName|company|phoneNumber|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues|ladder|rank|createdAt|updatedAt|emails|phones|activity)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "email",
                              "firstName",
                              "lastName",
                              "company",
                              "phoneNumber",
                              "jobTitle",
                              "companyWebsiteUrl",
                              "personalLinkedInUrl",
                              "companyLinkedInUrl",
                              "city",
                              "state",
                              "country",
                              "timezone",
                              "customFieldValues",
                              "ladder",
                              "rank",
                              "createdAt",
                              "updatedAt",
                              "emails",
                              "phones",
                              "activity"
                            ]
                          }
                        }
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "offset",
                          "limit",
                          "total"
                        ],
                        "patternProperties": {
                          "^(?!(?:offset|limit|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "offset",
                            "limit",
                            "total"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items",
                      "pagination"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "pagination"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "events": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "campaign_enrolled"
                                      ]
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "sortId": {
                                  "type": "string"
                                },
                                "campaignId": {
                                  "type": "string"
                                },
                                "campaignName": {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "not_contacted",
                                    "contacted",
                                    "completed",
                                    "task_pending",
                                    "task_failed",
                                    "paused",
                                    "out_of_office",
                                    "bounced",
                                    "unsubscribed",
                                    "ladder_queued",
                                    "moved_to_subsequence"
                                  ]
                                },
                                "bounceCategory": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "recipient",
                                        "sender"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/LeadStoredText"
                                }
                              },
                              "required": [
                                "kind",
                                "occurredAt",
                                "sortId",
                                "campaignId",
                                "campaignName",
                                "status",
                                "emailAddress"
                              ],
                              "patternProperties": {
                                "^(?!(?:kind|occurredAt|sortId|campaignId|campaignName|status|bounceCategory|emailAddress)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "kind",
                                  "occurredAt",
                                  "sortId",
                                  "campaignId",
                                  "campaignName",
                                  "status",
                                  "bounceCategory",
                                  "emailAddress"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "email_sent"
                                      ]
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "sortId": {
                                  "type": "string"
                                },
                                "campaignId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "campaignName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "threadId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "openCount": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "firstOpenedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "occurredAt",
                                "sortId",
                                "campaignId",
                                "campaignName",
                                "threadId",
                                "openCount",
                                "firstOpenedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:kind|occurredAt|sortId|campaignId|campaignName|threadId|openCount|firstOpenedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "kind",
                                  "occurredAt",
                                  "sortId",
                                  "campaignId",
                                  "campaignName",
                                  "threadId",
                                  "openCount",
                                  "firstOpenedAt"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "email_opened"
                                      ]
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "sortId": {
                                  "type": "string"
                                },
                                "campaignName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "openCount": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "occurredAt",
                                "sortId",
                                "campaignName",
                                "openCount"
                              ],
                              "patternProperties": {
                                "^(?!(?:kind|occurredAt|sortId|campaignName|openCount)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "kind",
                                  "occurredAt",
                                  "sortId",
                                  "campaignName",
                                  "openCount"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "email_replied"
                                      ]
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "sortId": {
                                  "type": "string"
                                },
                                "from": {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "snippet": {
                                  "type": "string"
                                },
                                "threadId": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "occurredAt",
                                "sortId",
                                "from",
                                "subject",
                                "snippet",
                                "threadId"
                              ],
                              "patternProperties": {
                                "^(?!(?:kind|occurredAt|sortId|from|subject|snippet|threadId)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "kind",
                                  "occurredAt",
                                  "sortId",
                                  "from",
                                  "subject",
                                  "snippet",
                                  "threadId"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "task"
                                      ]
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "sortId": {
                                  "type": "string"
                                },
                                "title": {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                "completedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "outcome": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "occurredAt",
                                "sortId",
                                "title",
                                "completedAt",
                                "outcome"
                              ],
                              "patternProperties": {
                                "^(?!(?:kind|occurredAt|sortId|title|completedAt|outcome)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "kind",
                                  "occurredAt",
                                  "sortId",
                                  "title",
                                  "completedAt",
                                  "outcome"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "call"
                                      ]
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "sortId": {
                                  "type": "string"
                                },
                                "direction": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "durationSeconds": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "counterpartyPhoneE164": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "repUserId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "repName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "disposition": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "note": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "hasRecording": {
                                  "type": "boolean"
                                },
                                "hasTranscript": {
                                  "type": "boolean"
                                },
                                "aiSummary": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "occurredAt",
                                "sortId",
                                "direction",
                                "status",
                                "durationSeconds",
                                "counterpartyPhoneE164",
                                "repUserId",
                                "repName",
                                "disposition",
                                "note",
                                "hasRecording",
                                "hasTranscript",
                                "aiSummary"
                              ],
                              "patternProperties": {
                                "^(?!(?:kind|occurredAt|sortId|direction|status|durationSeconds|counterpartyPhoneE164|repUserId|repName|disposition|note|hasRecording|hasTranscript|aiSummary)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "kind",
                                  "occurredAt",
                                  "sortId",
                                  "direction",
                                  "status",
                                  "durationSeconds",
                                  "counterpartyPhoneE164",
                                  "repUserId",
                                  "repName",
                                  "disposition",
                                  "note",
                                  "hasRecording",
                                  "hasTranscript",
                                  "aiSummary"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "contact_point"
                                      ]
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "sortId": {
                                  "type": "string"
                                },
                                "pointKind": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "phone"
                                  ]
                                },
                                "value": {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                "badReason": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "occurredAt",
                                "sortId",
                                "pointKind",
                                "value",
                                "badReason"
                              ],
                              "patternProperties": {
                                "^(?!(?:kind|occurredAt|sortId|pointKind|value|badReason)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "kind",
                                  "occurredAt",
                                  "sortId",
                                  "pointKind",
                                  "value",
                                  "badReason"
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "crm_note_pushed"
                                      ]
                                    }
                                  ]
                                },
                                "occurredAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "sortId": {
                                  "type": "string"
                                },
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "sourceKind": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "kind",
                                "occurredAt",
                                "sortId",
                                "provider",
                                "sourceKind"
                              ],
                              "patternProperties": {
                                "^(?!(?:kind|occurredAt|sortId|provider|sourceKind)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "kind",
                                  "occurredAt",
                                  "sortId",
                                  "provider",
                                  "sourceKind"
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "nextCursor": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Cursor"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "hiddenSources": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "undatedEnrollments": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "events",
                      "nextCursor",
                      "hiddenSources",
                      "undatedEnrollments"
                    ],
                    "patternProperties": {
                      "^(?!(?:events|nextCursor|hiddenSources|undatedEnrollments)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "events",
                        "nextCursor",
                        "hiddenSources",
                        "undatedEnrollments"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "leads": {
                        "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"
                            },
                            "firstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "companyName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "jobTitle": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "emailAddress": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "phoneNumber": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "source": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "firstName",
                            "lastName",
                            "companyName",
                            "jobTitle",
                            "emailAddress",
                            "phoneNumber",
                            "source"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|firstName|lastName|companyName|jobTitle|emailAddress|phoneNumber|source)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "firstName",
                              "lastName",
                              "companyName",
                              "jobTitle",
                              "emailAddress",
                              "phoneNumber",
                              "source"
                            ]
                          }
                        },
                        "maxItems": 25
                      }
                    },
                    "required": [
                      "leads"
                    ],
                    "patternProperties": {
                      "^(?!(?:leads)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "leads"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "emails": {
                        "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"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "email",
                                "phone"
                              ]
                            },
                            "value": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "contactType": {
                              "$ref": "#/$defs/LeadStoredText"
                            },
                            "sourceValue": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "position": {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "bad"
                              ]
                            },
                            "badReason": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "badAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "kind",
                            "value",
                            "contactType",
                            "sourceValue",
                            "position",
                            "status",
                            "badReason",
                            "badAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "kind",
                              "value",
                              "contactType",
                              "sourceValue",
                              "position",
                              "status",
                              "badReason",
                              "badAt"
                            ]
                          }
                        }
                      },
                      "phones": {
                        "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"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "email",
                                "phone"
                              ]
                            },
                            "value": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "contactType": {
                              "$ref": "#/$defs/LeadStoredText"
                            },
                            "sourceValue": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "position": {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "bad"
                              ]
                            },
                            "badReason": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "badAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "kind",
                            "value",
                            "contactType",
                            "sourceValue",
                            "position",
                            "status",
                            "badReason",
                            "badAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "kind",
                              "value",
                              "contactType",
                              "sourceValue",
                              "position",
                              "status",
                              "badReason",
                              "badAt"
                            ]
                          }
                        }
                      },
                      "ladder": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "key": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "rank": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "id",
                              "key",
                              "rank"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|key|rank)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "key",
                                "rank"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "emails",
                      "phones",
                      "ladder"
                    ],
                    "patternProperties": {
                      "^(?!(?:emails|phones|ladder)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "emails",
                        "phones",
                        "ladder"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "leadId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "body": {
                              "type": "string"
                            },
                            "authorUserId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "authorName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "leadId",
                            "body",
                            "authorUserId",
                            "authorName",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|leadId|body|authorUserId|authorName|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "leadId",
                              "body",
                              "authorUserId",
                              "authorName",
                              "createdAt"
                            ]
                          }
                        },
                        "maxItems": 50
                      },
                      "nextCursor": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "at": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "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"
                              }
                            },
                            "required": [
                              "at",
                              "id"
                            ],
                            "patternProperties": {
                              "^(?!(?:at|id)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "at",
                                "id"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "items",
                      "nextCursor"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "nextCursor"
                      ]
                    }
                  }
                ]
              },
              {
                "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"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "firstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "company": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "phoneNumber": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "jobTitle": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyWebsiteUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personalLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "city": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "state": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "country": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "timezone": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "customFieldValues": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "ladder": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rank": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "emails": {
                                  "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"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "email",
                                          "phone"
                                        ]
                                      },
                                      "value": {
                                        "$ref": "#/$defs/NonEmptyString"
                                      },
                                      "contactType": {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      "sourceValue": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "position": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "active",
                                          "bad"
                                        ]
                                      },
                                      "badReason": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "badAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "kind",
                                      "value",
                                      "contactType",
                                      "sourceValue",
                                      "position",
                                      "status",
                                      "badReason",
                                      "badAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "kind",
                                        "value",
                                        "contactType",
                                        "sourceValue",
                                        "position",
                                        "status",
                                        "badReason",
                                        "badAt"
                                      ]
                                    }
                                  }
                                },
                                "phones": {
                                  "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"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "email",
                                          "phone"
                                        ]
                                      },
                                      "value": {
                                        "$ref": "#/$defs/NonEmptyString"
                                      },
                                      "contactType": {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      "sourceValue": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "position": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "active",
                                          "bad"
                                        ]
                                      },
                                      "badReason": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "badAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "kind",
                                      "value",
                                      "contactType",
                                      "sourceValue",
                                      "position",
                                      "status",
                                      "badReason",
                                      "badAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "kind",
                                        "value",
                                        "contactType",
                                        "sourceValue",
                                        "position",
                                        "status",
                                        "badReason",
                                        "badAt"
                                      ]
                                    }
                                  }
                                },
                                "activity": {
                                  "type": "object",
                                  "properties": {
                                    "campaignCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "emailCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "replyCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "callCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "recordingCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "lastActivityAt": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "campaignCount",
                                    "emailCount",
                                    "replyCount",
                                    "callCount",
                                    "recordingCount",
                                    "lastActivityAt"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:campaignCount|emailCount|replyCount|callCount|recordingCount|lastActivityAt)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "campaignCount",
                                      "emailCount",
                                      "replyCount",
                                      "callCount",
                                      "recordingCount",
                                      "lastActivityAt"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "email",
                                "firstName",
                                "lastName",
                                "company",
                                "phoneNumber",
                                "jobTitle",
                                "companyWebsiteUrl",
                                "personalLinkedInUrl",
                                "companyLinkedInUrl",
                                "city",
                                "state",
                                "country",
                                "timezone",
                                "customFieldValues",
                                "ladder",
                                "rank",
                                "createdAt",
                                "updatedAt",
                                "emails",
                                "phones",
                                "activity"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|email|firstName|lastName|company|phoneNumber|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues|ladder|rank|createdAt|updatedAt|emails|phones|activity)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "email",
                                  "firstName",
                                  "lastName",
                                  "company",
                                  "phoneNumber",
                                  "jobTitle",
                                  "companyWebsiteUrl",
                                  "personalLinkedInUrl",
                                  "companyLinkedInUrl",
                                  "city",
                                  "state",
                                  "country",
                                  "timezone",
                                  "customFieldValues",
                                  "ladder",
                                  "rank",
                                  "createdAt",
                                  "updatedAt",
                                  "emails",
                                  "phones",
                                  "activity"
                                ]
                              }
                            }
                          },
                          "activityVisibility": {
                            "type": "object",
                            "properties": {
                              "campaigns": {
                                "type": "boolean"
                              },
                              "replies": {
                                "type": "boolean"
                              },
                              "calls": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "campaigns",
                              "replies",
                              "calls"
                            ],
                            "patternProperties": {
                              "^(?!(?:campaigns|replies|calls)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "campaigns",
                                "replies",
                                "calls"
                              ]
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "limit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "offset",
                              "limit",
                              "total"
                            ],
                            "patternProperties": {
                              "^(?!(?:offset|limit|total)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "offset",
                                "limit",
                                "total"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "activityVisibility",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|activityVisibility|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "activityVisibility",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "emailAddress": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phoneNumber": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phoneBase": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phoneExtension": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "firstName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "companyName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "companyWebsiteUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "jobTitle": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "locality": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "region": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "country": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "timezone": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "personalLinkedInUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "companyLinkedInUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "source": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "customFieldValues": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "emailAddress",
                          "phoneNumber",
                          "phoneBase",
                          "phoneExtension",
                          "firstName",
                          "lastName",
                          "companyName",
                          "companyWebsiteUrl",
                          "jobTitle",
                          "locality",
                          "region",
                          "country",
                          "timezone",
                          "personalLinkedInUrl",
                          "companyLinkedInUrl",
                          "source",
                          "customFieldValues",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|organizationId|emailAddress|phoneNumber|phoneBase|phoneExtension|firstName|lastName|companyName|companyWebsiteUrl|jobTitle|locality|region|country|timezone|personalLinkedInUrl|companyLinkedInUrl|source|customFieldValues|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "organizationId",
                            "emailAddress",
                            "phoneNumber",
                            "phoneBase",
                            "phoneExtension",
                            "firstName",
                            "lastName",
                            "companyName",
                            "companyWebsiteUrl",
                            "jobTitle",
                            "locality",
                            "region",
                            "country",
                            "timezone",
                            "personalLinkedInUrl",
                            "companyLinkedInUrl",
                            "source",
                            "customFieldValues",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "leadId": {
                                  "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"
                                    }
                                  ]
                                },
                                "email": {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                "firstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "company": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "jobTitle": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyDomain": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyWebsiteUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personalLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "city": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "state": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "country": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "timezone": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "customFieldValues": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "not_contacted",
                                    "contacted",
                                    "completed",
                                    "task_pending",
                                    "task_failed",
                                    "paused",
                                    "out_of_office",
                                    "bounced",
                                    "unsubscribed",
                                    "ladder_queued",
                                    "moved_to_subsequence"
                                  ]
                                },
                                "bounceCategory": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "recipient",
                                        "sender"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "recipientEsp": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "emailSecurityGateway": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "assignees": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "userId": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "email": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "image": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "isFormerMember": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "userId",
                                      "name",
                                      "email",
                                      "image",
                                      "isFormerMember"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "userId",
                                        "name",
                                        "email",
                                        "image",
                                        "isFormerMember"
                                      ]
                                    }
                                  }
                                },
                                "labels": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "hexColor": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "sentiment": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "custom",
                                          "default"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "hexColor",
                                      "sentiment",
                                      "type"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "name",
                                        "hexColor",
                                        "sentiment",
                                        "type"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "leadId",
                                "email",
                                "firstName",
                                "lastName",
                                "company",
                                "jobTitle",
                                "companyDomain",
                                "companyWebsiteUrl",
                                "personalLinkedInUrl",
                                "companyLinkedInUrl",
                                "city",
                                "state",
                                "country",
                                "timezone",
                                "customFieldValues",
                                "status",
                                "recipientEsp",
                                "emailSecurityGateway",
                                "assignees",
                                "labels"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|leadId|email|firstName|lastName|company|jobTitle|companyDomain|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues|status|bounceCategory|recipientEsp|emailSecurityGateway|assignees|labels)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "leadId",
                                  "email",
                                  "firstName",
                                  "lastName",
                                  "company",
                                  "jobTitle",
                                  "companyDomain",
                                  "companyWebsiteUrl",
                                  "personalLinkedInUrl",
                                  "companyLinkedInUrl",
                                  "city",
                                  "state",
                                  "country",
                                  "timezone",
                                  "customFieldValues",
                                  "status",
                                  "bounceCategory",
                                  "recipientEsp",
                                  "emailSecurityGateway",
                                  "assignees",
                                  "labels"
                                ]
                              }
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "limit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "offset",
                              "limit",
                              "total"
                            ],
                            "patternProperties": {
                              "^(?!(?:offset|limit|total)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "offset",
                                "limit",
                                "total"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "firstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "company": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "phoneNumber": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "jobTitle": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyWebsiteUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personalLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyLinkedInUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "city": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "state": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "country": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "timezone": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "customFieldValues": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "ladder": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rank": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "emails": {
                                  "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"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "email",
                                          "phone"
                                        ]
                                      },
                                      "value": {
                                        "$ref": "#/$defs/NonEmptyString"
                                      },
                                      "contactType": {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      "sourceValue": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "position": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "active",
                                          "bad"
                                        ]
                                      },
                                      "badReason": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "badAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "kind",
                                      "value",
                                      "contactType",
                                      "sourceValue",
                                      "position",
                                      "status",
                                      "badReason",
                                      "badAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "kind",
                                        "value",
                                        "contactType",
                                        "sourceValue",
                                        "position",
                                        "status",
                                        "badReason",
                                        "badAt"
                                      ]
                                    }
                                  }
                                },
                                "phones": {
                                  "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"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "email",
                                          "phone"
                                        ]
                                      },
                                      "value": {
                                        "$ref": "#/$defs/NonEmptyString"
                                      },
                                      "contactType": {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      "sourceValue": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "position": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "active",
                                          "bad"
                                        ]
                                      },
                                      "badReason": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/LeadStoredText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "badAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "kind",
                                      "value",
                                      "contactType",
                                      "sourceValue",
                                      "position",
                                      "status",
                                      "badReason",
                                      "badAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "kind",
                                        "value",
                                        "contactType",
                                        "sourceValue",
                                        "position",
                                        "status",
                                        "badReason",
                                        "badAt"
                                      ]
                                    }
                                  }
                                },
                                "activity": {
                                  "type": "object",
                                  "properties": {
                                    "campaignCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "emailCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "replyCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "callCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "recordingCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "lastActivityAt": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "campaignCount",
                                    "emailCount",
                                    "replyCount",
                                    "callCount",
                                    "recordingCount",
                                    "lastActivityAt"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:campaignCount|emailCount|replyCount|callCount|recordingCount|lastActivityAt)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "campaignCount",
                                      "emailCount",
                                      "replyCount",
                                      "callCount",
                                      "recordingCount",
                                      "lastActivityAt"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "email",
                                "firstName",
                                "lastName",
                                "company",
                                "phoneNumber",
                                "jobTitle",
                                "companyWebsiteUrl",
                                "personalLinkedInUrl",
                                "companyLinkedInUrl",
                                "city",
                                "state",
                                "country",
                                "timezone",
                                "customFieldValues",
                                "ladder",
                                "rank",
                                "createdAt",
                                "updatedAt",
                                "emails",
                                "phones",
                                "activity"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|email|firstName|lastName|company|phoneNumber|jobTitle|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues|ladder|rank|createdAt|updatedAt|emails|phones|activity)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "email",
                                  "firstName",
                                  "lastName",
                                  "company",
                                  "phoneNumber",
                                  "jobTitle",
                                  "companyWebsiteUrl",
                                  "personalLinkedInUrl",
                                  "companyLinkedInUrl",
                                  "city",
                                  "state",
                                  "country",
                                  "timezone",
                                  "customFieldValues",
                                  "ladder",
                                  "rank",
                                  "createdAt",
                                  "updatedAt",
                                  "emails",
                                  "phones",
                                  "activity"
                                ]
                              }
                            }
                          },
                          "pagination": {
                            "type": "object",
                            "properties": {
                              "offset": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "limit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "offset",
                              "limit",
                              "total"
                            ],
                            "patternProperties": {
                              "^(?!(?:offset|limit|total)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "offset",
                                "limit",
                                "total"
                              ]
                            }
                          }
                        },
                        "required": [
                          "items",
                          "pagination"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|pagination)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "pagination"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "events": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "campaign_enrolled"
                                          ]
                                        }
                                      ]
                                    },
                                    "occurredAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "sortId": {
                                      "type": "string"
                                    },
                                    "campaignId": {
                                      "type": "string"
                                    },
                                    "campaignName": {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "not_contacted",
                                        "contacted",
                                        "completed",
                                        "task_pending",
                                        "task_failed",
                                        "paused",
                                        "out_of_office",
                                        "bounced",
                                        "unsubscribed",
                                        "ladder_queued",
                                        "moved_to_subsequence"
                                      ]
                                    },
                                    "bounceCategory": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "recipient",
                                            "sender"
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "emailAddress": {
                                      "$ref": "#/$defs/LeadStoredText"
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "occurredAt",
                                    "sortId",
                                    "campaignId",
                                    "campaignName",
                                    "status",
                                    "emailAddress"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:kind|occurredAt|sortId|campaignId|campaignName|status|bounceCategory|emailAddress)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "kind",
                                      "occurredAt",
                                      "sortId",
                                      "campaignId",
                                      "campaignName",
                                      "status",
                                      "bounceCategory",
                                      "emailAddress"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "email_sent"
                                          ]
                                        }
                                      ]
                                    },
                                    "occurredAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "sortId": {
                                      "type": "string"
                                    },
                                    "campaignId": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "campaignName": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "threadId": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "openCount": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "firstOpenedAt": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "occurredAt",
                                    "sortId",
                                    "campaignId",
                                    "campaignName",
                                    "threadId",
                                    "openCount",
                                    "firstOpenedAt"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:kind|occurredAt|sortId|campaignId|campaignName|threadId|openCount|firstOpenedAt)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "kind",
                                      "occurredAt",
                                      "sortId",
                                      "campaignId",
                                      "campaignName",
                                      "threadId",
                                      "openCount",
                                      "firstOpenedAt"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "email_opened"
                                          ]
                                        }
                                      ]
                                    },
                                    "occurredAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "sortId": {
                                      "type": "string"
                                    },
                                    "campaignName": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "openCount": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "occurredAt",
                                    "sortId",
                                    "campaignName",
                                    "openCount"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:kind|occurredAt|sortId|campaignName|openCount)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "kind",
                                      "occurredAt",
                                      "sortId",
                                      "campaignName",
                                      "openCount"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "email_replied"
                                          ]
                                        }
                                      ]
                                    },
                                    "occurredAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "sortId": {
                                      "type": "string"
                                    },
                                    "from": {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    "subject": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "snippet": {
                                      "type": "string"
                                    },
                                    "threadId": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "occurredAt",
                                    "sortId",
                                    "from",
                                    "subject",
                                    "snippet",
                                    "threadId"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:kind|occurredAt|sortId|from|subject|snippet|threadId)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "kind",
                                      "occurredAt",
                                      "sortId",
                                      "from",
                                      "subject",
                                      "snippet",
                                      "threadId"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "task"
                                          ]
                                        }
                                      ]
                                    },
                                    "occurredAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "sortId": {
                                      "type": "string"
                                    },
                                    "title": {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    "completedAt": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "outcome": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "occurredAt",
                                    "sortId",
                                    "title",
                                    "completedAt",
                                    "outcome"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:kind|occurredAt|sortId|title|completedAt|outcome)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "kind",
                                      "occurredAt",
                                      "sortId",
                                      "title",
                                      "completedAt",
                                      "outcome"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "call"
                                          ]
                                        }
                                      ]
                                    },
                                    "occurredAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "sortId": {
                                      "type": "string"
                                    },
                                    "direction": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "status": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "durationSeconds": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "counterpartyPhoneE164": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "repUserId": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "repName": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "disposition": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "note": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "hasRecording": {
                                      "type": "boolean"
                                    },
                                    "hasTranscript": {
                                      "type": "boolean"
                                    },
                                    "aiSummary": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "occurredAt",
                                    "sortId",
                                    "direction",
                                    "status",
                                    "durationSeconds",
                                    "counterpartyPhoneE164",
                                    "repUserId",
                                    "repName",
                                    "disposition",
                                    "note",
                                    "hasRecording",
                                    "hasTranscript",
                                    "aiSummary"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:kind|occurredAt|sortId|direction|status|durationSeconds|counterpartyPhoneE164|repUserId|repName|disposition|note|hasRecording|hasTranscript|aiSummary)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "kind",
                                      "occurredAt",
                                      "sortId",
                                      "direction",
                                      "status",
                                      "durationSeconds",
                                      "counterpartyPhoneE164",
                                      "repUserId",
                                      "repName",
                                      "disposition",
                                      "note",
                                      "hasRecording",
                                      "hasTranscript",
                                      "aiSummary"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "contact_point"
                                          ]
                                        }
                                      ]
                                    },
                                    "occurredAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "sortId": {
                                      "type": "string"
                                    },
                                    "pointKind": {
                                      "type": "string",
                                      "enum": [
                                        "email",
                                        "phone"
                                      ]
                                    },
                                    "value": {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    "badReason": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "occurredAt",
                                    "sortId",
                                    "pointKind",
                                    "value",
                                    "badReason"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:kind|occurredAt|sortId|pointKind|value|badReason)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "kind",
                                      "occurredAt",
                                      "sortId",
                                      "pointKind",
                                      "value",
                                      "badReason"
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "crm_note_pushed"
                                          ]
                                        }
                                      ]
                                    },
                                    "occurredAt": {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    "sortId": {
                                      "type": "string"
                                    },
                                    "provider": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "sourceKind": {
                                      "$ref": "#/$defs/ShortText"
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "occurredAt",
                                    "sortId",
                                    "provider",
                                    "sourceKind"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:kind|occurredAt|sortId|provider|sourceKind)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "kind",
                                      "occurredAt",
                                      "sortId",
                                      "provider",
                                      "sourceKind"
                                    ]
                                  }
                                }
                              ]
                            }
                          },
                          "nextCursor": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Cursor"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "hiddenSources": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "undatedEnrollments": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "events",
                          "nextCursor",
                          "hiddenSources",
                          "undatedEnrollments"
                        ],
                        "patternProperties": {
                          "^(?!(?:events|nextCursor|hiddenSources|undatedEnrollments)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "events",
                            "nextCursor",
                            "hiddenSources",
                            "undatedEnrollments"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "leads": {
                            "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"
                                },
                                "firstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "companyName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "jobTitle": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "emailAddress": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "phoneNumber": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "source": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "firstName",
                                "lastName",
                                "companyName",
                                "jobTitle",
                                "emailAddress",
                                "phoneNumber",
                                "source"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|firstName|lastName|companyName|jobTitle|emailAddress|phoneNumber|source)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "firstName",
                                  "lastName",
                                  "companyName",
                                  "jobTitle",
                                  "emailAddress",
                                  "phoneNumber",
                                  "source"
                                ]
                              }
                            },
                            "maxItems": 25
                          }
                        },
                        "required": [
                          "leads"
                        ],
                        "patternProperties": {
                          "^(?!(?:leads)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "leads"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "emails": {
                            "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"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "phone"
                                  ]
                                },
                                "value": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "contactType": {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                "sourceValue": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "position": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "bad"
                                  ]
                                },
                                "badReason": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "badAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "kind",
                                "value",
                                "contactType",
                                "sourceValue",
                                "position",
                                "status",
                                "badReason",
                                "badAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "kind",
                                  "value",
                                  "contactType",
                                  "sourceValue",
                                  "position",
                                  "status",
                                  "badReason",
                                  "badAt"
                                ]
                              }
                            }
                          },
                          "phones": {
                            "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"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "phone"
                                  ]
                                },
                                "value": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "contactType": {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                "sourceValue": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "position": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "bad"
                                  ]
                                },
                                "badReason": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "badAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "kind",
                                "value",
                                "contactType",
                                "sourceValue",
                                "position",
                                "status",
                                "badReason",
                                "badAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|kind|value|contactType|sourceValue|position|status|badReason|badAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "kind",
                                  "value",
                                  "contactType",
                                  "sourceValue",
                                  "position",
                                  "status",
                                  "badReason",
                                  "badAt"
                                ]
                              }
                            }
                          },
                          "ladder": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "key": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "rank": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "id",
                                  "key",
                                  "rank"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|key|rank)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "key",
                                    "rank"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "emails",
                          "phones",
                          "ladder"
                        ],
                        "patternProperties": {
                          "^(?!(?:emails|phones|ladder)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "emails",
                            "phones",
                            "ladder"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "leadId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "body": {
                                  "type": "string"
                                },
                                "authorUserId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "authorName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "leadId",
                                "body",
                                "authorUserId",
                                "authorName",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|leadId|body|authorUserId|authorName|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "leadId",
                                  "body",
                                  "authorUserId",
                                  "authorName",
                                  "createdAt"
                                ]
                              }
                            },
                            "maxItems": 50
                          },
                          "nextCursor": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "at": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "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"
                                  }
                                },
                                "required": [
                                  "at",
                                  "id"
                                ],
                                "patternProperties": {
                                  "^(?!(?:at|id)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "at",
                                    "id"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "items",
                          "nextCursor"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "nextCursor"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_leads"
      },
      "scopes": [
        "lead:read"
      ],
      "bundles": [
        "lead_management"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "page",
      "underlyingOperations": [
        "leads.list",
        "leads.get",
        "leads.listByCampaign",
        "leads.listByList",
        "leads.timeline",
        "leads.search",
        "leads.contactPoints",
        "leads.notes.list"
      ],
      "invocations": [
        {
          "operationId": "leads.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/leads",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.listByCampaign",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/leads/by-campaign/:campaignId",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.listByList",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/leads/by-list/:leadListId",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.timeline",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId/timeline",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.search",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/leads/search",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.contactPoints",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId/contact-points",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.notes.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId/notes",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "view": {
            "type": "string",
            "enum": [
              "list",
              "get",
              "campaign",
              "lead_list",
              "timeline",
              "search",
              "contact_points",
              "notes"
            ]
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "leadListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "query": {
            "type": "string"
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "sortBy": {
            "type": "string",
            "enum": [
              "firstName",
              "lastName",
              "company",
              "createdAt",
              "updatedAt",
              "email",
              "ladder",
              "rank"
            ]
          },
          "sortOrder": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          },
          "assigneeUserIds": {
            "type": "string"
          },
          "cursorAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "cursorId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "cursor": {
            "$ref": "#/$defs/Cursor"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|view|leadId|leadListId|campaignId|query|offset|sortBy|sortOrder|assigneeUserIds|cursorAt|cursorId|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "view",
            "leadId",
            "leadListId",
            "campaignId",
            "query",
            "offset",
            "sortBy",
            "sortOrder",
            "assigneeUserIds",
            "cursorAt",
            "cursorId",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "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
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "read_organization_api_key_access",
      "description": "Read the members' personal API keys that can act in an Organization (ADR-075 §3): owner, full or restricted access there, block state, last use, and expiry.\n\nUse for access reviews and offboarding: which keys can reach this Organization, and through whom.\n\nRequires orgApiKey:manage in the Organization. Never returns a secret or a key's reach in other Organizations.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
              "get"
            ]
          },
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "organizationId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|action|apiKeyId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "action",
            "apiKeyId"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "apiKeys": {
                        "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
                            },
                            "owner": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "userId": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    "email": {
                                      "$ref": "#/$defs/LeadStoredText"
                                    }
                                  },
                                  "required": [
                                    "userId",
                                    "name",
                                    "email"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "userId",
                                      "name",
                                      "email"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "ownerUserId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "access": {
                              "type": "string",
                              "enum": [
                                "full",
                                "restricted"
                              ]
                            },
                            "grant": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "organizationId": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "organizationName": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "organizationPermissions": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "allWorkspaces": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "roles": {
                                              "type": "array",
                                              "items": {
                                                "type": "string"
                                              }
                                            },
                                            "permissions": {
                                              "type": "array",
                                              "items": {
                                                "type": "string"
                                              }
                                            }
                                          },
                                          "required": [
                                            "roles",
                                            "permissions"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "roles",
                                              "permissions"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "workspaces": {
                                      "type": "array",
                                      "items": {
                                        "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"
                                          },
                                          "workspaceName": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/$defs/LeadStoredText"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "roles": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "permissions": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "required": [
                                          "workspaceId",
                                          "workspaceName",
                                          "roles",
                                          "permissions"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:workspaceId|workspaceName|roles|permissions)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "workspaceId",
                                            "workspaceName",
                                            "roles",
                                            "permissions"
                                          ]
                                        }
                                      }
                                    }
                                  },
                                  "required": [
                                    "organizationId",
                                    "organizationName",
                                    "organizationPermissions",
                                    "allWorkspaces",
                                    "workspaces"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:organizationId|organizationName|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "organizationId",
                                      "organizationName",
                                      "organizationPermissions",
                                      "allWorkspaces",
                                      "workspaces"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "prefix": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "blocked": {
                              "type": "boolean"
                            },
                            "blockedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "expiresAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastUsedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "owner",
                            "ownerUserId",
                            "access",
                            "grant",
                            "prefix",
                            "blocked",
                            "blockedAt",
                            "expiresAt",
                            "lastUsedAt",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|owner|ownerUserId|access|grant|prefix|blocked|blockedAt|expiresAt|lastUsedAt|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "owner",
                              "ownerUserId",
                              "access",
                              "grant",
                              "prefix",
                              "blocked",
                              "blockedAt",
                              "expiresAt",
                              "lastUsedAt",
                              "createdAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "apiKeys"
                    ],
                    "patternProperties": {
                      "^(?!(?:apiKeys)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "apiKeys"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "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
                      },
                      "owner": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "userId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              "email": {
                                "$ref": "#/$defs/LeadStoredText"
                              }
                            },
                            "required": [
                              "userId",
                              "name",
                              "email"
                            ],
                            "patternProperties": {
                              "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "userId",
                                "name",
                                "email"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "ownerUserId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "access": {
                        "type": "string",
                        "enum": [
                          "full",
                          "restricted"
                        ]
                      },
                      "grant": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "organizationId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "organizationName": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "organizationPermissions": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "allWorkspaces": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "roles": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "permissions": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "roles",
                                      "permissions"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "roles",
                                        "permissions"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "workspaces": {
                                "type": "array",
                                "items": {
                                  "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"
                                    },
                                    "workspaceName": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "roles": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "permissions": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "workspaceId",
                                    "workspaceName",
                                    "roles",
                                    "permissions"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:workspaceId|workspaceName|roles|permissions)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "workspaceId",
                                      "workspaceName",
                                      "roles",
                                      "permissions"
                                    ]
                                  }
                                }
                              }
                            },
                            "required": [
                              "organizationId",
                              "organizationName",
                              "organizationPermissions",
                              "allWorkspaces",
                              "workspaces"
                            ],
                            "patternProperties": {
                              "^(?!(?:organizationId|organizationName|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "organizationId",
                                "organizationName",
                                "organizationPermissions",
                                "allWorkspaces",
                                "workspaces"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "prefix": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "blocked": {
                        "type": "boolean"
                      },
                      "blockedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "expiresAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lastUsedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "owner",
                      "ownerUserId",
                      "access",
                      "grant",
                      "prefix",
                      "blocked",
                      "blockedAt",
                      "expiresAt",
                      "lastUsedAt",
                      "createdAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|owner|ownerUserId|access|grant|prefix|blocked|blockedAt|expiresAt|lastUsedAt|createdAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "owner",
                        "ownerUserId",
                        "access",
                        "grant",
                        "prefix",
                        "blocked",
                        "blockedAt",
                        "expiresAt",
                        "lastUsedAt",
                        "createdAt"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "apiKeys": {
                            "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
                                },
                                "owner": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "userId": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                          "$ref": "#/$defs/LeadStoredText"
                                        },
                                        "email": {
                                          "$ref": "#/$defs/LeadStoredText"
                                        }
                                      },
                                      "required": [
                                        "userId",
                                        "name",
                                        "email"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "userId",
                                          "name",
                                          "email"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ownerUserId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "access": {
                                  "type": "string",
                                  "enum": [
                                    "full",
                                    "restricted"
                                  ]
                                },
                                "grant": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "organizationId": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "organizationName": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/LeadStoredText"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "organizationPermissions": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        },
                                        "allWorkspaces": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "roles": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                },
                                                "permissions": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              "required": [
                                                "roles",
                                                "permissions"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "roles",
                                                  "permissions"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "workspaces": {
                                          "type": "array",
                                          "items": {
                                            "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"
                                              },
                                              "workspaceName": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/$defs/LeadStoredText"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "roles": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              },
                                              "permissions": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "workspaceId",
                                              "workspaceName",
                                              "roles",
                                              "permissions"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:workspaceId|workspaceName|roles|permissions)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "workspaceId",
                                                "workspaceName",
                                                "roles",
                                                "permissions"
                                              ]
                                            }
                                          }
                                        }
                                      },
                                      "required": [
                                        "organizationId",
                                        "organizationName",
                                        "organizationPermissions",
                                        "allWorkspaces",
                                        "workspaces"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:organizationId|organizationName|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "organizationId",
                                          "organizationName",
                                          "organizationPermissions",
                                          "allWorkspaces",
                                          "workspaces"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "prefix": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "blocked": {
                                  "type": "boolean"
                                },
                                "blockedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "expiresAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastUsedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "owner",
                                "ownerUserId",
                                "access",
                                "grant",
                                "prefix",
                                "blocked",
                                "blockedAt",
                                "expiresAt",
                                "lastUsedAt",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|owner|ownerUserId|access|grant|prefix|blocked|blockedAt|expiresAt|lastUsedAt|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "owner",
                                  "ownerUserId",
                                  "access",
                                  "grant",
                                  "prefix",
                                  "blocked",
                                  "blockedAt",
                                  "expiresAt",
                                  "lastUsedAt",
                                  "createdAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "apiKeys"
                        ],
                        "patternProperties": {
                          "^(?!(?:apiKeys)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "apiKeys"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "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
                          },
                          "owner": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "userId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  "email": {
                                    "$ref": "#/$defs/LeadStoredText"
                                  }
                                },
                                "required": [
                                  "userId",
                                  "name",
                                  "email"
                                ],
                                "patternProperties": {
                                  "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "userId",
                                    "name",
                                    "email"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ownerUserId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "access": {
                            "type": "string",
                            "enum": [
                              "full",
                              "restricted"
                            ]
                          },
                          "grant": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "organizationId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "organizationName": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/LeadStoredText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "organizationPermissions": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "allWorkspaces": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "roles": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "permissions": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "required": [
                                          "roles",
                                          "permissions"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:roles|permissions)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "roles",
                                            "permissions"
                                          ]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "workspaces": {
                                    "type": "array",
                                    "items": {
                                      "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"
                                        },
                                        "workspaceName": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/LeadStoredText"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "roles": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        },
                                        "permissions": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "required": [
                                        "workspaceId",
                                        "workspaceName",
                                        "roles",
                                        "permissions"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:workspaceId|workspaceName|roles|permissions)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "workspaceId",
                                          "workspaceName",
                                          "roles",
                                          "permissions"
                                        ]
                                      }
                                    }
                                  }
                                },
                                "required": [
                                  "organizationId",
                                  "organizationName",
                                  "organizationPermissions",
                                  "allWorkspaces",
                                  "workspaces"
                                ],
                                "patternProperties": {
                                  "^(?!(?:organizationId|organizationName|organizationPermissions|allWorkspaces|workspaces)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "organizationId",
                                    "organizationName",
                                    "organizationPermissions",
                                    "allWorkspaces",
                                    "workspaces"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "prefix": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "blocked": {
                            "type": "boolean"
                          },
                          "blockedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastUsedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "owner",
                          "ownerUserId",
                          "access",
                          "grant",
                          "prefix",
                          "blocked",
                          "blockedAt",
                          "expiresAt",
                          "lastUsedAt",
                          "createdAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|owner|ownerUserId|access|grant|prefix|blocked|blockedAt|expiresAt|lastUsedAt|createdAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "owner",
                            "ownerUserId",
                            "access",
                            "grant",
                            "prefix",
                            "blocked",
                            "blockedAt",
                            "expiresAt",
                            "lastUsedAt",
                            "createdAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_organization_api_key_access"
      },
      "scopes": [
        "orgApiKey:manage"
      ],
      "bundles": [
        "security_administration"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationApiKeys.list",
        "organizationApiKeys.get"
      ],
      "invocations": [
        {
          "operationId": "organizationApiKeys.list",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/api-keys",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationApiKeys.get",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/api-keys/:apiKeyId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
              "get"
            ]
          },
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "organizationId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|action|apiKeyId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "action",
            "apiKeyId"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "read_organization_audit_log",
      "description": "Read an Organization's append-only audit log: membership, role, invitation, API-key, MCP-grant, ownership, and Workspace-lifecycle changes, newest first.\n\nCall to answer who changed access or configuration and when (access reviews, incident questions). Page with nextCursor.\n\nOnly the owner and audit:read holders see the whole Organization; a Workspace Admin must name one Workspace they administer. Anyone else gets not found.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "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"
          },
          "cursor": {
            "$ref": "#/$defs/OpaqueId"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          }
        },
        "required": [
          "organizationId"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|workspaceId|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "workspaceId",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "OrganizationAuditEvent": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/OpaqueId"
              },
              "occurredAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "workspaceId": {
                "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"
                  }
                ]
              },
              "actor": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "user",
                      "api_key",
                      "agent",
                      "operator",
                      "system"
                    ]
                  },
                  "id": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "label": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "kind",
                  "id",
                  "label"
                ],
                "patternProperties": {
                  "^(?!(?:kind|id|label)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "id",
                    "label"
                  ]
                }
              },
              "action": {
                "$ref": "#/$defs/ShortText"
              },
              "targetKind": {
                "$ref": "#/$defs/ShortText"
              },
              "targetId": {
                "$ref": "#/$defs/OpaqueId"
              },
              "before": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Union_"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "after": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Union_"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requestId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/OpaqueId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "$ref": "#/$defs/Union_"
              }
            },
            "required": [
              "id",
              "occurredAt",
              "organizationId",
              "workspaceId",
              "actor",
              "action",
              "targetKind",
              "targetId",
              "before",
              "after",
              "requestId",
              "metadata"
            ],
            "patternProperties": {
              "^(?!(?:id|occurredAt|organizationId|workspaceId|actor|action|targetKind|targetId|before|after|requestId|metadata)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "occurredAt",
                "organizationId",
                "workspaceId",
                "actor",
                "action",
                "targetKind",
                "targetId",
                "before",
                "after",
                "requestId",
                "metadata"
              ]
            }
          },
          "OrganizationAuditPage": {
            "type": "object",
            "properties": {
              "events": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/OrganizationAuditEvent"
                }
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/OpaqueId"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "scope": {
                "type": "string",
                "enum": [
                  "organization",
                  "workspace"
                ]
              }
            },
            "required": [
              "events",
              "nextCursor",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:events|nextCursor|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "events",
                "nextCursor",
                "scope"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/OrganizationAuditPage"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/OrganizationAuditPage"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_organization_audit_log"
      },
      "scopes": [
        "audit:read"
      ],
      "bundles": [
        "organization_administration"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizations.listAuditEvents"
      ],
      "invocations": [
        {
          "operationId": "organizations.listAuditEvents",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/audit-events",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "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"
          },
          "cursor": {
            "$ref": "#/$defs/OpaqueId"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          }
        },
        "required": [
          "organizationId"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|workspaceId|cursor|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "workspaceId",
            "cursor",
            "limit"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "read_organizations",
      "description": "List the caller's Organizations and read one Organization's details, permissions, Workspaces, transfers, or deletion impact.\n\nCall to learn which Organizations and Workspaces the user can see before managing members, roles, or Workspaces.\n\nInvisible Organizations and Workspaces answer not found; do not probe ids.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "permissions"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "workspaces"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "transfers"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "deletionPreview"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          }
        ],
        "$defs": {
          "ReadOrganizationsInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "list"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "get"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "permissions"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "workspaces"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "transfers"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "deletionPreview"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ReadOrganizationsOutput": {
            "anyOf": [
              {
                "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": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "logo": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/HttpUrl"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isOwner": {
                      "type": "boolean"
                    },
                    "permissions": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "audit:read",
                          "billing:manage",
                          "billing:read",
                          "org:delete",
                          "orgAnalytics:read",
                          "orgAnalytics:manage",
                          "org:read",
                          "org:update",
                          "orgApiKey:manage",
                          "orgMember:invite",
                          "orgMember:read",
                          "orgMember:remove",
                          "orgMember:update",
                          "role:manage",
                          "role:read",
                          "usage:read",
                          "workspace:create",
                          "workspace:delete",
                          "workspace:transfer"
                        ]
                      }
                    },
                    "visibleWorkspaceCount": {
                      "type": "integer"
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "logo",
                    "isOwner",
                    "permissions",
                    "visibleWorkspaceCount",
                    "createdAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|name|logo|isOwner|permissions|visibleWorkspaceCount|createdAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "name",
                      "logo",
                      "isOwner",
                      "permissions",
                      "visibleWorkspaceCount",
                      "createdAt"
                    ]
                  }
                }
              },
              {
                "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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "logo": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isOwner": {
                    "type": "boolean"
                  },
                  "permissions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "audit:read",
                        "billing:manage",
                        "billing:read",
                        "org:delete",
                        "orgAnalytics:read",
                        "orgAnalytics:manage",
                        "org:read",
                        "org:update",
                        "orgApiKey:manage",
                        "orgMember:invite",
                        "orgMember:read",
                        "orgMember:remove",
                        "orgMember:update",
                        "role:manage",
                        "role:read",
                        "usage:read",
                        "workspace:create",
                        "workspace:delete",
                        "workspace:transfer"
                      ]
                    }
                  },
                  "visibleWorkspaceCount": {
                    "type": "integer"
                  },
                  "createdAt": {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  "slug": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "owner": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "userId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                          },
                          "email": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "userId",
                          "name",
                          "email"
                        ],
                        "patternProperties": {
                          "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "userId",
                            "name",
                            "email"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "logo",
                  "isOwner",
                  "permissions",
                  "visibleWorkspaceCount",
                  "createdAt",
                  "slug",
                  "owner"
                ],
                "patternProperties": {
                  "^(?!(?:id|name|logo|isOwner|permissions|visibleWorkspaceCount|createdAt|slug|owner)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name",
                    "logo",
                    "isOwner",
                    "permissions",
                    "visibleWorkspaceCount",
                    "createdAt",
                    "slug",
                    "owner"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "isOwner": {
                    "type": "boolean"
                  },
                  "organization": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "audit:read",
                        "billing:manage",
                        "billing:read",
                        "org:delete",
                        "orgAnalytics:read",
                        "orgAnalytics:manage",
                        "org:read",
                        "org:update",
                        "orgApiKey:manage",
                        "orgMember:invite",
                        "orgMember:read",
                        "orgMember:remove",
                        "orgMember:update",
                        "role:manage",
                        "role:read",
                        "usage:read",
                        "workspace:create",
                        "workspace:delete",
                        "workspace:transfer"
                      ]
                    }
                  },
                  "allWorkspaces": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    }
                  },
                  "canDelete": {
                    "type": "boolean"
                  },
                  "canTransferOwnership": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "organizationId",
                  "isOwner",
                  "organization",
                  "allWorkspaces",
                  "canDelete",
                  "canTransferOwnership"
                ],
                "patternProperties": {
                  "^(?!(?:organizationId|isOwner|organization|allWorkspaces|canDelete|canTransferOwnership)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "organizationId",
                    "isOwner",
                    "organization",
                    "allWorkspaces",
                    "canDelete",
                    "canTransferOwnership"
                  ]
                }
              },
              {
                "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": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "slug": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "logo": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/HttpUrl"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "access": {
                      "type": "string",
                      "enum": [
                        "data",
                        "metadata"
                      ]
                    },
                    "permissions": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "analytics:export",
                          "analytics:read",
                          "apiKey:create",
                          "apiKey:delete",
                          "apiKey:read",
                          "apiKey:update",
                          "blocklist:create",
                          "blocklist:delete",
                          "blocklist:read",
                          "campaign:archive",
                          "campaign:create",
                          "campaign:delete",
                          "campaign:launch",
                          "campaign:pause",
                          "campaign:read",
                          "campaign:update",
                          "dialer:assign_numbers",
                          "dialer:assign_seats",
                          "dialer:create",
                          "dialer:delete",
                          "dialer:dial",
                          "dialer:manage_billing",
                          "dialer:manage_number_health",
                          "dialer:manage_numbers",
                          "dialer:manage_numbers_self",
                          "dialer:manage_voicemails",
                          "dialer:read",
                          "dialer:read_analytics",
                          "dialer:read_numbers_all",
                          "dialer:release_numbers",
                          "dialer:update",
                          "domain:manage_dns",
                          "domain:purchase",
                          "domain:read",
                          "domain:transfer",
                          "emailVerification:manage_credits",
                          "emailVerification:manage_keys",
                          "emailVerification:manage_sharing",
                          "emailVerification:read",
                          "emailVerification:verify",
                          "inbox:connect",
                          "inbox:create",
                          "inbox:delete",
                          "inbox:read",
                          "inbox:update",
                          "inbox:warmup_manage",
                          "integration:create",
                          "integration:delete",
                          "integration:read",
                          "integration:update",
                          "lead:create",
                          "lead:delete",
                          "lead:export",
                          "lead:import",
                          "lead:read",
                          "lead:update",
                          "leadList:create",
                          "leadList:delete",
                          "leadList:read",
                          "leadList:update",
                          "phoneVerification:manage_keys",
                          "phoneVerification:read",
                          "phoneVerification:verify",
                          "replyLabel:create",
                          "replyLabel:delete",
                          "replyLabel:read",
                          "replyLabel:update",
                          "sequence:create",
                          "sequence:delete",
                          "sequence:read",
                          "sequence:update",
                          "sql:manage_dashboards",
                          "sql:query",
                          "support:create",
                          "support:read",
                          "support:update",
                          "tag:create",
                          "tag:delete",
                          "tag:read",
                          "tag:update",
                          "task:create",
                          "task:delete",
                          "task:read",
                          "task:update",
                          "template:create",
                          "template:delete",
                          "template:read",
                          "template:update",
                          "unibox:archive",
                          "unibox:label",
                          "unibox:read",
                          "unibox:reply",
                          "webhook:create",
                          "webhook:delete",
                          "webhook:read",
                          "webhook:update",
                          "whiteLabel:read",
                          "whiteLabel:update",
                          "workflow:create",
                          "workflow:delete",
                          "workflow:publish",
                          "workflow:read",
                          "workflow:run",
                          "workflow:update",
                          "workspace:read",
                          "workspace:update",
                          "workspaceMember:invite",
                          "workspaceMember:read",
                          "workspaceMember:remove",
                          "workspaceMember:update"
                        ]
                      }
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "slug",
                    "logo",
                    "access",
                    "permissions",
                    "createdAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|name|slug|logo|access|permissions|createdAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "name",
                      "slug",
                      "logo",
                      "access",
                      "permissions",
                      "createdAt"
                    ]
                  }
                }
              },
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "workspace": {
                      "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": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name"
                        ]
                      }
                    },
                    "from": {
                      "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": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name"
                        ]
                      }
                    },
                    "to": {
                      "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": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name"
                        ]
                      }
                    },
                    "direction": {
                      "type": "string",
                      "enum": [
                        "outgoing",
                        "incoming"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "accepted",
                        "cancelled"
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "resolvedAt": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "workspace",
                    "from",
                    "to",
                    "direction",
                    "status",
                    "createdAt",
                    "resolvedAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|workspace|from|to|direction|status|createdAt|resolvedAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "workspace",
                      "from",
                      "to",
                      "direction",
                      "status",
                      "createdAt",
                      "resolvedAt"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "workspaces": {
                    "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": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name"
                        ]
                      }
                    }
                  },
                  "members": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "userId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                        },
                        "email": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "userId",
                        "name",
                        "email"
                      ],
                      "patternProperties": {
                        "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "userId",
                          "name",
                          "email"
                        ]
                      }
                    }
                  },
                  "blockedReason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "only_owned_organization",
                          "active_subscription",
                          "purchased_resources"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "organizationId",
                  "name",
                  "workspaces",
                  "members",
                  "blockedReason"
                ],
                "patternProperties": {
                  "^(?!(?:organizationId|name|workspaces|members|blockedReason)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "organizationId",
                    "name",
                    "workspaces",
                    "members",
                    "blockedReason"
                  ]
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/ReadOrganizationsOutput"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/ReadOrganizationsOutput"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_organizations"
      },
      "scopes": [
        "org:read"
      ],
      "bundles": [
        "organization_administration"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizations.list",
        "organizations.get",
        "organizations.myPermissions",
        "organizationWorkspaces.list",
        "organizationWorkspaces.listTransfers",
        "organizations.deletionPreview"
      ],
      "invocations": [
        {
          "operationId": "organizations.list",
          "method": "GET",
          "path": "/v1/organizations",
          "workspaceScoped": false
        },
        {
          "operationId": "organizations.get",
          "method": "GET",
          "path": "/v1/organizations/:organizationId",
          "workspaceScoped": false
        },
        {
          "operationId": "organizations.myPermissions",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/permissions",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationWorkspaces.list",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/workspaces",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationWorkspaces.listTransfers",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/workspace-transfers",
          "workspaceScoped": false
        },
        {
          "operationId": "organizations.deletionPreview",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/deletion-preview",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "get"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "permissions"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "workspaces"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "transfers"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "deletionPreview"
                    ]
                  }
                ]
              },
              "organizationId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "view",
              "organizationId"
            ],
            "patternProperties": {
              "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "organizationId"
              ]
            }
          }
        ],
        "$defs": {
          "ReadOrganizationsInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "list"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "get"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "permissions"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "workspaces"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "transfers"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "deletionPreview"
                        ]
                      }
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "view",
                  "organizationId"
                ],
                "patternProperties": {
                  "^(?!(?:view|organizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "organizationId"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "read_own_identity",
      "description": "Read the caller's own credential, permission split, session, and selected-workspace context.\n\nCall first to learn which principal and selected workspace the credential resolves to.\n\nNever returns secrets or provider identifiers; do not probe for them.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "whoami"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "permissions"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "session"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "workspaceCount"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "listWorkspaces"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "activeWorkspace"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "listInvitations"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "invitationPreview"
                    ]
                  }
                ]
              },
              "token": {
                "$ref": "#/$defs/OpaqueId"
              }
            },
            "required": [
              "view",
              "token"
            ],
            "patternProperties": {
              "^(?!(?:view|token)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "token"
              ]
            }
          }
        ],
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ReadOwnIdentityInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "whoami"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "permissions"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "session"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "workspaceCount"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "listWorkspaces"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "activeWorkspace"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "listInvitations"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "invitationPreview"
                        ]
                      }
                    ]
                  },
                  "token": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "view",
                  "token"
                ],
                "patternProperties": {
                  "^(?!(?:view|token)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "token"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "WorkspaceRoleSlug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "MaskedEmail": {
            "type": "string",
            "pattern": "^[a-z]\\*\\*\\*@[^\\s]+$"
          },
          "ReadOwnIdentityOutput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "authMethod": {
                    "type": "string",
                    "enum": [
                      "api_key",
                      "session",
                      "workos_agent"
                    ]
                  },
                  "organization": {
                    "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": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "slug": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "logo": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "slug",
                      "logo",
                      "createdAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|slug|logo|createdAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "slug",
                        "logo",
                        "createdAt"
                      ]
                    }
                  },
                  "credential": {
                    "anyOf": [
                      {
                        "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"
                          },
                          "permissions": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        },
                        "required": [
                          "id",
                          "permissions"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|permissions)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "permissions"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "agent": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "registrationId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "kind": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "actorUserId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "permissions": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        },
                        "required": [
                          "registrationId",
                          "kind",
                          "actorUserId",
                          "permissions"
                        ],
                        "patternProperties": {
                          "^(?!(?:registrationId|kind|actorUserId|permissions)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "registrationId",
                            "kind",
                            "actorUserId",
                            "permissions"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mcpGrant": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "grantId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "scopes": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "bundles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          }
                        },
                        "required": [
                          "grantId",
                          "scopes",
                          "bundles"
                        ],
                        "patternProperties": {
                          "^(?!(?:grantId|scopes|bundles)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "grantId",
                            "scopes",
                            "bundles"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "authMethod",
                  "organization",
                  "credential",
                  "agent",
                  "mcpGrant"
                ],
                "patternProperties": {
                  "^(?!(?:authMethod|organization|credential|agent|mcpGrant)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "authMethod",
                    "organization",
                    "credential",
                    "agent",
                    "mcpGrant"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "authMethod": {
                    "type": "string",
                    "enum": [
                      "api_key",
                      "session",
                      "workos_agent"
                    ]
                  },
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "credentialId": {
                    "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"
                      }
                    ]
                  },
                  "agentRegistrationId": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "selectedPermissions": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "unselectedPermissions": {
                    "type": "object",
                    "additionalProperties": true
                  }
                },
                "required": [
                  "authMethod",
                  "organizationId",
                  "credentialId",
                  "agentRegistrationId",
                  "selectedPermissions",
                  "unselectedPermissions"
                ],
                "patternProperties": {
                  "^(?!(?:authMethod|organizationId|credentialId|agentRegistrationId|selectedPermissions|unselectedPermissions)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "authMethod",
                    "organizationId",
                    "credentialId",
                    "agentRegistrationId",
                    "selectedPermissions",
                    "unselectedPermissions"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "authMethod": {
                    "type": "string",
                    "enum": [
                      "api_key",
                      "session",
                      "workos_agent"
                    ]
                  },
                  "principalKind": {
                    "type": "string",
                    "enum": [
                      "human",
                      "agent",
                      "personal_api_key"
                    ]
                  },
                  "user": {
                    "anyOf": [
                      {
                        "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": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "email": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "image": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "hasCompletedOnboarding": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "email",
                          "image",
                          "hasCompletedOnboarding"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|email|image|hasCompletedOnboarding)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "email",
                            "image",
                            "hasCompletedOnboarding"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "activeWorkspaceId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "authMethod",
                  "principalKind",
                  "user",
                  "activeWorkspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:authMethod|principalKind|user|activeWorkspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "authMethod",
                    "principalKind",
                    "user",
                    "activeWorkspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "count"
                ],
                "patternProperties": {
                  "^(?!(?:count)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "count"
                      ]
                    }
                  ]
                }
              },
              {
                "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": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "slug": {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    "logo": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/HttpUrl"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "role": {
                      "$ref": "#/$defs/WorkspaceRoleSlug"
                    },
                    "customerOrganizationId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/OpaqueId"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "slug",
                    "logo",
                    "createdAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|name|slug|logo|createdAt|role|customerOrganizationId)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "name",
                      "slug",
                      "logo",
                      "createdAt",
                      "role",
                      "customerOrganizationId"
                    ]
                  }
                }
              },
              {
                "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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "slug": {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  "logo": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "createdAt": {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/Union_"
                    }
                  },
                  "enabledFeatures": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ShortText"
                    }
                  },
                  "customerOrganizationId": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "canManageOrganizationMembers": {
                    "type": "boolean"
                  },
                  "members": {
                    "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"
                        },
                        "userId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "role": {
                          "$ref": "#/$defs/WorkspaceRoleSlug"
                        },
                        "workspaceAccess": {
                          "type": "string",
                          "enum": [
                            "selected",
                            "all"
                          ]
                        },
                        "canWidenToAll": {
                          "type": "boolean"
                        },
                        "parentMembershipId": {
                          "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"
                            }
                          ]
                        },
                        "workspaceMembershipId": {
                          "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"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "user": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "image": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "email",
                            "image"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|email|image)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "email",
                              "image"
                            ]
                          }
                        }
                      },
                      "required": [
                        "id",
                        "userId",
                        "role",
                        "workspaceAccess",
                        "canWidenToAll",
                        "workspaceMembershipId",
                        "createdAt",
                        "user"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|userId|role|workspaceAccess|canWidenToAll|parentMembershipId|workspaceMembershipId|createdAt|user)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "userId",
                          "role",
                          "workspaceAccess",
                          "canWidenToAll",
                          "parentMembershipId",
                          "workspaceMembershipId",
                          "createdAt",
                          "user"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "id",
                  "name",
                  "slug",
                  "logo",
                  "createdAt",
                  "enabledFeatures",
                  "customerOrganizationId",
                  "canManageOrganizationMembers",
                  "members"
                ],
                "patternProperties": {
                  "^(?!(?:id|name|slug|logo|createdAt|metadata|enabledFeatures|customerOrganizationId|canManageOrganizationMembers|members)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name",
                    "slug",
                    "logo",
                    "createdAt",
                    "metadata",
                    "enabledFeatures",
                    "customerOrganizationId",
                    "canManageOrganizationMembers",
                    "members"
                  ]
                }
              },
              {
                "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"
                    },
                    "email": {
                      "$ref": "#/$defs/EmailAddress"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "accepted",
                        "revoked",
                        "expired"
                      ]
                    },
                    "expiresAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "organizationId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "organizationName": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "inviterName": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/LeadStoredText"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "targets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "organization",
                              "allWorkspaces",
                              "workspace"
                            ]
                          },
                          "name": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          }
                        },
                        "required": [
                          "kind",
                          "name",
                          "roles"
                        ],
                        "patternProperties": {
                          "^(?!(?:kind|name|roles)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "kind",
                            "name",
                            "roles"
                          ]
                        }
                      }
                    }
                  },
                  "required": [
                    "id",
                    "email",
                    "status",
                    "expiresAt",
                    "organizationId",
                    "organizationName",
                    "inviterName",
                    "targets"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|email|status|expiresAt|organizationId|organizationName|inviterName|targets)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "email",
                      "status",
                      "expiresAt",
                      "organizationId",
                      "organizationName",
                      "inviterName",
                      "targets"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "accepted",
                      "revoked",
                      "expired"
                    ]
                  },
                  "expiresAt": {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  "organizationName": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "inviterName": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/LeadStoredText"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maskedEmail": {
                    "$ref": "#/$defs/MaskedEmail"
                  },
                  "isExpired": {
                    "type": "boolean"
                  },
                  "isForCurrentUser": {
                    "type": "boolean"
                  },
                  "targets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "organization",
                            "allWorkspaces",
                            "workspace"
                          ]
                        },
                        "name": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "roles": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/ShortText"
                          }
                        }
                      },
                      "required": [
                        "kind",
                        "name",
                        "roles"
                      ],
                      "patternProperties": {
                        "^(?!(?:kind|name|roles)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "kind",
                          "name",
                          "roles"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "status",
                  "expiresAt",
                  "organizationName",
                  "inviterName",
                  "maskedEmail",
                  "isExpired",
                  "isForCurrentUser",
                  "targets"
                ],
                "patternProperties": {
                  "^(?!(?:status|expiresAt|organizationName|inviterName|maskedEmail|isExpired|isForCurrentUser|targets)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "status",
                    "expiresAt",
                    "organizationName",
                    "inviterName",
                    "maskedEmail",
                    "isExpired",
                    "isForCurrentUser",
                    "targets"
                  ]
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/ReadOwnIdentityOutput"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/ReadOwnIdentityOutput"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_own_identity"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "account_basics"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "me.whoami",
        "me.permissions",
        "me.session",
        "me.workspaceCount",
        "me.listWorkspaces",
        "me.activeWorkspace",
        "me.listInvitations",
        "me.invitationPreview"
      ],
      "invocations": [
        {
          "operationId": "me.whoami",
          "method": "GET",
          "path": "/v1/me",
          "workspaceScoped": false
        },
        {
          "operationId": "me.permissions",
          "method": "GET",
          "path": "/v1/me/permissions",
          "workspaceScoped": false
        },
        {
          "operationId": "me.session",
          "method": "GET",
          "path": "/v1/me/session",
          "workspaceScoped": false
        },
        {
          "operationId": "me.workspaceCount",
          "method": "GET",
          "path": "/v1/me/workspace-count",
          "workspaceScoped": false
        },
        {
          "operationId": "me.listWorkspaces",
          "method": "GET",
          "path": "/v1/me/workspaces",
          "workspaceScoped": false
        },
        {
          "operationId": "me.activeWorkspace",
          "method": "GET",
          "path": "/v1/me/active-workspace",
          "workspaceScoped": false
        },
        {
          "operationId": "me.listInvitations",
          "method": "GET",
          "path": "/v1/me/invitations",
          "workspaceScoped": false
        },
        {
          "operationId": "me.invitationPreview",
          "method": "GET",
          "path": "/v1/me/invitations/preview",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "whoami"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "permissions"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "session"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "workspaceCount"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "listWorkspaces"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "activeWorkspace"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "listInvitations"
                    ]
                  }
                ]
              }
            },
            "required": [
              "view"
            ],
            "patternProperties": {
              "^(?!(?:view)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "view"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "invitationPreview"
                    ]
                  }
                ]
              },
              "token": {
                "$ref": "#/$defs/OpaqueId"
              }
            },
            "required": [
              "view",
              "token"
            ],
            "patternProperties": {
              "^(?!(?:view|token)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "view",
                "token"
              ]
            }
          }
        ],
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ReadOwnIdentityInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "whoami"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "permissions"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "session"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "workspaceCount"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "listWorkspaces"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "activeWorkspace"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "listInvitations"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "view"
                ],
                "patternProperties": {
                  "^(?!(?:view)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "view"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "view": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "invitationPreview"
                        ]
                      }
                    ]
                  },
                  "token": {
                    "$ref": "#/$defs/OpaqueId"
                  }
                },
                "required": [
                  "view",
                  "token"
                ],
                "patternProperties": {
                  "^(?!(?:view|token)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "view",
                    "token"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "content-support",
      "name": "read_sequence_templates",
      "description": "Read the sequence-template library visible to a workspace (system ∪ workspace-owned), one template, or its category list. Set view to list (default), categories, or get; a templateId without view selects get.\n\nUse view=list to inspect templates (the default), view=categories for available categories, or view=get with templateId for one template.\n\nSystem templates are read-only; do not probe for write access through this tool.",
      "inputSchema": {
        "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"
          },
          "view": {
            "type": "string",
            "enum": [
              "list",
              "categories",
              "get"
            ]
          },
          "templateId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "category": {
            "type": "string"
          },
          "includeSystem": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|view|templateId|category|includeSystem)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "view",
            "templateId",
            "category",
            "includeSystem"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "TemplateName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "TemplateDescription": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "TemplateCategory": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Arrays_"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "Arrays_": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Union_"
            }
          },
          "EditorStateJson": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Arrays_"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "TemplateStep": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "email_content"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "variants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "variantOrder": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "subject": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/EditorStateJson"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "body": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/EditorStateJson"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "variantOrder",
                        "subject",
                        "body"
                      ],
                      "patternProperties": {
                        "^(?!(?:variantOrder|subject|body)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "variantOrder",
                          "subject",
                          "body"
                        ]
                      }
                    },
                    "minItems": 1
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "variants"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|variants)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "variants"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "manual_review"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "notificationMessage": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "notificationMessage"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|notificationMessage)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "notificationMessage"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "linked_in_connection_request"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "connectionNote": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "connectionNote"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|connectionNote)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "connectionNote"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "linked_in_in_mail"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "subject": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "subject",
                  "body"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|subject|body)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "subject",
                    "body"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "phone_call"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "script": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "script"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|script)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "script"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "text_message"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "message": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mediaUrl": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "message"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|message|mediaUrl)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "message",
                    "mediaUrl"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "http_post_request"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "headers": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": true
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyTemplate": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "url",
                  "headers",
                  "bodyTemplate"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|url|headers|bodyTemplate)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "url",
                    "headers",
                    "bodyTemplate"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "heyreach_campaign"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "connectionId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "campaignId": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "campaignName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "linkedInAccountId": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "campaignId"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "connectionId",
                    "campaignId",
                    "campaignName",
                    "linkedInAccountId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "attio_task"
                        ]
                      }
                    ]
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "assigneeMemberIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "onMissingAssignee": {
                    "type": "string",
                    "enum": [
                      "skip",
                      "fail"
                    ]
                  },
                  "deadlineOffsetDays": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "personLink": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "sourceVariable": {
                        "type": "string"
                      },
                      "matchBy": {
                        "type": "string",
                        "enum": [
                          "email",
                          "domain",
                          "record_id"
                        ]
                      },
                      "createIfMissing": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "enabled",
                      "sourceVariable",
                      "matchBy",
                      "createIfMissing"
                    ],
                    "patternProperties": {
                      "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "sourceVariable",
                        "matchBy",
                        "createIfMissing"
                      ]
                    }
                  },
                  "companyLink": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "sourceVariable": {
                        "type": "string"
                      },
                      "matchBy": {
                        "type": "string",
                        "enum": [
                          "email",
                          "domain",
                          "record_id"
                        ]
                      },
                      "createIfMissing": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "enabled",
                      "sourceVariable",
                      "matchBy",
                      "createIfMissing"
                    ],
                    "patternProperties": {
                      "^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "sourceVariable",
                        "matchBy",
                        "createIfMissing"
                      ]
                    }
                  }
                },
                "required": [
                  "type",
                  "delayMinutes",
                  "content",
                  "assigneeMemberIds",
                  "onMissingAssignee",
                  "deadlineOffsetDays",
                  "personLink",
                  "companyLink"
                ],
                "patternProperties": {
                  "^(?!(?:type|delayMinutes|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "type",
                    "delayMinutes",
                    "content",
                    "assigneeMemberIds",
                    "onMissingAssignee",
                    "deadlineOffsetDays",
                    "personLink",
                    "companyLink"
                  ]
                }
              }
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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": {
                          "$ref": "#/$defs/TemplateName"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/TemplateDescription"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "category": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/TemplateCategory"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "isSystem": {
                          "type": "boolean"
                        },
                        "organizationId": {
                          "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"
                            }
                          ]
                        },
                        "steps": {
                          "type": "array",
                          "items": {
                            "$ref": "#/$defs/TemplateStep"
                          },
                          "maxItems": 50
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "description",
                        "category",
                        "isSystem",
                        "organizationId",
                        "steps",
                        "createdAt",
                        "updatedAt"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|name|description|category|isSystem|organizationId|steps|createdAt|updatedAt)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "name",
                          "description",
                          "category",
                          "isSystem",
                          "organizationId",
                          "steps",
                          "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": {
                        "$ref": "#/$defs/TemplateName"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/TemplateDescription"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "category": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/TemplateCategory"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isSystem": {
                        "type": "boolean"
                      },
                      "organizationId": {
                        "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"
                          }
                        ]
                      },
                      "steps": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/TemplateStep"
                        },
                        "maxItems": 50
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "category",
                      "isSystem",
                      "organizationId",
                      "steps",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|description|category|isSystem|organizationId|steps|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "description",
                        "category",
                        "isSystem",
                        "organizationId",
                        "steps",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/TemplateCategory"
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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": {
                              "$ref": "#/$defs/TemplateName"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/TemplateDescription"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "category": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/TemplateCategory"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isSystem": {
                              "type": "boolean"
                            },
                            "organizationId": {
                              "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"
                                }
                              ]
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/TemplateStep"
                              },
                              "maxItems": 50
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "description",
                            "category",
                            "isSystem",
                            "organizationId",
                            "steps",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|description|category|isSystem|organizationId|steps|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "description",
                              "category",
                              "isSystem",
                              "organizationId",
                              "steps",
                              "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": {
                            "$ref": "#/$defs/TemplateName"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/TemplateDescription"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "category": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/TemplateCategory"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isSystem": {
                            "type": "boolean"
                          },
                          "organizationId": {
                            "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"
                              }
                            ]
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/TemplateStep"
                            },
                            "maxItems": 50
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "category",
                          "isSystem",
                          "organizationId",
                          "steps",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|description|category|isSystem|organizationId|steps|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "description",
                            "category",
                            "isSystem",
                            "organizationId",
                            "steps",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/TemplateCategory"
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_sequence_templates"
      },
      "scopes": [
        "template:read"
      ],
      "bundles": [
        "content_authoring"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "templates.list",
        "templates.categories",
        "templates.get"
      ],
      "invocations": [
        {
          "operationId": "templates.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/templates",
          "workspaceScoped": false
        },
        {
          "operationId": "templates.categories",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/templates/categories",
          "workspaceScoped": false
        },
        {
          "operationId": "templates.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/templates/:templateId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "view": {
            "type": "string",
            "enum": [
              "list",
              "categories",
              "get"
            ]
          },
          "templateId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "category": {
            "type": "string"
          },
          "includeSystem": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|view|templateId|category|includeSystem)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "view",
            "templateId",
            "category",
            "includeSystem"
          ]
        }
      }
    },
    {
      "feature": "unibox",
      "name": "read_unibox_message_body",
      "description": "Read one message's body, with an explicit marker saying whether the HTML was sanitized, left raw, or produced by us.\n\nUse when the snippet is not enough to answer the question. Read one message at a time; the body is the most sensitive payload the inbox serves.\n\nNever treat the returned HTML as trusted unless the marker says so, and never cache it — inline image URLs inside it expire. A body still in cold storage answers with a retry hint rather than blank content.",
      "inputSchema": {
        "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"
          },
          "messageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "messageId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|messageId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "messageId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "html": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000000
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000000
              },
              {
                "type": "null"
              }
            ]
          },
          "trust": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "sanitized",
                  "unsanitized",
                  "trusted"
                ]
              },
              "sanitizedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/NonEmptyString"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "state",
              "sanitizedBy"
            ],
            "patternProperties": {
              "^(?!(?:state|sanitizedBy)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "state",
                "sanitizedBy"
              ]
            }
          }
        },
        "required": [
          "messageId",
          "html",
          "text",
          "trust"
        ],
        "patternProperties": {
          "^(?!(?:messageId|html|text|trust)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "messageId",
            "html",
            "text",
            "trust"
          ]
        },
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_unibox_message_body"
      },
      "scopes": [
        "unibox:read"
      ],
      "bundles": [
        "unibox_reply_flow",
        "unibox_triage"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "uniboxMessages.getBody"
      ],
      "invocations": [
        {
          "operationId": "uniboxMessages.getBody",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId/body",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "messageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "messageId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|messageId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "messageId"
          ]
        }
      }
    },
    {
      "feature": "verification-warmup",
      "name": "read_verification_results",
      "description": "Read email/phone verification results, per-address waterfall history, freshness reports, provider stats, durable run records, and the compatibility credit balance.\n\nUse to inspect verdicts and run progress, pre-flight freshness before a bulk run, or check provider unit economics for the workspace.\n\nResults are workspace-scoped — another organization's provider verdicts are never visible; this tool cannot start verification or manage keys.",
      "inputSchema": {
        "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"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          },
          "action": {
            "type": "string",
            "enum": [
              "result",
              "results",
              "history",
              "freshness",
              "provider_stats",
              "runs",
              "run",
              "run_status",
              "credit_balance",
              "estimate_credits"
            ]
          },
          "email": {
            "$ref": "#/$defs/EmailAddress"
          },
          "phone": {
            "$ref": "#/$defs/PhoneNumberInput"
          },
          "phones": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/PhoneNumberInput"
            },
            "minItems": 1,
            "maxItems": 500
          },
          "runId": {
            "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": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            ]
          },
          "freshness": {
            "type": "object",
            "properties": {
              "emails": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/EmailAddress"
                },
                "maxItems": 5000
              },
              "scope": {
                "type": "object",
                "properties": {
                  "campaignId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                  },
                  "assigneeUserIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    }
                  }
                },
                "required": [
                  "campaignId"
                ],
                "patternProperties": {
                  "^(?!(?:campaignId|search|assigneeUserIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "campaignId",
                    "search",
                    "assigneeUserIds"
                  ]
                }
              }
            },
            "patternProperties": {
              "^(?!(?:emails|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "emails",
                "scope"
              ]
            }
          },
          "estimate": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 1
              }
            },
            "required": [
              "count"
            ],
            "patternProperties": {
              "^(?!(?:count)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "count"
                  ]
                }
              ]
            }
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          }
        },
        "required": [
          "workspaceId",
          "channel",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|channel|action|email|phone|phones|runId|freshness|estimate|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "channel",
            "action",
            "email",
            "phone",
            "phones",
            "runId",
            "freshness",
            "estimate",
            "limit"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "PhoneNumberInput": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "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$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "email": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "valid",
                          "invalid",
                          "catch-all",
                          "unknown",
                          "disposable",
                          "role",
                          "spamtrap"
                        ]
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "cache",
                          "dns",
                          "provider"
                        ]
                      },
                      "provider": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "confidence": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "flags": {
                        "type": "object",
                        "properties": {
                          "role": {
                            "type": "boolean"
                          },
                          "disposable": {
                            "type": "boolean"
                          },
                          "spamtrap": {
                            "type": "boolean"
                          },
                          "freeProvider": {
                            "type": "boolean"
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:role|disposable|spamtrap|freeProvider)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "role",
                            "disposable",
                            "spamtrap",
                            "freeProvider"
                          ]
                        }
                      },
                      "verifiedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fromCache": {
                        "type": "boolean"
                      },
                      "attempts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "providerId": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "catch-all",
                                "unknown",
                                "disposable",
                                "role",
                                "spamtrap"
                              ]
                            },
                            "rawStatus": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confidence": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "resolved": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "providerId",
                            "status",
                            "rawStatus",
                            "confidence",
                            "resolved"
                          ],
                          "patternProperties": {
                            "^(?!(?:providerId|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "providerId",
                              "status",
                              "rawStatus",
                              "confidence",
                              "resolved"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "email",
                      "status",
                      "source",
                      "provider",
                      "confidence",
                      "verifiedAt",
                      "fromCache",
                      "attempts"
                    ],
                    "patternProperties": {
                      "^(?!(?:email|status|source|provider|confidence|flags|verifiedAt|fromCache|attempts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "email",
                        "status",
                        "source",
                        "provider",
                        "confidence",
                        "flags",
                        "verifiedAt",
                        "fromCache",
                        "attempts"
                      ]
                    }
                  },
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "email": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "valid",
                              "invalid",
                              "catch-all",
                              "unknown",
                              "disposable",
                              "role",
                              "spamtrap"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "provider",
                              "dns",
                              "sending-signal",
                              "cache"
                            ]
                          },
                          "provider": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "flags": {
                            "type": "object",
                            "properties": {
                              "role": {
                                "type": "boolean"
                              },
                              "disposable": {
                                "type": "boolean"
                              },
                              "spamtrap": {
                                "type": "boolean"
                              },
                              "freeProvider": {
                                "type": "boolean"
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:role|disposable|spamtrap|freeProvider)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "role",
                                "disposable",
                                "spamtrap",
                                "freeProvider"
                              ]
                            }
                          },
                          "verifiedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "email",
                          "status",
                          "source",
                          "confidence",
                          "verifiedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:email|status|source|provider|confidence|flags|verifiedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "email",
                            "status",
                            "source",
                            "provider",
                            "confidence",
                            "flags",
                            "verifiedAt"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "email": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "runs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "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"
                                }
                              ]
                            },
                            "checkedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "hops": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "provider": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "valid",
                                      "invalid",
                                      "catch-all",
                                      "unknown",
                                      "disposable",
                                      "role",
                                      "spamtrap"
                                    ]
                                  },
                                  "rawStatus": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "confidence": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "resolved": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "provider",
                                  "status",
                                  "rawStatus",
                                  "confidence",
                                  "resolved"
                                ],
                                "patternProperties": {
                                  "^(?!(?:provider|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "provider",
                                    "status",
                                    "rawStatus",
                                    "confidence",
                                    "resolved"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "requestId",
                            "checkedAt",
                            "hops"
                          ],
                          "patternProperties": {
                            "^(?!(?:requestId|checkedAt|hops)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "requestId",
                              "checkedAt",
                              "hops"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "email",
                      "runs"
                    ],
                    "patternProperties": {
                      "^(?!(?:email|runs)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "email",
                        "runs"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "knownCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "mostRecentAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "capped": {
                        "type": "boolean"
                      },
                      "cap": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "known": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "catch-all",
                                "unknown",
                                "disposable",
                                "role",
                                "spamtrap"
                              ]
                            },
                            "lastVerifiedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "email",
                            "status",
                            "lastVerifiedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:email|status|lastVerifiedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "email",
                              "status",
                              "lastVerifiedAt"
                            ]
                          }
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "total",
                      "knownCount",
                      "mostRecentAt",
                      "capped",
                      "cap",
                      "known"
                    ],
                    "patternProperties": {
                      "^(?!(?:total|knownCount|mostRecentAt|capped|cap|known)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "total",
                        "knownCount",
                        "mostRecentAt",
                        "capped",
                        "cap",
                        "known"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "providers": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "attempts": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "resolved": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "resolvedValid": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "resolvedInvalid": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "resolvedCatchAll": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "provider",
                            "attempts",
                            "resolved",
                            "resolvedValid",
                            "resolvedInvalid",
                            "resolvedCatchAll"
                          ],
                          "patternProperties": {
                            "^(?!(?:provider|attempts|resolved|resolvedValid|resolvedInvalid|resolvedCatchAll)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "provider",
                              "attempts",
                              "resolved",
                              "resolvedValid",
                              "resolvedInvalid",
                              "resolvedCatchAll"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "providers"
                    ],
                    "patternProperties": {
                      "^(?!(?:providers)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "providers"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runs": {
                        "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"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "single",
                                "bulk"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "running",
                                "completed",
                                "failed"
                              ]
                            },
                            "total": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "processed": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "countValid": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "countInvalid": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "countCatchAll": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "countUnknown": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "requestedBy": {
                              "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"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "completedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "kind",
                            "status",
                            "total",
                            "processed",
                            "countValid",
                            "countInvalid",
                            "countCatchAll",
                            "countUnknown",
                            "requestedBy",
                            "createdAt",
                            "completedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|kind|status|total|processed|countValid|countInvalid|countCatchAll|countUnknown|requestedBy|createdAt|completedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "kind",
                              "status",
                              "total",
                              "processed",
                              "countValid",
                              "countInvalid",
                              "countCatchAll",
                              "countUnknown",
                              "requestedBy",
                              "createdAt",
                              "completedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "runs"
                    ],
                    "patternProperties": {
                      "^(?!(?:runs)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "runs"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "run": {
                            "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"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "single",
                                  "bulk"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "completed",
                                  "failed"
                                ]
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "processed": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "countValid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "countInvalid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "countCatchAll": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "countUnknown": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "requestedBy": {
                                "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"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "completedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "kind",
                              "status",
                              "total",
                              "processed",
                              "countValid",
                              "countInvalid",
                              "countCatchAll",
                              "countUnknown",
                              "requestedBy",
                              "createdAt",
                              "completedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|kind|status|total|processed|countValid|countInvalid|countCatchAll|countUnknown|requestedBy|createdAt|completedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "kind",
                                "status",
                                "total",
                                "processed",
                                "countValid",
                                "countInvalid",
                                "countCatchAll",
                                "countUnknown",
                                "requestedBy",
                                "createdAt",
                                "completedAt"
                              ]
                            }
                          },
                          "addresses": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "email": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "catch-all",
                                    "unknown",
                                    "disposable",
                                    "role",
                                    "spamtrap"
                                  ]
                                },
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "email",
                                "status",
                                "provider"
                              ],
                              "patternProperties": {
                                "^(?!(?:email|status|provider)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "status",
                                  "provider"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "run",
                          "addresses"
                        ],
                        "patternProperties": {
                          "^(?!(?:run|addresses)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "run",
                            "addresses"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "idle",
                          "running",
                          "completed",
                          "failed"
                        ]
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "processed": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "progress": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "counts": {
                        "type": "object",
                        "properties": {
                          "valid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "invalid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "catchAll": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unknown": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "valid",
                          "invalid",
                          "catchAll",
                          "unknown"
                        ],
                        "patternProperties": {
                          "^(?!(?:valid|invalid|catchAll|unknown)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "valid",
                            "invalid",
                            "catchAll",
                            "unknown"
                          ]
                        }
                      }
                    },
                    "required": [
                      "runId",
                      "state",
                      "total",
                      "processed",
                      "progress",
                      "counts"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|state|total|processed|progress|counts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "state",
                        "total",
                        "processed",
                        "progress",
                        "counts"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "billingEnabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      },
                      "balance": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "reserved": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "available": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "billingEnabled",
                      "balance",
                      "reserved",
                      "available"
                    ],
                    "patternProperties": {
                      "^(?!(?:billingEnabled|balance|reserved|available)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "billingEnabled",
                        "balance",
                        "reserved",
                        "available"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "estimatedCredits": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "estimatedCredits"
                    ],
                    "patternProperties": {
                      "^(?!(?:estimatedCredits)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "estimatedCredits"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "phone": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "valid",
                          "invalid",
                          "unknown"
                        ]
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "cache",
                          "format",
                          "provider"
                        ]
                      },
                      "provider": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "confidence": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "flags": {
                        "type": "object",
                        "properties": {
                          "lineType": {
                            "type": "string",
                            "enum": [
                              "mobile",
                              "landline",
                              "voip",
                              "toll_free",
                              "premium",
                              "unknown"
                            ]
                          },
                          "carrier": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "isPrepaid": {
                            "type": "boolean"
                          },
                          "activityScore": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "isLitigatorRisk": {
                            "type": "boolean"
                          },
                          "countryCode": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "e164Format": {
                            "$ref": "#/$defs/ShortText"
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|countryCode|e164Format)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "lineType",
                            "carrier",
                            "isPrepaid",
                            "activityScore",
                            "isLitigatorRisk",
                            "countryCode",
                            "e164Format"
                          ]
                        }
                      },
                      "verifiedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fromCache": {
                        "type": "boolean"
                      },
                      "attempts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "providerId": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "catch-all",
                                "unknown",
                                "disposable",
                                "role",
                                "spamtrap"
                              ]
                            },
                            "rawStatus": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confidence": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "resolved": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "providerId",
                            "status",
                            "rawStatus",
                            "confidence",
                            "resolved"
                          ],
                          "patternProperties": {
                            "^(?!(?:providerId|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "providerId",
                              "status",
                              "rawStatus",
                              "confidence",
                              "resolved"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "phone",
                      "status",
                      "source",
                      "provider",
                      "confidence",
                      "verifiedAt",
                      "fromCache",
                      "attempts"
                    ],
                    "patternProperties": {
                      "^(?!(?:phone|status|source|provider|confidence|flags|verifiedAt|fromCache|attempts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "phone",
                        "status",
                        "source",
                        "provider",
                        "confidence",
                        "flags",
                        "verifiedAt",
                        "fromCache",
                        "attempts"
                      ]
                    }
                  },
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "phoneNumber": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "provider": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "valid",
                              "invalid",
                              "unknown"
                            ]
                          },
                          "rawStatus": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lineType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "mobile",
                                  "landline",
                                  "voip",
                                  "toll_free",
                                  "premium",
                                  "unknown"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "carrier": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isPrepaid": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activityScore": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isLitigatorRisk": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "countryCode": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "e164Format": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "verificationRequestId": {
                            "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"
                              }
                            ]
                          },
                          "runId": {
                            "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"
                              }
                            ]
                          },
                          "resolved": {
                            "type": "boolean"
                          },
                          "checkedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "phoneNumber",
                          "provider",
                          "status",
                          "rawStatus",
                          "confidence",
                          "lineType",
                          "carrier",
                          "isPrepaid",
                          "activityScore",
                          "isLitigatorRisk",
                          "countryCode",
                          "e164Format",
                          "verificationRequestId",
                          "runId",
                          "resolved",
                          "checkedAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|phoneNumber|provider|status|rawStatus|confidence|lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|countryCode|e164Format|verificationRequestId|runId|resolved|checkedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "phoneNumber",
                            "provider",
                            "status",
                            "rawStatus",
                            "confidence",
                            "lineType",
                            "carrier",
                            "isPrepaid",
                            "activityScore",
                            "isLitigatorRisk",
                            "countryCode",
                            "e164Format",
                            "verificationRequestId",
                            "runId",
                            "resolved",
                            "checkedAt",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "phoneNumber": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "unknown"
                              ]
                            },
                            "provider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "confidence": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lineType": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "mobile",
                                    "landline",
                                    "voip",
                                    "toll_free",
                                    "premium",
                                    "unknown"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "carrier": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isPrepaid": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "activityScore": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isLitigatorRisk": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "e164Format": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "checkedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "phoneNumber",
                            "status",
                            "provider",
                            "confidence",
                            "lineType",
                            "carrier",
                            "isPrepaid",
                            "activityScore",
                            "isLitigatorRisk",
                            "e164Format",
                            "checkedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:phoneNumber|status|provider|confidence|lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|e164Format|checkedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "phoneNumber",
                              "status",
                              "provider",
                              "confidence",
                              "lineType",
                              "carrier",
                              "isPrepaid",
                              "activityScore",
                              "isLitigatorRisk",
                              "e164Format",
                              "checkedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "results"
                    ],
                    "patternProperties": {
                      "^(?!(?:results)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "results"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "results": {
                        "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"
                            },
                            "phoneNumber": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "provider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "unknown"
                              ]
                            },
                            "rawStatus": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "confidence": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lineType": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "mobile",
                                    "landline",
                                    "voip",
                                    "toll_free",
                                    "premium",
                                    "unknown"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "carrier": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isPrepaid": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "activityScore": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isLitigatorRisk": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countryCode": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "e164Format": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "verificationRequestId": {
                              "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"
                                }
                              ]
                            },
                            "runId": {
                              "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"
                                }
                              ]
                            },
                            "resolved": {
                              "type": "boolean"
                            },
                            "checkedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "phoneNumber",
                            "provider",
                            "status",
                            "rawStatus",
                            "confidence",
                            "lineType",
                            "carrier",
                            "isPrepaid",
                            "activityScore",
                            "isLitigatorRisk",
                            "countryCode",
                            "e164Format",
                            "verificationRequestId",
                            "runId",
                            "resolved",
                            "checkedAt",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|phoneNumber|provider|status|rawStatus|confidence|lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|countryCode|e164Format|verificationRequestId|runId|resolved|checkedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "phoneNumber",
                              "provider",
                              "status",
                              "rawStatus",
                              "confidence",
                              "lineType",
                              "carrier",
                              "isPrepaid",
                              "activityScore",
                              "isLitigatorRisk",
                              "countryCode",
                              "e164Format",
                              "verificationRequestId",
                              "runId",
                              "resolved",
                              "checkedAt",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "results"
                    ],
                    "patternProperties": {
                      "^(?!(?:results)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "results"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runs": {
                        "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"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "single",
                                "bulk"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "running",
                                "completed",
                                "failed"
                              ]
                            },
                            "total": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "processed": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "countValid": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "countInvalid": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "countUnknown": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "requestedBy": {
                              "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"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "completedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "kind",
                            "status",
                            "total",
                            "processed",
                            "countValid",
                            "countInvalid",
                            "countUnknown",
                            "requestedBy",
                            "createdAt",
                            "completedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|kind|status|total|processed|countValid|countInvalid|countUnknown|requestedBy|createdAt|completedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "kind",
                              "status",
                              "total",
                              "processed",
                              "countValid",
                              "countInvalid",
                              "countUnknown",
                              "requestedBy",
                              "createdAt",
                              "completedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "runs"
                    ],
                    "patternProperties": {
                      "^(?!(?:runs)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "runs"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "single",
                              "bulk"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "completed",
                              "failed"
                            ]
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "processed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "countValid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "countInvalid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "countUnknown": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "requestedBy": {
                            "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"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "status",
                          "total",
                          "processed",
                          "countValid",
                          "countInvalid",
                          "countUnknown",
                          "requestedBy",
                          "createdAt",
                          "completedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|kind|status|total|processed|countValid|countInvalid|countUnknown|requestedBy|createdAt|completedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "kind",
                            "status",
                            "total",
                            "processed",
                            "countValid",
                            "countInvalid",
                            "countUnknown",
                            "requestedBy",
                            "createdAt",
                            "completedAt"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "idle",
                          "running",
                          "completed",
                          "failed"
                        ]
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "processed": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "progress": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "counts": {
                        "type": "object",
                        "properties": {
                          "valid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "invalid": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unknown": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "valid",
                          "invalid",
                          "unknown"
                        ],
                        "patternProperties": {
                          "^(?!(?:valid|invalid|unknown)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "valid",
                            "invalid",
                            "unknown"
                          ]
                        }
                      }
                    },
                    "required": [
                      "runId",
                      "state",
                      "total",
                      "processed",
                      "progress",
                      "counts"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|state|total|processed|progress|counts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "state",
                        "total",
                        "processed",
                        "progress",
                        "counts"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "email": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "valid",
                              "invalid",
                              "catch-all",
                              "unknown",
                              "disposable",
                              "role",
                              "spamtrap"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "cache",
                              "dns",
                              "provider"
                            ]
                          },
                          "provider": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "flags": {
                            "type": "object",
                            "properties": {
                              "role": {
                                "type": "boolean"
                              },
                              "disposable": {
                                "type": "boolean"
                              },
                              "spamtrap": {
                                "type": "boolean"
                              },
                              "freeProvider": {
                                "type": "boolean"
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:role|disposable|spamtrap|freeProvider)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "role",
                                "disposable",
                                "spamtrap",
                                "freeProvider"
                              ]
                            }
                          },
                          "verifiedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "fromCache": {
                            "type": "boolean"
                          },
                          "attempts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "providerId": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "catch-all",
                                    "unknown",
                                    "disposable",
                                    "role",
                                    "spamtrap"
                                  ]
                                },
                                "rawStatus": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "confidence": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "resolved": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "providerId",
                                "status",
                                "rawStatus",
                                "confidence",
                                "resolved"
                              ],
                              "patternProperties": {
                                "^(?!(?:providerId|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "providerId",
                                  "status",
                                  "rawStatus",
                                  "confidence",
                                  "resolved"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "email",
                          "status",
                          "source",
                          "provider",
                          "confidence",
                          "verifiedAt",
                          "fromCache",
                          "attempts"
                        ],
                        "patternProperties": {
                          "^(?!(?:email|status|source|provider|confidence|flags|verifiedAt|fromCache|attempts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "email",
                            "status",
                            "source",
                            "provider",
                            "confidence",
                            "flags",
                            "verifiedAt",
                            "fromCache",
                            "attempts"
                          ]
                        }
                      },
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "email": {
                                "$ref": "#/$defs/EmailAddress"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "valid",
                                  "invalid",
                                  "catch-all",
                                  "unknown",
                                  "disposable",
                                  "role",
                                  "spamtrap"
                                ]
                              },
                              "source": {
                                "type": "string",
                                "enum": [
                                  "provider",
                                  "dns",
                                  "sending-signal",
                                  "cache"
                                ]
                              },
                              "provider": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "confidence": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 100
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "flags": {
                                "type": "object",
                                "properties": {
                                  "role": {
                                    "type": "boolean"
                                  },
                                  "disposable": {
                                    "type": "boolean"
                                  },
                                  "spamtrap": {
                                    "type": "boolean"
                                  },
                                  "freeProvider": {
                                    "type": "boolean"
                                  }
                                },
                                "patternProperties": {
                                  "^(?!(?:role|disposable|spamtrap|freeProvider)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "role",
                                    "disposable",
                                    "spamtrap",
                                    "freeProvider"
                                  ]
                                }
                              },
                              "verifiedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "email",
                              "status",
                              "source",
                              "confidence",
                              "verifiedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:email|status|source|provider|confidence|flags|verifiedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "email",
                                "status",
                                "source",
                                "provider",
                                "confidence",
                                "flags",
                                "verifiedAt"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "email": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "runs": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "requestId": {
                                  "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"
                                    }
                                  ]
                                },
                                "checkedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "hops": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "provider": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "valid",
                                          "invalid",
                                          "catch-all",
                                          "unknown",
                                          "disposable",
                                          "role",
                                          "spamtrap"
                                        ]
                                      },
                                      "rawStatus": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "confidence": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 100
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "resolved": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "provider",
                                      "status",
                                      "rawStatus",
                                      "confidence",
                                      "resolved"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:provider|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "provider",
                                        "status",
                                        "rawStatus",
                                        "confidence",
                                        "resolved"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "requestId",
                                "checkedAt",
                                "hops"
                              ],
                              "patternProperties": {
                                "^(?!(?:requestId|checkedAt|hops)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "requestId",
                                  "checkedAt",
                                  "hops"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "email",
                          "runs"
                        ],
                        "patternProperties": {
                          "^(?!(?:email|runs)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "email",
                            "runs"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "knownCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "mostRecentAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "capped": {
                            "type": "boolean"
                          },
                          "cap": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "known": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "email": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "catch-all",
                                    "unknown",
                                    "disposable",
                                    "role",
                                    "spamtrap"
                                  ]
                                },
                                "lastVerifiedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "email",
                                "status",
                                "lastVerifiedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:email|status|lastVerifiedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "status",
                                  "lastVerifiedAt"
                                ]
                              }
                            },
                            "maxItems": 100
                          }
                        },
                        "required": [
                          "total",
                          "knownCount",
                          "mostRecentAt",
                          "capped",
                          "cap",
                          "known"
                        ],
                        "patternProperties": {
                          "^(?!(?:total|knownCount|mostRecentAt|capped|cap|known)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "total",
                            "knownCount",
                            "mostRecentAt",
                            "capped",
                            "cap",
                            "known"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "providers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "attempts": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "resolved": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "resolvedValid": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "resolvedInvalid": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "resolvedCatchAll": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "provider",
                                "attempts",
                                "resolved",
                                "resolvedValid",
                                "resolvedInvalid",
                                "resolvedCatchAll"
                              ],
                              "patternProperties": {
                                "^(?!(?:provider|attempts|resolved|resolvedValid|resolvedInvalid|resolvedCatchAll)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "provider",
                                  "attempts",
                                  "resolved",
                                  "resolvedValid",
                                  "resolvedInvalid",
                                  "resolvedCatchAll"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "providers"
                        ],
                        "patternProperties": {
                          "^(?!(?:providers)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "providers"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runs": {
                            "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"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "single",
                                    "bulk"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "queued",
                                    "running",
                                    "completed",
                                    "failed"
                                  ]
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "processed": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "countValid": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "countInvalid": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "countCatchAll": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "countUnknown": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "requestedBy": {
                                  "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"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "completedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "kind",
                                "status",
                                "total",
                                "processed",
                                "countValid",
                                "countInvalid",
                                "countCatchAll",
                                "countUnknown",
                                "requestedBy",
                                "createdAt",
                                "completedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|kind|status|total|processed|countValid|countInvalid|countCatchAll|countUnknown|requestedBy|createdAt|completedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "kind",
                                  "status",
                                  "total",
                                  "processed",
                                  "countValid",
                                  "countInvalid",
                                  "countCatchAll",
                                  "countUnknown",
                                  "requestedBy",
                                  "createdAt",
                                  "completedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "runs"
                        ],
                        "patternProperties": {
                          "^(?!(?:runs)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "runs"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "run": {
                                "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"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "single",
                                      "bulk"
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "queued",
                                      "running",
                                      "completed",
                                      "failed"
                                    ]
                                  },
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "processed": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "countValid": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "countInvalid": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "countCatchAll": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "countUnknown": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "requestedBy": {
                                    "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"
                                      }
                                    ]
                                  },
                                  "createdAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "completedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "kind",
                                  "status",
                                  "total",
                                  "processed",
                                  "countValid",
                                  "countInvalid",
                                  "countCatchAll",
                                  "countUnknown",
                                  "requestedBy",
                                  "createdAt",
                                  "completedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|kind|status|total|processed|countValid|countInvalid|countCatchAll|countUnknown|requestedBy|createdAt|completedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "kind",
                                    "status",
                                    "total",
                                    "processed",
                                    "countValid",
                                    "countInvalid",
                                    "countCatchAll",
                                    "countUnknown",
                                    "requestedBy",
                                    "createdAt",
                                    "completedAt"
                                  ]
                                }
                              },
                              "addresses": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "email": {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "valid",
                                        "invalid",
                                        "catch-all",
                                        "unknown",
                                        "disposable",
                                        "role",
                                        "spamtrap"
                                      ]
                                    },
                                    "provider": {
                                      "$ref": "#/$defs/ShortText"
                                    }
                                  },
                                  "required": [
                                    "email",
                                    "status",
                                    "provider"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:email|status|provider)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "email",
                                      "status",
                                      "provider"
                                    ]
                                  }
                                }
                              }
                            },
                            "required": [
                              "run",
                              "addresses"
                            ],
                            "patternProperties": {
                              "^(?!(?:run|addresses)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "run",
                                "addresses"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "idle",
                              "running",
                              "completed",
                              "failed"
                            ]
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "processed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "progress": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "counts": {
                            "type": "object",
                            "properties": {
                              "valid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "invalid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "catchAll": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unknown": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "valid",
                              "invalid",
                              "catchAll",
                              "unknown"
                            ],
                            "patternProperties": {
                              "^(?!(?:valid|invalid|catchAll|unknown)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "catchAll",
                                "unknown"
                              ]
                            }
                          }
                        },
                        "required": [
                          "runId",
                          "state",
                          "total",
                          "processed",
                          "progress",
                          "counts"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|state|total|processed|progress|counts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "state",
                            "total",
                            "processed",
                            "progress",
                            "counts"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "billingEnabled": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          },
                          "balance": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "reserved": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "available": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "billingEnabled",
                          "balance",
                          "reserved",
                          "available"
                        ],
                        "patternProperties": {
                          "^(?!(?:billingEnabled|balance|reserved|available)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "billingEnabled",
                            "balance",
                            "reserved",
                            "available"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "estimatedCredits": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "estimatedCredits"
                        ],
                        "patternProperties": {
                          "^(?!(?:estimatedCredits)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "estimatedCredits"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "phone": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "valid",
                              "invalid",
                              "unknown"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "cache",
                              "format",
                              "provider"
                            ]
                          },
                          "provider": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "flags": {
                            "type": "object",
                            "properties": {
                              "lineType": {
                                "type": "string",
                                "enum": [
                                  "mobile",
                                  "landline",
                                  "voip",
                                  "toll_free",
                                  "premium",
                                  "unknown"
                                ]
                              },
                              "carrier": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "isPrepaid": {
                                "type": "boolean"
                              },
                              "activityScore": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "isLitigatorRisk": {
                                "type": "boolean"
                              },
                              "countryCode": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "e164Format": {
                                "$ref": "#/$defs/ShortText"
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|countryCode|e164Format)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "lineType",
                                "carrier",
                                "isPrepaid",
                                "activityScore",
                                "isLitigatorRisk",
                                "countryCode",
                                "e164Format"
                              ]
                            }
                          },
                          "verifiedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "fromCache": {
                            "type": "boolean"
                          },
                          "attempts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "providerId": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "catch-all",
                                    "unknown",
                                    "disposable",
                                    "role",
                                    "spamtrap"
                                  ]
                                },
                                "rawStatus": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "confidence": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "resolved": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "providerId",
                                "status",
                                "rawStatus",
                                "confidence",
                                "resolved"
                              ],
                              "patternProperties": {
                                "^(?!(?:providerId|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "providerId",
                                  "status",
                                  "rawStatus",
                                  "confidence",
                                  "resolved"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "phone",
                          "status",
                          "source",
                          "provider",
                          "confidence",
                          "verifiedAt",
                          "fromCache",
                          "attempts"
                        ],
                        "patternProperties": {
                          "^(?!(?:phone|status|source|provider|confidence|flags|verifiedAt|fromCache|attempts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "phone",
                            "status",
                            "source",
                            "provider",
                            "confidence",
                            "flags",
                            "verifiedAt",
                            "fromCache",
                            "attempts"
                          ]
                        }
                      },
                      {
                        "anyOf": [
                          {
                            "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"
                              },
                              "phoneNumber": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "provider": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "valid",
                                  "invalid",
                                  "unknown"
                                ]
                              },
                              "rawStatus": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "confidence": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 100
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "lineType": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "mobile",
                                      "landline",
                                      "voip",
                                      "toll_free",
                                      "premium",
                                      "unknown"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "carrier": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "isPrepaid": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "activityScore": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "isLitigatorRisk": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "countryCode": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "e164Format": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "verificationRequestId": {
                                "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"
                                  }
                                ]
                              },
                              "runId": {
                                "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"
                                  }
                                ]
                              },
                              "resolved": {
                                "type": "boolean"
                              },
                              "checkedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "id",
                              "phoneNumber",
                              "provider",
                              "status",
                              "rawStatus",
                              "confidence",
                              "lineType",
                              "carrier",
                              "isPrepaid",
                              "activityScore",
                              "isLitigatorRisk",
                              "countryCode",
                              "e164Format",
                              "verificationRequestId",
                              "runId",
                              "resolved",
                              "checkedAt",
                              "createdAt",
                              "updatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|phoneNumber|provider|status|rawStatus|confidence|lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|countryCode|e164Format|verificationRequestId|runId|resolved|checkedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "phoneNumber",
                                "provider",
                                "status",
                                "rawStatus",
                                "confidence",
                                "lineType",
                                "carrier",
                                "isPrepaid",
                                "activityScore",
                                "isLitigatorRisk",
                                "countryCode",
                                "e164Format",
                                "verificationRequestId",
                                "runId",
                                "resolved",
                                "checkedAt",
                                "createdAt",
                                "updatedAt"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "results": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "phoneNumber": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "unknown"
                                  ]
                                },
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "confidence": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lineType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "mobile",
                                        "landline",
                                        "voip",
                                        "toll_free",
                                        "premium",
                                        "unknown"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "carrier": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isPrepaid": {
                                  "anyOf": [
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activityScore": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isLitigatorRisk": {
                                  "anyOf": [
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "e164Format": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "checkedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "phoneNumber",
                                "status",
                                "provider",
                                "confidence",
                                "lineType",
                                "carrier",
                                "isPrepaid",
                                "activityScore",
                                "isLitigatorRisk",
                                "e164Format",
                                "checkedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:phoneNumber|status|provider|confidence|lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|e164Format|checkedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "phoneNumber",
                                  "status",
                                  "provider",
                                  "confidence",
                                  "lineType",
                                  "carrier",
                                  "isPrepaid",
                                  "activityScore",
                                  "isLitigatorRisk",
                                  "e164Format",
                                  "checkedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "results"
                        ],
                        "patternProperties": {
                          "^(?!(?:results)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "results"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "results": {
                            "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"
                                },
                                "phoneNumber": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "unknown"
                                  ]
                                },
                                "rawStatus": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "confidence": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lineType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "mobile",
                                        "landline",
                                        "voip",
                                        "toll_free",
                                        "premium",
                                        "unknown"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "carrier": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isPrepaid": {
                                  "anyOf": [
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activityScore": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isLitigatorRisk": {
                                  "anyOf": [
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countryCode": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "e164Format": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "verificationRequestId": {
                                  "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"
                                    }
                                  ]
                                },
                                "runId": {
                                  "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"
                                    }
                                  ]
                                },
                                "resolved": {
                                  "type": "boolean"
                                },
                                "checkedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "phoneNumber",
                                "provider",
                                "status",
                                "rawStatus",
                                "confidence",
                                "lineType",
                                "carrier",
                                "isPrepaid",
                                "activityScore",
                                "isLitigatorRisk",
                                "countryCode",
                                "e164Format",
                                "verificationRequestId",
                                "runId",
                                "resolved",
                                "checkedAt",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|phoneNumber|provider|status|rawStatus|confidence|lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|countryCode|e164Format|verificationRequestId|runId|resolved|checkedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "phoneNumber",
                                  "provider",
                                  "status",
                                  "rawStatus",
                                  "confidence",
                                  "lineType",
                                  "carrier",
                                  "isPrepaid",
                                  "activityScore",
                                  "isLitigatorRisk",
                                  "countryCode",
                                  "e164Format",
                                  "verificationRequestId",
                                  "runId",
                                  "resolved",
                                  "checkedAt",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "results"
                        ],
                        "patternProperties": {
                          "^(?!(?:results)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "results"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runs": {
                            "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"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "single",
                                    "bulk"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "queued",
                                    "running",
                                    "completed",
                                    "failed"
                                  ]
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "processed": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "countValid": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "countInvalid": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "countUnknown": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "requestedBy": {
                                  "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"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "completedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "kind",
                                "status",
                                "total",
                                "processed",
                                "countValid",
                                "countInvalid",
                                "countUnknown",
                                "requestedBy",
                                "createdAt",
                                "completedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|kind|status|total|processed|countValid|countInvalid|countUnknown|requestedBy|createdAt|completedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "kind",
                                  "status",
                                  "total",
                                  "processed",
                                  "countValid",
                                  "countInvalid",
                                  "countUnknown",
                                  "requestedBy",
                                  "createdAt",
                                  "completedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "runs"
                        ],
                        "patternProperties": {
                          "^(?!(?:runs)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "runs"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "anyOf": [
                          {
                            "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"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "single",
                                  "bulk"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "completed",
                                  "failed"
                                ]
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "processed": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "countValid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "countInvalid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "countUnknown": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "requestedBy": {
                                "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"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "completedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "kind",
                              "status",
                              "total",
                              "processed",
                              "countValid",
                              "countInvalid",
                              "countUnknown",
                              "requestedBy",
                              "createdAt",
                              "completedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|kind|status|total|processed|countValid|countInvalid|countUnknown|requestedBy|createdAt|completedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "kind",
                                "status",
                                "total",
                                "processed",
                                "countValid",
                                "countInvalid",
                                "countUnknown",
                                "requestedBy",
                                "createdAt",
                                "completedAt"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "idle",
                              "running",
                              "completed",
                              "failed"
                            ]
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "processed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "progress": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "counts": {
                            "type": "object",
                            "properties": {
                              "valid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "invalid": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unknown": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "valid",
                              "invalid",
                              "unknown"
                            ],
                            "patternProperties": {
                              "^(?!(?:valid|invalid|unknown)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "unknown"
                              ]
                            }
                          }
                        },
                        "required": [
                          "runId",
                          "state",
                          "total",
                          "processed",
                          "progress",
                          "counts"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|state|total|processed|progress|counts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "state",
                            "total",
                            "processed",
                            "progress",
                            "counts"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_verification_results"
      },
      "scopes": [
        "emailVerification:read",
        "phoneVerification:read"
      ],
      "bundles": [
        "lead_hygiene"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "emailVerification.status",
        "emailVerification.getResult",
        "emailVerification.history",
        "emailVerification.freshness",
        "emailVerification.providerStats",
        "emailVerification.listRuns",
        "emailVerification.getRun",
        "emailVerification.creditBalance",
        "emailVerification.estimateCredits",
        "phoneVerification.status",
        "phoneVerification.getResult",
        "phoneVerification.getResults",
        "phoneVerification.history",
        "phoneVerification.listRuns",
        "phoneVerification.getRun"
      ],
      "invocations": [
        {
          "operationId": "emailVerification.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/verification/runs/:runId/status",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.getResult",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/verification/results/:email",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.history",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/verification/results/:email/history",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.freshness",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/verification/freshness",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.providerStats",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/verification/provider-stats",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.listRuns",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/verification/runs",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.getRun",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/verification/runs/:runId",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.creditBalance",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/verification/credits",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.estimateCredits",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/verification/credits/estimate",
          "workspaceScoped": false
        },
        {
          "operationId": "phoneVerification.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/phone-verification/runs/:runId/status",
          "workspaceScoped": false
        },
        {
          "operationId": "phoneVerification.getResult",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/phone-verification/results/:phone",
          "workspaceScoped": false
        },
        {
          "operationId": "phoneVerification.getResults",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/phone-verification/results/batch",
          "workspaceScoped": false
        },
        {
          "operationId": "phoneVerification.history",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/phone-verification/results/:phone/history",
          "workspaceScoped": false
        },
        {
          "operationId": "phoneVerification.listRuns",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/phone-verification/runs",
          "workspaceScoped": false
        },
        {
          "operationId": "phoneVerification.getRun",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/phone-verification/runs/:runId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          },
          "action": {
            "type": "string",
            "enum": [
              "result",
              "results",
              "history",
              "freshness",
              "provider_stats",
              "runs",
              "run",
              "run_status",
              "credit_balance",
              "estimate_credits"
            ]
          },
          "email": {
            "$ref": "#/$defs/EmailAddress"
          },
          "phone": {
            "$ref": "#/$defs/PhoneNumberInput"
          },
          "phones": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/PhoneNumberInput"
            },
            "minItems": 1,
            "maxItems": 500
          },
          "runId": {
            "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": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            ]
          },
          "freshness": {
            "type": "object",
            "properties": {
              "emails": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/EmailAddress"
                },
                "maxItems": 5000
              },
              "scope": {
                "type": "object",
                "properties": {
                  "campaignId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
                  },
                  "assigneeUserIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    }
                  }
                },
                "required": [
                  "campaignId"
                ],
                "patternProperties": {
                  "^(?!(?:campaignId|search|assigneeUserIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "campaignId",
                    "search",
                    "assigneeUserIds"
                  ]
                }
              }
            },
            "patternProperties": {
              "^(?!(?:emails|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "emails",
                "scope"
              ]
            }
          },
          "estimate": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 1
              }
            },
            "required": [
              "count"
            ],
            "patternProperties": {
              "^(?!(?:count)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "count"
                  ]
                }
              ]
            }
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          }
        },
        "required": [
          "workspaceId",
          "channel",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|channel|action|email|phone|phones|runId|freshness|estimate|limit)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "channel",
            "action",
            "email",
            "phone",
            "phones",
            "runId",
            "freshness",
            "estimate",
            "limit"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "PhoneNumberInput": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "verification-warmup",
      "name": "read_warmup_stats",
      "description": "Read warmup placement statistics for one inbox or the whole workspace — rates, daily series, and breakdowns, never peer identities.\n\nUse to report warmup progress, inbox placement, or follow-up funnel health for the workspace.\n\nStats are aggregates only; they never expose warmup peer addresses, and they do not manage providers or inboxes.",
      "inputSchema": {
        "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"
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "startDate": {
            "$ref": "#/$defs/LocalDate"
          },
          "endDate": {
            "$ref": "#/$defs/LocalDate"
          },
          "groupBy": {
            "type": "string",
            "enum": [
              "esp",
              "recipient_esp",
              "tag",
              "domain"
            ]
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxId|startDate|endDate|groupBy)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxId",
            "startDate",
            "endDate",
            "groupBy"
          ]
        },
        "$defs": {
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "summary": {
                        "type": "object",
                        "properties": {
                          "reputationScore": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "totalEmailsSent": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalEmailsReceived": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "deliverabilityRate": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "currentDailyVolume": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "targetDailyVolume": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "warmupProgress": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "reputationScore",
                          "totalEmailsSent",
                          "totalEmailsReceived",
                          "deliverabilityRate",
                          "currentDailyVolume",
                          "targetDailyVolume",
                          "warmupProgress"
                        ],
                        "patternProperties": {
                          "^(?!(?:reputationScore|totalEmailsSent|totalEmailsReceived|deliverabilityRate|currentDailyVolume|targetDailyVolume|warmupProgress)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "reputationScore",
                            "totalEmailsSent",
                            "totalEmailsReceived",
                            "deliverabilityRate",
                            "currentDailyVolume",
                            "targetDailyVolume",
                            "warmupProgress"
                          ]
                        }
                      },
                      "dailyStats": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "sent": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "received": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inboxDelivery": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spamDelivery": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "tabsDelivery": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "opens": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "sent",
                            "received",
                            "inboxDelivery",
                            "spamDelivery",
                            "tabsDelivery",
                            "opens"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|sent|received|inboxDelivery|spamDelivery|tabsDelivery|opens)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "sent",
                              "received",
                              "inboxDelivery",
                              "spamDelivery",
                              "tabsDelivery",
                              "opens"
                            ]
                          }
                        }
                      },
                      "sendsByProvider": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "sent": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "provider",
                            "sent"
                          ],
                          "patternProperties": {
                            "^(?!(?:provider|sent)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "provider",
                              "sent"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "summary",
                      "dailyStats",
                      "sendsByProvider"
                    ],
                    "patternProperties": {
                      "^(?!(?:summary|dailyStats|sendsByProvider)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "summary",
                        "dailyStats",
                        "sendsByProvider"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "inboxesWarming": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "object",
                        "properties": {
                          "sent": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "received": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "inbox": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "spam": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "tabs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "sentByUs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "neverArrived": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "awaitingConfirmation": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "inboxRate": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "spamRate": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "tabsRate": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "followUp": {
                            "type": "object",
                            "properties": {
                              "windowMinutes": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "eligible": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "observed": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unavailable": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pending": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "daily": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "date": {
                                      "$ref": "#/$defs/LocalDate"
                                    },
                                    "received": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "inbox": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "spam": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "tabs": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "date",
                                    "received",
                                    "inbox",
                                    "spam",
                                    "tabs"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:date|received|inbox|spam|tabs)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "date",
                                      "received",
                                      "inbox",
                                      "spam",
                                      "tabs"
                                    ]
                                  }
                                }
                              },
                              "groups": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "key": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "label": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "inboxCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "received": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "sent": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "inbox": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "spam": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "tabs": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "inboxRate": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    },
                                    "spamRate": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    },
                                    "tabsRate": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "label",
                                    "inboxCount",
                                    "received",
                                    "sent",
                                    "inbox",
                                    "spam",
                                    "tabs",
                                    "inboxRate",
                                    "spamRate",
                                    "tabsRate"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:key|label|inboxCount|received|sent|inbox|spam|tabs|inboxRate|spamRate|tabsRate)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "key",
                                      "label",
                                      "inboxCount",
                                      "received",
                                      "sent",
                                      "inbox",
                                      "spam",
                                      "tabs",
                                      "inboxRate",
                                      "spamRate",
                                      "tabsRate"
                                    ]
                                  }
                                }
                              }
                            },
                            "required": [
                              "windowMinutes",
                              "eligible",
                              "observed",
                              "unavailable",
                              "pending",
                              "daily",
                              "groups"
                            ],
                            "patternProperties": {
                              "^(?!(?:windowMinutes|eligible|observed|unavailable|pending|daily|groups)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "windowMinutes",
                                "eligible",
                                "observed",
                                "unavailable",
                                "pending",
                                "daily",
                                "groups"
                              ]
                            }
                          }
                        },
                        "required": [
                          "sent",
                          "received",
                          "inbox",
                          "spam",
                          "tabs",
                          "sentByUs",
                          "neverArrived",
                          "awaitingConfirmation",
                          "inboxRate",
                          "spamRate",
                          "tabsRate",
                          "followUp"
                        ],
                        "patternProperties": {
                          "^(?!(?:sent|received|inbox|spam|tabs|sentByUs|neverArrived|awaitingConfirmation|inboxRate|spamRate|tabsRate|followUp)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "sent",
                            "received",
                            "inbox",
                            "spam",
                            "tabs",
                            "sentByUs",
                            "neverArrived",
                            "awaitingConfirmation",
                            "inboxRate",
                            "spamRate",
                            "tabsRate",
                            "followUp"
                          ]
                        }
                      },
                      "daily": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "$ref": "#/$defs/LocalDate"
                            },
                            "sent": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "received": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inbox": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spam": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "tabs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "date",
                            "sent",
                            "received",
                            "inbox",
                            "spam",
                            "tabs"
                          ],
                          "patternProperties": {
                            "^(?!(?:date|sent|received|inbox|spam|tabs)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "date",
                              "sent",
                              "received",
                              "inbox",
                              "spam",
                              "tabs"
                            ]
                          }
                        }
                      },
                      "groups": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "key": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "label": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "inboxCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "received": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "sent": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inbox": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spam": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "tabs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inboxRate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "spamRate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "tabsRate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "key",
                            "label",
                            "inboxCount",
                            "received",
                            "sent",
                            "inbox",
                            "spam",
                            "tabs",
                            "inboxRate",
                            "spamRate",
                            "tabsRate"
                          ],
                          "patternProperties": {
                            "^(?!(?:key|label|inboxCount|received|sent|inbox|spam|tabs|inboxRate|spamRate|tabsRate)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "key",
                              "label",
                              "inboxCount",
                              "received",
                              "sent",
                              "inbox",
                              "spam",
                              "tabs",
                              "inboxRate",
                              "spamRate",
                              "tabsRate"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "inboxesWarming",
                      "summary",
                      "daily",
                      "groups"
                    ],
                    "patternProperties": {
                      "^(?!(?:inboxesWarming|summary|daily|groups)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "inboxesWarming",
                        "summary",
                        "daily",
                        "groups"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "type": "object",
                            "properties": {
                              "reputationScore": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "totalEmailsSent": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "totalEmailsReceived": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "deliverabilityRate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "currentDailyVolume": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "targetDailyVolume": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "warmupProgress": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "reputationScore",
                              "totalEmailsSent",
                              "totalEmailsReceived",
                              "deliverabilityRate",
                              "currentDailyVolume",
                              "targetDailyVolume",
                              "warmupProgress"
                            ],
                            "patternProperties": {
                              "^(?!(?:reputationScore|totalEmailsSent|totalEmailsReceived|deliverabilityRate|currentDailyVolume|targetDailyVolume|warmupProgress)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "reputationScore",
                                "totalEmailsSent",
                                "totalEmailsReceived",
                                "deliverabilityRate",
                                "currentDailyVolume",
                                "targetDailyVolume",
                                "warmupProgress"
                              ]
                            }
                          },
                          "dailyStats": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "sent": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "received": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inboxDelivery": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "spamDelivery": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "tabsDelivery": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "opens": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "sent",
                                "received",
                                "inboxDelivery",
                                "spamDelivery",
                                "tabsDelivery",
                                "opens"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|sent|received|inboxDelivery|spamDelivery|tabsDelivery|opens)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "sent",
                                  "received",
                                  "inboxDelivery",
                                  "spamDelivery",
                                  "tabsDelivery",
                                  "opens"
                                ]
                              }
                            }
                          },
                          "sendsByProvider": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "sent": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "provider",
                                "sent"
                              ],
                              "patternProperties": {
                                "^(?!(?:provider|sent)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "provider",
                                  "sent"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "summary",
                          "dailyStats",
                          "sendsByProvider"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|dailyStats|sendsByProvider)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "dailyStats",
                            "sendsByProvider"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "inboxesWarming": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "summary": {
                            "type": "object",
                            "properties": {
                              "sent": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "received": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "inbox": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "spam": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "tabs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "sentByUs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "neverArrived": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "awaitingConfirmation": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "inboxRate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "spamRate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "tabsRate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "followUp": {
                                "type": "object",
                                "properties": {
                                  "windowMinutes": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "eligible": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "observed": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "unavailable": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "pending": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "daily": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "date": {
                                          "$ref": "#/$defs/LocalDate"
                                        },
                                        "received": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "inbox": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "spam": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "tabs": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": [
                                        "date",
                                        "received",
                                        "inbox",
                                        "spam",
                                        "tabs"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:date|received|inbox|spam|tabs)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "date",
                                          "received",
                                          "inbox",
                                          "spam",
                                          "tabs"
                                        ]
                                      }
                                    }
                                  },
                                  "groups": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "key": {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        "label": {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        "inboxCount": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "received": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "sent": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "inbox": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "spam": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "tabs": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "inboxRate": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "Infinity",
                                                "-Infinity",
                                                "NaN"
                                              ]
                                            }
                                          ]
                                        },
                                        "spamRate": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "Infinity",
                                                "-Infinity",
                                                "NaN"
                                              ]
                                            }
                                          ]
                                        },
                                        "tabsRate": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "Infinity",
                                                "-Infinity",
                                                "NaN"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "label",
                                        "inboxCount",
                                        "received",
                                        "sent",
                                        "inbox",
                                        "spam",
                                        "tabs",
                                        "inboxRate",
                                        "spamRate",
                                        "tabsRate"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:key|label|inboxCount|received|sent|inbox|spam|tabs|inboxRate|spamRate|tabsRate)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "key",
                                          "label",
                                          "inboxCount",
                                          "received",
                                          "sent",
                                          "inbox",
                                          "spam",
                                          "tabs",
                                          "inboxRate",
                                          "spamRate",
                                          "tabsRate"
                                        ]
                                      }
                                    }
                                  }
                                },
                                "required": [
                                  "windowMinutes",
                                  "eligible",
                                  "observed",
                                  "unavailable",
                                  "pending",
                                  "daily",
                                  "groups"
                                ],
                                "patternProperties": {
                                  "^(?!(?:windowMinutes|eligible|observed|unavailable|pending|daily|groups)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "windowMinutes",
                                    "eligible",
                                    "observed",
                                    "unavailable",
                                    "pending",
                                    "daily",
                                    "groups"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "sent",
                              "received",
                              "inbox",
                              "spam",
                              "tabs",
                              "sentByUs",
                              "neverArrived",
                              "awaitingConfirmation",
                              "inboxRate",
                              "spamRate",
                              "tabsRate",
                              "followUp"
                            ],
                            "patternProperties": {
                              "^(?!(?:sent|received|inbox|spam|tabs|sentByUs|neverArrived|awaitingConfirmation|inboxRate|spamRate|tabsRate|followUp)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "sent",
                                "received",
                                "inbox",
                                "spam",
                                "tabs",
                                "sentByUs",
                                "neverArrived",
                                "awaitingConfirmation",
                                "inboxRate",
                                "spamRate",
                                "tabsRate",
                                "followUp"
                              ]
                            }
                          },
                          "daily": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "$ref": "#/$defs/LocalDate"
                                },
                                "sent": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "received": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inbox": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "spam": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "tabs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "date",
                                "sent",
                                "received",
                                "inbox",
                                "spam",
                                "tabs"
                              ],
                              "patternProperties": {
                                "^(?!(?:date|sent|received|inbox|spam|tabs)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "date",
                                  "sent",
                                  "received",
                                  "inbox",
                                  "spam",
                                  "tabs"
                                ]
                              }
                            }
                          },
                          "groups": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "label": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "inboxCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "received": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "sent": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inbox": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "spam": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "tabs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inboxRate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "spamRate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "tabsRate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "key",
                                "label",
                                "inboxCount",
                                "received",
                                "sent",
                                "inbox",
                                "spam",
                                "tabs",
                                "inboxRate",
                                "spamRate",
                                "tabsRate"
                              ],
                              "patternProperties": {
                                "^(?!(?:key|label|inboxCount|received|sent|inbox|spam|tabs|inboxRate|spamRate|tabsRate)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "key",
                                  "label",
                                  "inboxCount",
                                  "received",
                                  "sent",
                                  "inbox",
                                  "spam",
                                  "tabs",
                                  "inboxRate",
                                  "spamRate",
                                  "tabsRate"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "inboxesWarming",
                          "summary",
                          "daily",
                          "groups"
                        ],
                        "patternProperties": {
                          "^(?!(?:inboxesWarming|summary|daily|groups)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "inboxesWarming",
                            "summary",
                            "daily",
                            "groups"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_warmup_stats"
      },
      "scopes": [
        "inbox:read"
      ],
      "bundles": [
        "warmup"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "warmupStats.inbox",
        "warmupStats.organization"
      ],
      "invocations": [
        {
          "operationId": "warmupStats.inbox",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/warmup/stats/inboxes/:inboxId",
          "workspaceScoped": false
        },
        {
          "operationId": "warmupStats.organization",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/warmup/stats/organization",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "startDate": {
            "$ref": "#/$defs/LocalDate"
          },
          "endDate": {
            "$ref": "#/$defs/LocalDate"
          },
          "groupBy": {
            "type": "string",
            "enum": [
              "esp",
              "recipient_esp",
              "tag",
              "domain"
            ]
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxId|startDate|endDate|groupBy)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxId",
            "startDate",
            "endDate",
            "groupBy"
          ]
        },
        "$defs": {
          "LocalDate": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        }
      }
    },
    {
      "feature": "workflows",
      "name": "read_workflow_connectors",
      "description": "Read what this workspace's workflow blocks can reach: which enrichment and agent providers are connected, which Conductor projects and Clay/Floqer routines a block may name, which apps and MCP servers an agent block may call and with which tools, the MXToolbox blacklist catalog, and the reply-rate report a rotation workflow acts on.\n\nUse before proposing or explaining a graph that needs a provider — it is the only way to tell whether a block would actually run — and to ground any claim about which tools an agent block is allowed to call. The MCP probe reports everything a server advertises, which is where a tool allowlist is chosen from.\n\nA connection read answers `detailsRedacted: true` when the caller may see that a provider is connected but not which key backs it; that is authorization, not an error, and the key itself is never returned to anyone. `connected: false` on a project or routine list means nothing is connected, not that the account is empty. This never connects, retires, or re-points anything.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "provider_connection"
                ]
              },
              "provider": {
                "$ref": "#/$defs/ProviderKeyConnector"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "provider"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|provider)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "provider"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "conductor_projects"
                ]
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "external_connection"
                ]
              },
              "externalProvider": {
                "$ref": "#/$defs/ExternalWorkflowProvider"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "externalProvider"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|externalProvider)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "externalProvider"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "external_routine"
                ]
              },
              "externalProvider": {
                "$ref": "#/$defs/ExternalWorkflowProvider"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "targetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "externalProvider",
              "connectionId",
              "targetId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|externalProvider|connectionId|targetId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "externalProvider",
                "connectionId",
                "targetId"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "app_catalog"
                ]
              },
              "catalog": {
                "type": "object",
                "properties": {
                  "search": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "cursor": {
                    "$ref": "#/$defs/Cursor"
                  }
                },
                "patternProperties": {
                  "^(?!(?:search|cursor)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "search",
                    "cursor"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|catalog)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "catalog"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "app_tools"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|connectionId|cursor)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "connectionId",
                "cursor"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "mcp_servers"
                ]
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "mcp_server_test"
                ]
              },
              "serverId": {
                "$ref": "#/$defs/WorkflowMcpServerId"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "serverId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|serverId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "serverId"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "mxtoolbox_connection"
                ]
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope"
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "domain_report"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|scope|workflowId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "scope",
                "workflowId"
              ]
            }
          }
        ],
        "$defs": {
          "ProviderKeyConnector": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor"
            ]
          },
          "ExternalWorkflowProvider": {
            "type": "string",
            "enum": [
              "clay",
              "floqer"
            ]
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "WorkflowMcpServerId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "ProviderKeyConnector": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor"
            ]
          },
          "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$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ConnectorMediumText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "ExternalWorkflowProvider": {
            "type": "string",
            "enum": [
              "clay",
              "floqer"
            ]
          },
          "ConnectorLongText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8192
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "WorkflowMcpServerId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "DomainName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "pattern": "^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "$ref": "#/$defs/ProviderKeyConnector"
                      },
                      "connected": {
                        "type": "boolean"
                      },
                      "connection": {
                        "anyOf": [
                          {
                            "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"
                              },
                              "label": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "active": {
                                "type": "boolean"
                              },
                              "lastValidatedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "label",
                              "active",
                              "lastValidatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|label|active|lastValidatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "label",
                                "active",
                                "lastValidatedAt"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "detailsRedacted": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "provider",
                      "connected",
                      "connection",
                      "detailsRedacted"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|connected|connection|detailsRedacted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "connected",
                        "connection",
                        "detailsRedacted"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "enum": [
                          "prospeo"
                        ]
                      },
                      "connected": {
                        "type": "boolean"
                      },
                      "connection": {
                        "anyOf": [
                          {
                            "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"
                              },
                              "label": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "active": {
                                "type": "boolean"
                              },
                              "lastValidatedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "label",
                              "active",
                              "lastValidatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|label|active|lastValidatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "label",
                                "active",
                                "lastValidatedAt"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "detailsRedacted": {
                        "type": "boolean"
                      },
                      "account": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "currentPlan": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "currentTeamMembers": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "remainingCredits": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "usedCredits": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "nextQuotaRenewalDays": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "nextQuotaRenewalDate": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "currentPlan",
                              "currentTeamMembers",
                              "remainingCredits",
                              "usedCredits",
                              "nextQuotaRenewalDays",
                              "nextQuotaRenewalDate"
                            ],
                            "patternProperties": {
                              "^(?!(?:currentPlan|currentTeamMembers|remainingCredits|usedCredits|nextQuotaRenewalDays|nextQuotaRenewalDate)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "currentPlan",
                                "currentTeamMembers",
                                "remainingCredits",
                                "usedCredits",
                                "nextQuotaRenewalDays",
                                "nextQuotaRenewalDate"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "rateLimits": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "perSecond": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "perMinute": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "perDay": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              }
                            },
                            "required": [
                              "perSecond",
                              "perMinute",
                              "perDay"
                            ],
                            "patternProperties": {
                              "^(?!(?:perSecond|perMinute|perDay)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "perSecond",
                                "perMinute",
                                "perDay"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "accountRefreshError": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "provider",
                      "connected",
                      "connection",
                      "detailsRedacted",
                      "account",
                      "rateLimits",
                      "accountRefreshError"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|connected|connection|detailsRedacted|account|rateLimits|accountRefreshError)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "connected",
                        "connection",
                        "detailsRedacted",
                        "account",
                        "rateLimits",
                        "accountRefreshError"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "connected": {
                        "type": "boolean"
                      },
                      "projects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "name": {
                              "$ref": "#/$defs/ConnectorMediumText"
                            },
                            "gitRemote": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ConnectorMediumText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "gitRemote"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|gitRemote)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "gitRemote"
                            ]
                          }
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "connected",
                      "projects"
                    ],
                    "patternProperties": {
                      "^(?!(?:connected|projects)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "connected",
                        "projects"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "$ref": "#/$defs/ExternalWorkflowProvider"
                      },
                      "id": {
                        "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"
                          }
                        ]
                      },
                      "connected": {
                        "type": "boolean"
                      },
                      "catalog": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "fetchedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "workspaceRef": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/OpaqueId"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "name": {
                                      "$ref": "#/$defs/ConnectorMediumText"
                                    },
                                    "description": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/ConnectorLongText"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "function",
                                        "workflow",
                                        "shortcut"
                                      ]
                                    },
                                    "inputs": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "key": {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          "name": {
                                            "$ref": "#/$defs/ConnectorMediumText"
                                          },
                                          "description": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 4096
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "string",
                                              "number",
                                              "integer",
                                              "boolean",
                                              "object",
                                              "array",
                                              "unsupported"
                                            ]
                                          },
                                          "required": {
                                            "type": "boolean"
                                          },
                                          "defaultValue": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/$defs/ConnectorMediumText"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "key",
                                          "name",
                                          "description",
                                          "type",
                                          "required",
                                          "defaultValue"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:key|name|description|type|required|defaultValue)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "key",
                                            "name",
                                            "description",
                                            "type",
                                            "required",
                                            "defaultValue"
                                          ]
                                        }
                                      },
                                      "maxItems": 100
                                    },
                                    "outputs": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "maxItems": 100
                                    },
                                    "available": {
                                      "type": "boolean"
                                    },
                                    "schemaAvailable": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "name",
                                    "description",
                                    "kind",
                                    "inputs",
                                    "outputs",
                                    "available",
                                    "schemaAvailable"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|name|description|kind|inputs|outputs|available|schemaAvailable)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "name",
                                      "description",
                                      "kind",
                                      "inputs",
                                      "outputs",
                                      "available",
                                      "schemaAvailable"
                                    ]
                                  }
                                },
                                "maxItems": 1000
                              }
                            },
                            "required": [
                              "fetchedAt",
                              "workspaceRef",
                              "targets"
                            ],
                            "patternProperties": {
                              "^(?!(?:fetchedAt|workspaceRef|targets)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "fetchedAt",
                                "workspaceRef",
                                "targets"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "provider",
                      "id",
                      "connected",
                      "catalog"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|id|connected|catalog)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "id",
                        "connected",
                        "catalog"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "name": {
                        "$ref": "#/$defs/ConnectorMediumText"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ConnectorLongText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "function",
                          "workflow",
                          "shortcut"
                        ]
                      },
                      "inputs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "key": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "name": {
                              "$ref": "#/$defs/ConnectorMediumText"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 4096
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "string",
                                "number",
                                "integer",
                                "boolean",
                                "object",
                                "array",
                                "unsupported"
                              ]
                            },
                            "required": {
                              "type": "boolean"
                            },
                            "defaultValue": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ConnectorMediumText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "key",
                            "name",
                            "description",
                            "type",
                            "required",
                            "defaultValue"
                          ],
                          "patternProperties": {
                            "^(?!(?:key|name|description|type|required|defaultValue)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "key",
                              "name",
                              "description",
                              "type",
                              "required",
                              "defaultValue"
                            ]
                          }
                        },
                        "maxItems": 100
                      },
                      "outputs": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "maxItems": 100
                      },
                      "available": {
                        "type": "boolean"
                      },
                      "schemaAvailable": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "kind",
                      "inputs",
                      "outputs",
                      "available",
                      "schemaAvailable"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|description|kind|inputs|outputs|available|schemaAvailable)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "description",
                        "kind",
                        "inputs",
                        "outputs",
                        "available",
                        "schemaAvailable"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "configured": {
                        "type": "boolean"
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "slug": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "name": {
                              "$ref": "#/$defs/ConnectorMediumText"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Description"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "logoUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "noAuth": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "slug",
                            "name",
                            "description",
                            "logoUrl",
                            "noAuth"
                          ],
                          "patternProperties": {
                            "^(?!(?:slug|name|description|logoUrl|noAuth)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "slug",
                              "name",
                              "description",
                              "logoUrl",
                              "noAuth"
                            ]
                          }
                        },
                        "maxItems": 50
                      },
                      "nextCursor": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Cursor"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "configured",
                      "items",
                      "nextCursor"
                    ],
                    "patternProperties": {
                      "^(?!(?:configured|items|nextCursor)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "configured",
                        "items",
                        "nextCursor"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "slug": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "name": {
                              "$ref": "#/$defs/ConnectorMediumText"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Description"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "scopes": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "maxItems": 100
                            },
                            "tags": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "maxItems": 50
                            }
                          },
                          "required": [
                            "slug",
                            "name",
                            "description",
                            "scopes",
                            "tags"
                          ],
                          "patternProperties": {
                            "^(?!(?:slug|name|description|scopes|tags)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "slug",
                              "name",
                              "description",
                              "scopes",
                              "tags"
                            ]
                          }
                        },
                        "maxItems": 500
                      },
                      "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/WorkflowMcpServerId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "url": {
                              "$ref": "#/$defs/HttpUrl"
                            },
                            "composio": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "toolkitSlug": {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    "custom": {
                                      "type": "boolean"
                                    },
                                    "noAuth": {
                                      "type": "boolean"
                                    },
                                    "authorizationPending": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "toolkitSlug",
                                    "custom",
                                    "noAuth",
                                    "authorizationPending"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:toolkitSlug|custom|noAuth|authorizationPending)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "toolkitSlug",
                                      "custom",
                                      "noAuth",
                                      "authorizationPending"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "allowedToolNames": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "maxItems": 40
                            },
                            "active": {
                              "type": "boolean"
                            },
                            "authorizationConfigured": {
                              "type": "boolean"
                            },
                            "credentialRefId": {
                              "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"
                                }
                              ]
                            },
                            "lastValidatedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "url",
                            "composio",
                            "allowedToolNames",
                            "active",
                            "authorizationConfigured",
                            "credentialRefId",
                            "lastValidatedAt",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|url|composio|allowedToolNames|active|authorizationConfigured|credentialRefId|lastValidatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "url",
                              "composio",
                              "allowedToolNames",
                              "active",
                              "authorizationConfigured",
                              "credentialRefId",
                              "lastValidatedAt",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        },
                        "maxItems": 200
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/WorkflowMcpServerId"
                      },
                      "ok": {
                        "type": "boolean"
                      },
                      "toolNames": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        },
                        "maxItems": 500
                      },
                      "error": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lastValidatedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "ok",
                      "toolNames",
                      "error",
                      "lastValidatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|ok|toolNames|error|lastValidatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "ok",
                        "toolNames",
                        "error",
                        "lastValidatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "enum": [
                          "mxtoolbox"
                        ]
                      },
                      "id": {
                        "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"
                          }
                        ]
                      },
                      "connected": {
                        "type": "boolean"
                      },
                      "catalog": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "fetchedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "entries": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "name": {
                                      "$ref": "#/$defs/ConnectorMediumText"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "name"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|name)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "name"
                                    ]
                                  }
                                },
                                "minItems": 1,
                                "maxItems": 1000
                              }
                            },
                            "required": [
                              "fetchedAt",
                              "entries"
                            ],
                            "patternProperties": {
                              "^(?!(?:fetchedAt|entries)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "fetchedAt",
                                "entries"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "usage": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "dnsRequests": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "dnsMax": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "networkRequests": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "networkMax": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "dnsRequests",
                              "dnsMax",
                              "networkRequests",
                              "networkMax"
                            ],
                            "patternProperties": {
                              "^(?!(?:dnsRequests|dnsMax|networkRequests|networkMax)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "dnsRequests",
                                "dnsMax",
                                "networkRequests",
                                "networkMax"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "usageRedacted": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "provider",
                      "id",
                      "connected",
                      "catalog",
                      "usage",
                      "usageRedacted"
                    ],
                    "patternProperties": {
                      "^(?!(?:provider|id|connected|catalog|usage|usageRedacted)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "provider",
                        "id",
                        "connected",
                        "catalog",
                        "usage",
                        "usageRedacted"
                      ]
                    }
                  },
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "configured": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          },
                          "workflowId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "evaluatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "configured",
                          "workflowId",
                          "evaluatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:configured|workflowId|evaluatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "configured",
                            "workflowId",
                            "evaluatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "configured": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "workflowId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "analysisLevel": {
                            "type": "string",
                            "enum": [
                              "domain",
                              "inbox"
                            ]
                          },
                          "domains": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "domain": {
                                  "$ref": "#/$defs/DomainName"
                                },
                                "inboxId": {
                                  "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"
                                    }
                                  ]
                                },
                                "emailAddress": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "inboxIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "maxItems": 500
                                },
                                "contacts": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replied": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "replyRate": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "averageReplyRate": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "belowAveragePercent": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "eligibleSamples": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "flagged": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "domain",
                                "inboxId",
                                "emailAddress",
                                "inboxIds",
                                "contacts",
                                "replied",
                                "replyRate",
                                "averageReplyRate",
                                "belowAveragePercent",
                                "eligibleSamples",
                                "flagged"
                              ],
                              "patternProperties": {
                                "^(?!(?:domain|inboxId|emailAddress|inboxIds|contacts|replied|replyRate|averageReplyRate|belowAveragePercent|eligibleSamples|flagged)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "domain",
                                  "inboxId",
                                  "emailAddress",
                                  "inboxIds",
                                  "contacts",
                                  "replied",
                                  "replyRate",
                                  "averageReplyRate",
                                  "belowAveragePercent",
                                  "eligibleSamples",
                                  "flagged"
                                ]
                              }
                            },
                            "maxItems": 1000
                          },
                          "reserves": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "domain": {
                                  "$ref": "#/$defs/DomainName"
                                },
                                "inboxCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inboxes": {
                                  "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"
                                      },
                                      "emailAddress": {
                                        "$ref": "#/$defs/EmailAddress"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "emailAddress"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|emailAddress)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "emailAddress"
                                      ]
                                    }
                                  },
                                  "maxItems": 500
                                }
                              },
                              "required": [
                                "domain",
                                "inboxCount",
                                "inboxes"
                              ],
                              "patternProperties": {
                                "^(?!(?:domain|inboxCount|inboxes)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "domain",
                                  "inboxCount",
                                  "inboxes"
                                ]
                              }
                            },
                            "maxItems": 1000
                          },
                          "evaluatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "configured",
                          "workflowId",
                          "analysisLevel",
                          "domains",
                          "reserves",
                          "evaluatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:configured|workflowId|analysisLevel|domains|reserves|evaluatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "configured",
                            "workflowId",
                            "analysisLevel",
                            "domains",
                            "reserves",
                            "evaluatedAt"
                          ]
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "$ref": "#/$defs/ProviderKeyConnector"
                          },
                          "connected": {
                            "type": "boolean"
                          },
                          "connection": {
                            "anyOf": [
                              {
                                "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"
                                  },
                                  "label": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "active": {
                                    "type": "boolean"
                                  },
                                  "lastValidatedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "label",
                                  "active",
                                  "lastValidatedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|label|active|lastValidatedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "label",
                                    "active",
                                    "lastValidatedAt"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "detailsRedacted": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "provider",
                          "connected",
                          "connection",
                          "detailsRedacted"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|connected|connection|detailsRedacted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "connected",
                            "connection",
                            "detailsRedacted"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "enum": [
                              "prospeo"
                            ]
                          },
                          "connected": {
                            "type": "boolean"
                          },
                          "connection": {
                            "anyOf": [
                              {
                                "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"
                                  },
                                  "label": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "active": {
                                    "type": "boolean"
                                  },
                                  "lastValidatedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "label",
                                  "active",
                                  "lastValidatedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|label|active|lastValidatedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "label",
                                    "active",
                                    "lastValidatedAt"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "detailsRedacted": {
                            "type": "boolean"
                          },
                          "account": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "currentPlan": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "currentTeamMembers": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "remainingCredits": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "usedCredits": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "nextQuotaRenewalDays": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "nextQuotaRenewalDate": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "currentPlan",
                                  "currentTeamMembers",
                                  "remainingCredits",
                                  "usedCredits",
                                  "nextQuotaRenewalDays",
                                  "nextQuotaRenewalDate"
                                ],
                                "patternProperties": {
                                  "^(?!(?:currentPlan|currentTeamMembers|remainingCredits|usedCredits|nextQuotaRenewalDays|nextQuotaRenewalDate)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "currentPlan",
                                    "currentTeamMembers",
                                    "remainingCredits",
                                    "usedCredits",
                                    "nextQuotaRenewalDays",
                                    "nextQuotaRenewalDate"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateLimits": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "perSecond": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "perMinute": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "perDay": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  }
                                },
                                "required": [
                                  "perSecond",
                                  "perMinute",
                                  "perDay"
                                ],
                                "patternProperties": {
                                  "^(?!(?:perSecond|perMinute|perDay)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "perSecond",
                                    "perMinute",
                                    "perDay"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "accountRefreshError": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "provider",
                          "connected",
                          "connection",
                          "detailsRedacted",
                          "account",
                          "rateLimits",
                          "accountRefreshError"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|connected|connection|detailsRedacted|account|rateLimits|accountRefreshError)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "connected",
                            "connection",
                            "detailsRedacted",
                            "account",
                            "rateLimits",
                            "accountRefreshError"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "connected": {
                            "type": "boolean"
                          },
                          "projects": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ConnectorMediumText"
                                },
                                "gitRemote": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ConnectorMediumText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "gitRemote"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|gitRemote)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "gitRemote"
                                ]
                              }
                            },
                            "maxItems": 500
                          }
                        },
                        "required": [
                          "connected",
                          "projects"
                        ],
                        "patternProperties": {
                          "^(?!(?:connected|projects)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "connected",
                            "projects"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "$ref": "#/$defs/ExternalWorkflowProvider"
                          },
                          "id": {
                            "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"
                              }
                            ]
                          },
                          "connected": {
                            "type": "boolean"
                          },
                          "catalog": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "fetchedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "workspaceRef": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/OpaqueId"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "targets": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "$ref": "#/$defs/OpaqueId"
                                        },
                                        "name": {
                                          "$ref": "#/$defs/ConnectorMediumText"
                                        },
                                        "description": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/ConnectorLongText"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "function",
                                            "workflow",
                                            "shortcut"
                                          ]
                                        },
                                        "inputs": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "key": {
                                                "$ref": "#/$defs/ShortText"
                                              },
                                              "name": {
                                                "$ref": "#/$defs/ConnectorMediumText"
                                              },
                                              "description": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 4096
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "type": {
                                                "type": "string",
                                                "enum": [
                                                  "string",
                                                  "number",
                                                  "integer",
                                                  "boolean",
                                                  "object",
                                                  "array",
                                                  "unsupported"
                                                ]
                                              },
                                              "required": {
                                                "type": "boolean"
                                              },
                                              "defaultValue": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/$defs/ConnectorMediumText"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            },
                                            "required": [
                                              "key",
                                              "name",
                                              "description",
                                              "type",
                                              "required",
                                              "defaultValue"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:key|name|description|type|required|defaultValue)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "key",
                                                "name",
                                                "description",
                                                "type",
                                                "required",
                                                "defaultValue"
                                              ]
                                            }
                                          },
                                          "maxItems": 100
                                        },
                                        "outputs": {
                                          "type": "array",
                                          "items": {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          "maxItems": 100
                                        },
                                        "available": {
                                          "type": "boolean"
                                        },
                                        "schemaAvailable": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "name",
                                        "description",
                                        "kind",
                                        "inputs",
                                        "outputs",
                                        "available",
                                        "schemaAvailable"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:id|name|description|kind|inputs|outputs|available|schemaAvailable)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "id",
                                          "name",
                                          "description",
                                          "kind",
                                          "inputs",
                                          "outputs",
                                          "available",
                                          "schemaAvailable"
                                        ]
                                      }
                                    },
                                    "maxItems": 1000
                                  }
                                },
                                "required": [
                                  "fetchedAt",
                                  "workspaceRef",
                                  "targets"
                                ],
                                "patternProperties": {
                                  "^(?!(?:fetchedAt|workspaceRef|targets)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "fetchedAt",
                                    "workspaceRef",
                                    "targets"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "provider",
                          "id",
                          "connected",
                          "catalog"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|id|connected|catalog)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "id",
                            "connected",
                            "catalog"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "name": {
                            "$ref": "#/$defs/ConnectorMediumText"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ConnectorLongText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "function",
                              "workflow",
                              "shortcut"
                            ]
                          },
                          "inputs": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "name": {
                                  "$ref": "#/$defs/ConnectorMediumText"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "string",
                                    "number",
                                    "integer",
                                    "boolean",
                                    "object",
                                    "array",
                                    "unsupported"
                                  ]
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "defaultValue": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ConnectorMediumText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "key",
                                "name",
                                "description",
                                "type",
                                "required",
                                "defaultValue"
                              ],
                              "patternProperties": {
                                "^(?!(?:key|name|description|type|required|defaultValue)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "key",
                                  "name",
                                  "description",
                                  "type",
                                  "required",
                                  "defaultValue"
                                ]
                              }
                            },
                            "maxItems": 100
                          },
                          "outputs": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 100
                          },
                          "available": {
                            "type": "boolean"
                          },
                          "schemaAvailable": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "kind",
                          "inputs",
                          "outputs",
                          "available",
                          "schemaAvailable"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|description|kind|inputs|outputs|available|schemaAvailable)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "description",
                            "kind",
                            "inputs",
                            "outputs",
                            "available",
                            "schemaAvailable"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "configured": {
                            "type": "boolean"
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "slug": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "name": {
                                  "$ref": "#/$defs/ConnectorMediumText"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Description"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "logoUrl": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/HttpUrl"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "noAuth": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "slug",
                                "name",
                                "description",
                                "logoUrl",
                                "noAuth"
                              ],
                              "patternProperties": {
                                "^(?!(?:slug|name|description|logoUrl|noAuth)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "slug",
                                  "name",
                                  "description",
                                  "logoUrl",
                                  "noAuth"
                                ]
                              }
                            },
                            "maxItems": 50
                          },
                          "nextCursor": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Cursor"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "configured",
                          "items",
                          "nextCursor"
                        ],
                        "patternProperties": {
                          "^(?!(?:configured|items|nextCursor)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "configured",
                            "items",
                            "nextCursor"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "slug": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "name": {
                                  "$ref": "#/$defs/ConnectorMediumText"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Description"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "scopes": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "maxItems": 100
                                },
                                "tags": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "maxItems": 50
                                }
                              },
                              "required": [
                                "slug",
                                "name",
                                "description",
                                "scopes",
                                "tags"
                              ],
                              "patternProperties": {
                                "^(?!(?:slug|name|description|scopes|tags)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "slug",
                                  "name",
                                  "description",
                                  "scopes",
                                  "tags"
                                ]
                              }
                            },
                            "maxItems": 500
                          },
                          "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/WorkflowMcpServerId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "url": {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                "composio": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "toolkitSlug": {
                                          "$ref": "#/$defs/ShortText"
                                        },
                                        "custom": {
                                          "type": "boolean"
                                        },
                                        "noAuth": {
                                          "type": "boolean"
                                        },
                                        "authorizationPending": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "toolkitSlug",
                                        "custom",
                                        "noAuth",
                                        "authorizationPending"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:toolkitSlug|custom|noAuth|authorizationPending)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "toolkitSlug",
                                          "custom",
                                          "noAuth",
                                          "authorizationPending"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "allowedToolNames": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "maxItems": 40
                                },
                                "active": {
                                  "type": "boolean"
                                },
                                "authorizationConfigured": {
                                  "type": "boolean"
                                },
                                "credentialRefId": {
                                  "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"
                                    }
                                  ]
                                },
                                "lastValidatedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "url",
                                "composio",
                                "allowedToolNames",
                                "active",
                                "authorizationConfigured",
                                "credentialRefId",
                                "lastValidatedAt",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|url|composio|allowedToolNames|active|authorizationConfigured|credentialRefId|lastValidatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "url",
                                  "composio",
                                  "allowedToolNames",
                                  "active",
                                  "authorizationConfigured",
                                  "credentialRefId",
                                  "lastValidatedAt",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            },
                            "maxItems": 200
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/WorkflowMcpServerId"
                          },
                          "ok": {
                            "type": "boolean"
                          },
                          "toolNames": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 500
                          },
                          "error": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastValidatedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "ok",
                          "toolNames",
                          "error",
                          "lastValidatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|ok|toolNames|error|lastValidatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "ok",
                            "toolNames",
                            "error",
                            "lastValidatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "enum": [
                              "mxtoolbox"
                            ]
                          },
                          "id": {
                            "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"
                              }
                            ]
                          },
                          "connected": {
                            "type": "boolean"
                          },
                          "catalog": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "fetchedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "entries": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "$ref": "#/$defs/OpaqueId"
                                        },
                                        "name": {
                                          "$ref": "#/$defs/ConnectorMediumText"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "name"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:id|name)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "id",
                                          "name"
                                        ]
                                      }
                                    },
                                    "minItems": 1,
                                    "maxItems": 1000
                                  }
                                },
                                "required": [
                                  "fetchedAt",
                                  "entries"
                                ],
                                "patternProperties": {
                                  "^(?!(?:fetchedAt|entries)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "fetchedAt",
                                    "entries"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "usage": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "dnsRequests": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "dnsMax": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "networkRequests": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "networkMax": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "dnsRequests",
                                  "dnsMax",
                                  "networkRequests",
                                  "networkMax"
                                ],
                                "patternProperties": {
                                  "^(?!(?:dnsRequests|dnsMax|networkRequests|networkMax)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "dnsRequests",
                                    "dnsMax",
                                    "networkRequests",
                                    "networkMax"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "usageRedacted": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "provider",
                          "id",
                          "connected",
                          "catalog",
                          "usage",
                          "usageRedacted"
                        ],
                        "patternProperties": {
                          "^(?!(?:provider|id|connected|catalog|usage|usageRedacted)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "provider",
                            "id",
                            "connected",
                            "catalog",
                            "usage",
                            "usageRedacted"
                          ]
                        }
                      },
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "configured": {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              },
                              "workflowId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "evaluatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "configured",
                              "workflowId",
                              "evaluatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:configured|workflowId|evaluatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "configured",
                                "workflowId",
                                "evaluatedAt"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "configured": {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              "workflowId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "analysisLevel": {
                                "type": "string",
                                "enum": [
                                  "domain",
                                  "inbox"
                                ]
                              },
                              "domains": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "domain": {
                                      "$ref": "#/$defs/DomainName"
                                    },
                                    "inboxId": {
                                      "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"
                                        }
                                      ]
                                    },
                                    "emailAddress": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/EmailAddress"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "inboxIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      },
                                      "maxItems": 500
                                    },
                                    "contacts": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "replied": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "replyRate": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "averageReplyRate": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "belowAveragePercent": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "eligibleSamples": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "flagged": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "domain",
                                    "inboxId",
                                    "emailAddress",
                                    "inboxIds",
                                    "contacts",
                                    "replied",
                                    "replyRate",
                                    "averageReplyRate",
                                    "belowAveragePercent",
                                    "eligibleSamples",
                                    "flagged"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:domain|inboxId|emailAddress|inboxIds|contacts|replied|replyRate|averageReplyRate|belowAveragePercent|eligibleSamples|flagged)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "domain",
                                      "inboxId",
                                      "emailAddress",
                                      "inboxIds",
                                      "contacts",
                                      "replied",
                                      "replyRate",
                                      "averageReplyRate",
                                      "belowAveragePercent",
                                      "eligibleSamples",
                                      "flagged"
                                    ]
                                  }
                                },
                                "maxItems": 1000
                              },
                              "reserves": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "domain": {
                                      "$ref": "#/$defs/DomainName"
                                    },
                                    "inboxCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "inboxes": {
                                      "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"
                                          },
                                          "emailAddress": {
                                            "$ref": "#/$defs/EmailAddress"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "emailAddress"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:id|emailAddress)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "id",
                                            "emailAddress"
                                          ]
                                        }
                                      },
                                      "maxItems": 500
                                    }
                                  },
                                  "required": [
                                    "domain",
                                    "inboxCount",
                                    "inboxes"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:domain|inboxCount|inboxes)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "domain",
                                      "inboxCount",
                                      "inboxes"
                                    ]
                                  }
                                },
                                "maxItems": 1000
                              },
                              "evaluatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "configured",
                              "workflowId",
                              "analysisLevel",
                              "domains",
                              "reserves",
                              "evaluatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:configured|workflowId|analysisLevel|domains|reserves|evaluatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "configured",
                                "workflowId",
                                "analysisLevel",
                                "domains",
                                "reserves",
                                "evaluatedAt"
                              ]
                            }
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_workflow_connectors"
      },
      "scopes": [
        "workflow:read",
        "integration:read"
      ],
      "bundles": [
        "workflow_connectors"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "workflowConnectors.apollo",
        "workflowConnectors.prospeo",
        "workflowConnectors.conductor",
        "workflowConnectors.conductorProjects",
        "workflowConnectors.external",
        "workflowConnectors.describeExternalTarget",
        "workflowIntegrations.catalog",
        "workflowIntegrations.tools",
        "workflowMcpServers.list",
        "workflowMcpServers.test",
        "workflowDomainHealth.mxtoolbox",
        "workflowDomainHealth.domainReport"
      ],
      "invocations": [
        {
          "operationId": "workflowConnectors.apollo",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/apollo",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowConnectors.prospeo",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/prospeo",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowConnectors.conductor",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/conductor",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowConnectors.conductorProjects",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/options/conductor-projects",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowConnectors.external",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/external/:provider",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowConnectors.describeExternalTarget",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/external/:provider/:connectionId/routines/:targetId",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowIntegrations.catalog",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/apps",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowIntegrations.tools",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/apps/:connectionId/tools",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowMcpServers.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/mcp-servers",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowMcpServers.test",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/mcp-servers/:serverId/test",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowDomainHealth.mxtoolbox",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/integrations/mxtoolbox",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowDomainHealth.domainReport",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/domain-report",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "provider_connection"
                ]
              },
              "provider": {
                "$ref": "#/$defs/ProviderKeyConnector"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "provider"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|provider)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "provider"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "conductor_projects"
                ]
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "external_connection"
                ]
              },
              "externalProvider": {
                "$ref": "#/$defs/ExternalWorkflowProvider"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "externalProvider"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|externalProvider)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "externalProvider"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "external_routine"
                ]
              },
              "externalProvider": {
                "$ref": "#/$defs/ExternalWorkflowProvider"
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "targetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "externalProvider",
              "connectionId",
              "targetId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|externalProvider|connectionId|targetId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "externalProvider",
                    "connectionId",
                    "targetId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "app_catalog"
                ]
              },
              "catalog": {
                "type": "object",
                "properties": {
                  "search": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "cursor": {
                    "$ref": "#/$defs/Cursor"
                  }
                },
                "patternProperties": {
                  "^(?!(?:search|cursor)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "search",
                    "cursor"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|catalog)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "catalog"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "app_tools"
                ]
              },
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "connectionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|connectionId|cursor)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "connectionId",
                    "cursor"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "mcp_servers"
                ]
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "mcp_server_test"
                ]
              },
              "serverId": {
                "$ref": "#/$defs/WorkflowMcpServerId"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "serverId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|serverId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "serverId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "mxtoolbox_connection"
                ]
              }
            },
            "required": [
              "workspaceId",
              "scope"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "domain_report"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "scope",
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|scope|workflowId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "scope",
                    "workflowId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "ProviderKeyConnector": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor"
            ]
          },
          "ExternalWorkflowProvider": {
            "type": "string",
            "enum": [
              "clay",
              "floqer"
            ]
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "WorkflowMcpServerId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "workflows",
      "name": "read_workflows",
      "description": "Read the workspace's automation: what workflows exist and what they trigger on, what their runs did step by step, which inbound webhook attempts arrived, what alerts are open, what is running on a conversation, and the option lists a graph can reference.\n\nUse to ground any claim about automation — whether a workflow is live, why a run stopped, whether a webhook ever arrived, or which call list, sequence, inbox, or destination workflow a block could name. `simulate` replays a graph against a real past reply without executing anything.\n\nNode outputs are withheld when the caller lacks the permission for the data's SOURCE, so an execution can appear with an empty result; that is authorization, not an error. An option list with `authorized: false` is a missing permission, not an empty workspace. This never changes a graph, starts a run, or answers a pending AI draft.",
      "inputSchema": {
        "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"
          },
          "scope": {
            "type": "string",
            "enum": [
              "list",
              "workflow",
              "runs",
              "trigger_logs",
              "alerts",
              "thread_automation",
              "call_list_options",
              "sequence_options",
              "inbox_scope_options",
              "enrollment_targets",
              "test_replies",
              "simulate"
            ]
          },
          "workflowId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "threadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "runs": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50
              },
              "runId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "patternProperties": {
              "^(?!(?:limit|runId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "limit",
                "runId"
              ]
            }
          },
          "triggerLogs": {
            "type": "object",
            "properties": {
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "received",
                  "accepted",
                  "rejected",
                  "sample",
                  "ignored",
                  "duplicate",
                  "error"
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:cursor|limit|outcome)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "cursor",
                "limit",
                "outcome"
              ]
            }
          },
          "testReplies": {
            "type": "object",
            "properties": {
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workflowId|search)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workflowId",
                "search"
              ]
            }
          },
          "simulate": {
            "type": "object",
            "properties": {
              "messageId": {
                "$ref": "#/$defs/OpaqueId"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "graph": {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "anyOf": [
                      {
                        "type": "number",
                        "enum": [
                          1
                        ]
                      }
                    ]
                  },
                  "nodes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                        },
                        "position": {
                          "type": "object",
                          "properties": {
                            "x": {
                              "type": "number"
                            },
                            "y": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "x",
                            "y"
                          ],
                          "patternProperties": {
                            "^(?!(?:x|y)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "x",
                              "y"
                            ]
                          }
                        },
                        "data": {
                          "type": "object",
                          "additionalProperties": {
                            "$ref": "#/$defs/Union_"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "position",
                        "data"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "type",
                          "position",
                          "data"
                        ]
                      }
                    },
                    "maxItems": 200
                  },
                  "edges": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "target": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "sourceHandle": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "yes",
                                "no"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "source",
                        "target"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "source",
                          "target",
                          "sourceHandle"
                        ]
                      }
                    },
                    "maxItems": 400
                  }
                },
                "required": [
                  "schemaVersion",
                  "nodes",
                  "edges"
                ],
                "patternProperties": {
                  "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "schemaVersion",
                    "nodes",
                    "edges"
                  ]
                }
              }
            },
            "required": [
              "messageId",
              "name",
              "graph"
            ],
            "patternProperties": {
              "^(?!(?:messageId|name|graph)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "messageId",
                "name",
                "graph"
              ]
            }
          },
          "enrollmentTargets": {
            "type": "object",
            "properties": {
              "excludeId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "patternProperties": {
              "^(?!(?:excludeId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "excludeId"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "scope"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|scope|workflowId|threadId|runs|triggerLogs|testReplies|simulate|enrollmentTargets)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "scope",
            "workflowId",
            "threadId",
            "runs",
            "triggerLogs",
            "testReplies",
            "simulate",
            "enrollmentTargets"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "WorkflowVersionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "WorkflowNodeExecutionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "WorkflowFollowUpId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "WorkflowFollowUpDraftId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "WorkflowTriggerLogId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "WorkflowAlertId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "CallListId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "HexColor": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{6}$"
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          }
        },
        "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": 120
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "active",
                                "paused",
                                "deleting"
                              ]
                            },
                            "publishedVersionId": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/WorkflowVersionId"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "triggerType": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128,
                                  "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "alertCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "status",
                            "publishedVersionId",
                            "triggerType",
                            "alertCount",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "status",
                              "publishedVersionId",
                              "triggerType",
                              "alertCount",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "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": 120
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "active",
                          "paused",
                          "deleting"
                        ]
                      },
                      "publishedVersionId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/WorkflowVersionId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "triggerType": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "alertCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "version": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "$ref": "#/$defs/WorkflowVersionId"
                              },
                              "workflowId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "version": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "graph": {
                                "type": "object",
                                "properties": {
                                  "schemaVersion": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "enum": [
                                          1
                                        ]
                                      }
                                    ]
                                  },
                                  "nodes": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "type": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128,
                                          "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                        },
                                        "position": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:x|y)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "x",
                                              "y"
                                            ]
                                          }
                                        },
                                        "data": {
                                          "type": "object",
                                          "additionalProperties": {
                                            "$ref": "#/$defs/Union_"
                                          }
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "position",
                                        "data"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "id",
                                          "type",
                                          "position",
                                          "data"
                                        ]
                                      }
                                    },
                                    "maxItems": 200
                                  },
                                  "edges": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "source": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "target": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "sourceHandle": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "yes",
                                                "no"
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "source",
                                        "target"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "id",
                                          "source",
                                          "target",
                                          "sourceHandle"
                                        ]
                                      }
                                    },
                                    "maxItems": 400
                                  }
                                },
                                "required": [
                                  "schemaVersion",
                                  "nodes",
                                  "edges"
                                ],
                                "patternProperties": {
                                  "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "schemaVersion",
                                    "nodes",
                                    "edges"
                                  ]
                                }
                              },
                              "publishedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "id",
                              "workflowId",
                              "version",
                              "graph",
                              "publishedAt",
                              "createdAt",
                              "updatedAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "workflowId",
                                "version",
                                "graph",
                                "publishedAt",
                                "createdAt",
                                "updatedAt"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "status",
                      "publishedVersionId",
                      "triggerType",
                      "alertCount",
                      "createdAt",
                      "updatedAt",
                      "version"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt|version)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "status",
                        "publishedVersionId",
                        "triggerType",
                        "alertCount",
                        "createdAt",
                        "updatedAt",
                        "version"
                      ]
                    }
                  },
                  {
                    "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"
                            },
                            "workflowId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "workflowVersionId": {
                              "$ref": "#/$defs/WorkflowVersionId"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "running",
                                "paused",
                                "completed",
                                "failed"
                              ]
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/Description"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "leadId": {
                              "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"
                                }
                              ]
                            },
                            "inboxId": {
                              "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"
                                }
                              ]
                            },
                            "threadId": {
                              "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"
                                }
                              ]
                            },
                            "triggerEvent": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "startedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "completedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "executions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/WorkflowNodeExecutionId"
                                  },
                                  "nodeId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "nodeType": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128,
                                    "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "running",
                                      "paused",
                                      "completed",
                                      "failed",
                                      "skipped"
                                    ]
                                  },
                                  "error": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/Description"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "branch": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "yes",
                                          "no"
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "outputsRedacted": {
                                    "type": "boolean"
                                  },
                                  "externalRunId": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/OpaqueId"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "externalRestartRequiresAcknowledgement": {
                                    "type": "boolean"
                                  },
                                  "externalResult": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 131072
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "workflowResult": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 131072
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "healthResult": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 131072
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "domainRotation": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 131072
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "getleadsResult": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 131072
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "agentText": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 131072
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "childRunId": {
                                    "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"
                                      }
                                    ]
                                  },
                                  "childWorkflowId": {
                                    "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"
                                      }
                                    ]
                                  },
                                  "humanRequestTaskId": {
                                    "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"
                                      }
                                    ]
                                  },
                                  "startedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "completedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "nodeId",
                                  "nodeType",
                                  "status",
                                  "error",
                                  "branch",
                                  "outputsRedacted",
                                  "externalRunId",
                                  "externalRestartRequiresAcknowledgement",
                                  "externalResult",
                                  "workflowResult",
                                  "healthResult",
                                  "domainRotation",
                                  "getleadsResult",
                                  "agentText",
                                  "childRunId",
                                  "childWorkflowId",
                                  "humanRequestTaskId",
                                  "startedAt",
                                  "completedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|nodeId|nodeType|status|error|branch|outputsRedacted|externalRunId|externalRestartRequiresAcknowledgement|externalResult|workflowResult|healthResult|domainRotation|getleadsResult|agentText|childRunId|childWorkflowId|humanRequestTaskId|startedAt|completedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "nodeId",
                                    "nodeType",
                                    "status",
                                    "error",
                                    "branch",
                                    "outputsRedacted",
                                    "externalRunId",
                                    "externalRestartRequiresAcknowledgement",
                                    "externalResult",
                                    "workflowResult",
                                    "healthResult",
                                    "domainRotation",
                                    "getleadsResult",
                                    "agentText",
                                    "childRunId",
                                    "childWorkflowId",
                                    "humanRequestTaskId",
                                    "startedAt",
                                    "completedAt"
                                  ]
                                }
                              },
                              "maxItems": 200
                            },
                            "followUp": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "$ref": "#/$defs/WorkflowFollowUpId"
                                    },
                                    "runId": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "threadId": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "inboxId": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "counterpartyEmail": {
                                      "$ref": "#/$defs/EmailAddress"
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "awaiting_approval",
                                        "completed",
                                        "stopped"
                                      ]
                                    },
                                    "stopReason": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "replied",
                                            "booked",
                                            "human_took_over",
                                            "negative_label",
                                            "unsubscribed",
                                            "thread_gone",
                                            "stopped_by_user",
                                            "agent_unauthorized",
                                            "exhausted"
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxAttempts": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "attemptsSent": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "nextAttemptAt": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "lastOutboundAt": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "completedAt": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/UtcDateTimeEncoded"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "drafts": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "$ref": "#/$defs/WorkflowFollowUpDraftId"
                                          },
                                          "attempt": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "status": {
                                            "type": "string",
                                            "enum": [
                                              "pending",
                                              "approved",
                                              "edited",
                                              "rejected",
                                              "sent",
                                              "expired"
                                            ]
                                          },
                                          "bodyText": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4000
                                          },
                                          "modelReason": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/$defs/Description"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "toolTrace": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "$ref": "#/$defs/Union_"
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "sentMessageId": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/$defs/OpaqueId"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "createdAt": {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "attempt",
                                          "status",
                                          "bodyText",
                                          "modelReason",
                                          "toolTrace",
                                          "sentMessageId",
                                          "createdAt"
                                        ],
                                        "patternProperties": {
                                          "^(?!(?:id|attempt|status|bodyText|modelReason|toolTrace|sentMessageId|createdAt)$)[\\s\\S]*$": false
                                        },
                                        "additionalProperties": true,
                                        "propertyNames": {
                                          "type": "string",
                                          "enum": [
                                            "id",
                                            "attempt",
                                            "status",
                                            "bodyText",
                                            "modelReason",
                                            "toolTrace",
                                            "sentMessageId",
                                            "createdAt"
                                          ]
                                        }
                                      },
                                      "maxItems": 100
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "runId",
                                    "threadId",
                                    "inboxId",
                                    "counterpartyEmail",
                                    "status",
                                    "stopReason",
                                    "maxAttempts",
                                    "attemptsSent",
                                    "nextAttemptAt",
                                    "lastOutboundAt",
                                    "completedAt",
                                    "drafts"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:id|runId|threadId|inboxId|counterpartyEmail|status|stopReason|maxAttempts|attemptsSent|nextAttemptAt|lastOutboundAt|completedAt|drafts)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "id",
                                      "runId",
                                      "threadId",
                                      "inboxId",
                                      "counterpartyEmail",
                                      "status",
                                      "stopReason",
                                      "maxAttempts",
                                      "attemptsSent",
                                      "nextAttemptAt",
                                      "lastOutboundAt",
                                      "completedAt",
                                      "drafts"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "workflowId",
                            "workflowVersionId",
                            "status",
                            "error",
                            "leadId",
                            "inboxId",
                            "threadId",
                            "triggerEvent",
                            "createdAt",
                            "startedAt",
                            "completedAt",
                            "executions",
                            "followUp"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|workflowId|workflowVersionId|status|error|leadId|inboxId|threadId|triggerEvent|createdAt|startedAt|completedAt|executions|followUp)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "workflowId",
                              "workflowVersionId",
                              "status",
                              "error",
                              "leadId",
                              "inboxId",
                              "threadId",
                              "triggerEvent",
                              "createdAt",
                              "startedAt",
                              "completedAt",
                              "executions",
                              "followUp"
                            ]
                          }
                        },
                        "maxItems": 50
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/WorkflowTriggerLogId"
                            },
                            "workflowId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "workflowVersionId": {
                              "$ref": "#/$defs/WorkflowVersionId"
                            },
                            "provider": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "webhookId": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "outcome": {
                              "type": "string",
                              "enum": [
                                "received",
                                "accepted",
                                "rejected",
                                "sample",
                                "ignored",
                                "duplicate",
                                "error"
                              ]
                            },
                            "reason": {
                              "type": "string",
                              "enum": [
                                "processing",
                                "admitted",
                                "invalid_signature",
                                "invalid_payload",
                                "workspace_mismatch",
                                "webhook_mismatch",
                                "event_not_selected",
                                "campaign_not_selected",
                                "provider_sample",
                                "duplicate",
                                "webhook_inactive",
                                "effects_disabled",
                                "workflow_inactive",
                                "conditions_not_met",
                                "lead_not_found",
                                "processing_failed",
                                "payload_too_large",
                                "missing_payload",
                                "body_read_failed"
                              ]
                            },
                            "httpStatus": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 100,
                                  "maximum": 599
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "runId": {
                              "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"
                                }
                              ]
                            },
                            "requestFields": {
                              "type": "object",
                              "additionalProperties": {
                                "$ref": "#/$defs/ShortText"
                              }
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "completedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "workflowId",
                            "workflowVersionId",
                            "provider",
                            "webhookId",
                            "outcome",
                            "reason",
                            "httpStatus",
                            "runId",
                            "requestFields",
                            "createdAt",
                            "completedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|workflowId|workflowVersionId|provider|webhookId|outcome|reason|httpStatus|runId|requestFields|createdAt|completedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "workflowId",
                              "workflowVersionId",
                              "provider",
                              "webhookId",
                              "outcome",
                              "reason",
                              "httpStatus",
                              "runId",
                              "requestFields",
                              "createdAt",
                              "completedAt"
                            ]
                          }
                        }
                      },
                      "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/WorkflowAlertId"
                            },
                            "workflowId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "workflowRunId": {
                              "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"
                                }
                              ]
                            },
                            "nodeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "code": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "message": {
                              "$ref": "#/$defs/Description"
                            },
                            "relatedWorkflowId": {
                              "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"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "workflowId",
                            "workflowRunId",
                            "nodeId",
                            "code",
                            "message",
                            "relatedWorkflowId",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|workflowId|workflowRunId|nodeId|code|message|relatedWorkflowId|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "workflowId",
                              "workflowRunId",
                              "nodeId",
                              "code",
                              "message",
                              "relatedWorkflowId",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        },
                        "maxItems": 200
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "automation": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "follow_up"
                                        ]
                                      }
                                    ]
                                  },
                                  "id": {
                                    "$ref": "#/$defs/WorkflowFollowUpId"
                                  },
                                  "runId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "workflowId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "workflowName": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 120
                                  },
                                  "runStatus": {
                                    "type": "string",
                                    "enum": [
                                      "queued",
                                      "running",
                                      "paused",
                                      "completed",
                                      "failed"
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "active",
                                      "awaiting_approval",
                                      "completed",
                                      "stopped"
                                    ]
                                  },
                                  "attemptsSent": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "maxAttempts": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "nextAttemptAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "stopReason": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "replied",
                                          "booked",
                                          "human_took_over",
                                          "negative_label",
                                          "unsubscribed",
                                          "thread_gone",
                                          "stopped_by_user",
                                          "agent_unauthorized",
                                          "exhausted"
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "pendingDraftId": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/WorkflowFollowUpDraftId"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "id",
                                  "runId",
                                  "workflowId",
                                  "workflowName",
                                  "runStatus",
                                  "status",
                                  "attemptsSent",
                                  "maxAttempts",
                                  "nextAttemptAt",
                                  "stopReason",
                                  "pendingDraftId"
                                ],
                                "patternProperties": {
                                  "^(?!(?:kind|id|runId|workflowId|workflowName|runStatus|status|attemptsSent|maxAttempts|nextAttemptAt|stopReason|pendingDraftId)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "kind",
                                    "id",
                                    "runId",
                                    "workflowId",
                                    "workflowName",
                                    "runStatus",
                                    "status",
                                    "attemptsSent",
                                    "maxAttempts",
                                    "nextAttemptAt",
                                    "stopReason",
                                    "pendingDraftId"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "sequence"
                                        ]
                                      }
                                    ]
                                  },
                                  "enrollmentId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "sequenceId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "sequenceName": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "childContactId": {
                                    "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"
                                      }
                                    ]
                                  },
                                  "contactStatus": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "currentStep": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "totalSteps": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "kind",
                                  "enrollmentId",
                                  "sequenceId",
                                  "sequenceName",
                                  "childContactId",
                                  "contactStatus",
                                  "currentStep",
                                  "totalSteps"
                                ],
                                "patternProperties": {
                                  "^(?!(?:kind|enrollmentId|sequenceId|sequenceName|childContactId|contactStatus|currentStep|totalSteps)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "kind",
                                    "enrollmentId",
                                    "sequenceId",
                                    "sequenceName",
                                    "childContactId",
                                    "contactStatus",
                                    "currentStep",
                                    "totalSteps"
                                  ]
                                }
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "automation"
                    ],
                    "patternProperties": {
                      "^(?!(?:automation)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "automation"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "authorized": {
                        "type": "boolean"
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/CallListId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name"
                            ]
                          }
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "authorized",
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:authorized|items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "authorized",
                        "items"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "authorized": {
                        "type": "boolean"
                      },
                      "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": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name"
                            ]
                          }
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "authorized",
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:authorized|items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "authorized",
                        "items"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "authorized": {
                        "type": "boolean"
                      },
                      "inboxes": {
                        "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"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "google_workspace",
                                "microsoft_365",
                                "other"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "inactive",
                                "error",
                                "alert"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "emailAddress",
                            "provider",
                            "status"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|emailAddress|provider|status)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "emailAddress",
                              "provider",
                              "status"
                            ]
                          }
                        },
                        "maxItems": 2000
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "color": {
                              "$ref": "#/$defs/HexColor"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "updatedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "color",
                            "description",
                            "createdAt",
                            "updatedAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "color",
                              "description",
                              "createdAt",
                              "updatedAt"
                            ]
                          }
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "authorized",
                      "inboxes",
                      "tags"
                    ],
                    "patternProperties": {
                      "^(?!(?:authorized|inboxes|tags)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "authorized",
                        "inboxes",
                        "tags"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "authorized": {
                        "type": "boolean"
                      },
                      "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": 120
                            },
                            "versionId": {
                              "$ref": "#/$defs/WorkflowVersionId"
                            },
                            "inputs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "string",
                                      "domain",
                                      "number",
                                      "boolean",
                                      "object",
                                      "array"
                                    ]
                                  },
                                  "required": {
                                    "type": "boolean"
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 300
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "required"
                                ],
                                "patternProperties": {
                                  "^(?!(?:name|type|required|description)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "name",
                                    "type",
                                    "required",
                                    "description"
                                  ]
                                }
                              },
                              "maxItems": 50
                            },
                            "outputs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "string",
                                      "domain",
                                      "number",
                                      "boolean",
                                      "object",
                                      "array"
                                    ]
                                  },
                                  "required": {
                                    "type": "boolean"
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 300
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "required"
                                ],
                                "patternProperties": {
                                  "^(?!(?:name|type|required|description)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "name",
                                    "type",
                                    "required",
                                    "description"
                                  ]
                                }
                              },
                              "maxItems": 50
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "versionId",
                            "inputs",
                            "outputs"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|versionId|inputs|outputs)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "versionId",
                              "inputs",
                              "outputs"
                            ]
                          }
                        },
                        "maxItems": 500
                      }
                    },
                    "required": [
                      "authorized",
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:authorized|items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "authorized",
                        "items"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "messageId": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "threadId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "from": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "snippet": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "receivedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "label": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "messageId",
                            "threadId",
                            "from",
                            "subject",
                            "snippet",
                            "receivedAt",
                            "label"
                          ],
                          "patternProperties": {
                            "^(?!(?:messageId|threadId|from|subject|snippet|receivedAt|label)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "messageId",
                              "threadId",
                              "from",
                              "subject",
                              "snippet",
                              "receivedAt",
                              "label"
                            ]
                          }
                        },
                        "maxItems": 50
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "reply": {
                        "type": "object",
                        "properties": {
                          "messageId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "threadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "from": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "snippet": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "receivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "label": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "messageId",
                          "threadId",
                          "from",
                          "subject",
                          "snippet",
                          "receivedAt",
                          "label"
                        ],
                        "patternProperties": {
                          "^(?!(?:messageId|threadId|from|subject|snippet|receivedAt|label)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "messageId",
                            "threadId",
                            "from",
                            "subject",
                            "snippet",
                            "receivedAt",
                            "label"
                          ]
                        }
                      },
                      "steps": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "nodeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "label": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "matched",
                                "not_matched",
                                "preview",
                                "blocked"
                              ]
                            },
                            "detail": {
                              "$ref": "#/$defs/Description"
                            },
                            "branch": {
                              "type": "string",
                              "enum": [
                                "yes",
                                "no"
                              ]
                            },
                            "fields": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  "value": {
                                    "$ref": "#/$defs/Description"
                                  },
                                  "unavailable": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "required": [
                                  "name"
                                ],
                                "patternProperties": {
                                  "^(?!(?:name|value|unavailable)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "name",
                                    "value",
                                    "unavailable"
                                  ]
                                }
                              },
                              "maxItems": 100
                            }
                          },
                          "required": [
                            "nodeId",
                            "label",
                            "status",
                            "detail"
                          ],
                          "patternProperties": {
                            "^(?!(?:nodeId|label|status|detail|branch|fields)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "nodeId",
                              "label",
                              "status",
                              "detail",
                              "branch",
                              "fields"
                            ]
                          }
                        },
                        "maxItems": 200
                      }
                    },
                    "required": [
                      "reply",
                      "steps"
                    ],
                    "patternProperties": {
                      "^(?!(?:reply|steps)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "reply",
                        "steps"
                      ]
                    }
                  }
                ]
              },
              {
                "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": 120
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "draft",
                                    "active",
                                    "paused",
                                    "deleting"
                                  ]
                                },
                                "publishedVersionId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/WorkflowVersionId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "triggerType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128,
                                      "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "alertCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "status",
                                "publishedVersionId",
                                "triggerType",
                                "alertCount",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "status",
                                  "publishedVersionId",
                                  "triggerType",
                                  "alertCount",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "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": 120
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "paused",
                              "deleting"
                            ]
                          },
                          "publishedVersionId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/WorkflowVersionId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "triggerType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "alertCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "version": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/$defs/WorkflowVersionId"
                                  },
                                  "workflowId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "version": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "graph": {
                                    "type": "object",
                                    "properties": {
                                      "schemaVersion": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "enum": [
                                              1
                                            ]
                                          }
                                        ]
                                      },
                                      "nodes": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "type": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128,
                                              "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                            },
                                            "position": {
                                              "type": "object",
                                              "properties": {
                                                "x": {
                                                  "type": "number"
                                                },
                                                "y": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "x",
                                                "y"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:x|y)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "x",
                                                  "y"
                                                ]
                                              }
                                            },
                                            "data": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/$defs/Union_"
                                              }
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "position",
                                            "data"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "id",
                                              "type",
                                              "position",
                                              "data"
                                            ]
                                          }
                                        },
                                        "maxItems": 200
                                      },
                                      "edges": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "source": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "target": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "sourceHandle": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "yes",
                                                    "no"
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "source",
                                            "target"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "id",
                                              "source",
                                              "target",
                                              "sourceHandle"
                                            ]
                                          }
                                        },
                                        "maxItems": 400
                                      }
                                    },
                                    "required": [
                                      "schemaVersion",
                                      "nodes",
                                      "edges"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "schemaVersion",
                                        "nodes",
                                        "edges"
                                      ]
                                    }
                                  },
                                  "publishedAt": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "createdAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  "updatedAt": {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  }
                                },
                                "required": [
                                  "id",
                                  "workflowId",
                                  "version",
                                  "graph",
                                  "publishedAt",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "patternProperties": {
                                  "^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "id",
                                    "workflowId",
                                    "version",
                                    "graph",
                                    "publishedAt",
                                    "createdAt",
                                    "updatedAt"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "status",
                          "publishedVersionId",
                          "triggerType",
                          "alertCount",
                          "createdAt",
                          "updatedAt",
                          "version"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt|version)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "status",
                            "publishedVersionId",
                            "triggerType",
                            "alertCount",
                            "createdAt",
                            "updatedAt",
                            "version"
                          ]
                        }
                      },
                      {
                        "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"
                                },
                                "workflowId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "workflowVersionId": {
                                  "$ref": "#/$defs/WorkflowVersionId"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "queued",
                                    "running",
                                    "paused",
                                    "completed",
                                    "failed"
                                  ]
                                },
                                "error": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/Description"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "leadId": {
                                  "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"
                                    }
                                  ]
                                },
                                "inboxId": {
                                  "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"
                                    }
                                  ]
                                },
                                "threadId": {
                                  "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"
                                    }
                                  ]
                                },
                                "triggerEvent": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "startedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "completedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "executions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/$defs/WorkflowNodeExecutionId"
                                      },
                                      "nodeId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "nodeType": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128,
                                        "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "running",
                                          "paused",
                                          "completed",
                                          "failed",
                                          "skipped"
                                        ]
                                      },
                                      "error": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/Description"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "branch": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "yes",
                                              "no"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "outputsRedacted": {
                                        "type": "boolean"
                                      },
                                      "externalRunId": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/OpaqueId"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "externalRestartRequiresAcknowledgement": {
                                        "type": "boolean"
                                      },
                                      "externalResult": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 131072
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "workflowResult": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 131072
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "healthResult": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 131072
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "domainRotation": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 131072
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "getleadsResult": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 131072
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "agentText": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 131072
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "childRunId": {
                                        "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"
                                          }
                                        ]
                                      },
                                      "childWorkflowId": {
                                        "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"
                                          }
                                        ]
                                      },
                                      "humanRequestTaskId": {
                                        "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"
                                          }
                                        ]
                                      },
                                      "startedAt": {
                                        "$ref": "#/$defs/UtcDateTimeEncoded"
                                      },
                                      "completedAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "nodeId",
                                      "nodeType",
                                      "status",
                                      "error",
                                      "branch",
                                      "outputsRedacted",
                                      "externalRunId",
                                      "externalRestartRequiresAcknowledgement",
                                      "externalResult",
                                      "workflowResult",
                                      "healthResult",
                                      "domainRotation",
                                      "getleadsResult",
                                      "agentText",
                                      "childRunId",
                                      "childWorkflowId",
                                      "humanRequestTaskId",
                                      "startedAt",
                                      "completedAt"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:id|nodeId|nodeType|status|error|branch|outputsRedacted|externalRunId|externalRestartRequiresAcknowledgement|externalResult|workflowResult|healthResult|domainRotation|getleadsResult|agentText|childRunId|childWorkflowId|humanRequestTaskId|startedAt|completedAt)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "id",
                                        "nodeId",
                                        "nodeType",
                                        "status",
                                        "error",
                                        "branch",
                                        "outputsRedacted",
                                        "externalRunId",
                                        "externalRestartRequiresAcknowledgement",
                                        "externalResult",
                                        "workflowResult",
                                        "healthResult",
                                        "domainRotation",
                                        "getleadsResult",
                                        "agentText",
                                        "childRunId",
                                        "childWorkflowId",
                                        "humanRequestTaskId",
                                        "startedAt",
                                        "completedAt"
                                      ]
                                    }
                                  },
                                  "maxItems": 200
                                },
                                "followUp": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "$ref": "#/$defs/WorkflowFollowUpId"
                                        },
                                        "runId": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "threadId": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "inboxId": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "counterpartyEmail": {
                                          "$ref": "#/$defs/EmailAddress"
                                        },
                                        "status": {
                                          "type": "string",
                                          "enum": [
                                            "active",
                                            "awaiting_approval",
                                            "completed",
                                            "stopped"
                                          ]
                                        },
                                        "stopReason": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "replied",
                                                "booked",
                                                "human_took_over",
                                                "negative_label",
                                                "unsubscribed",
                                                "thread_gone",
                                                "stopped_by_user",
                                                "agent_unauthorized",
                                                "exhausted"
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maxAttempts": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "attemptsSent": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "nextAttemptAt": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "lastOutboundAt": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "completedAt": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/$defs/UtcDateTimeEncoded"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "drafts": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "$ref": "#/$defs/WorkflowFollowUpDraftId"
                                              },
                                              "attempt": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              "status": {
                                                "type": "string",
                                                "enum": [
                                                  "pending",
                                                  "approved",
                                                  "edited",
                                                  "rejected",
                                                  "sent",
                                                  "expired"
                                                ]
                                              },
                                              "bodyText": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 4000
                                              },
                                              "modelReason": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/$defs/Description"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "toolTrace": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "$ref": "#/$defs/Union_"
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "sentMessageId": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/$defs/OpaqueId"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "createdAt": {
                                                "$ref": "#/$defs/UtcDateTimeEncoded"
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "attempt",
                                              "status",
                                              "bodyText",
                                              "modelReason",
                                              "toolTrace",
                                              "sentMessageId",
                                              "createdAt"
                                            ],
                                            "patternProperties": {
                                              "^(?!(?:id|attempt|status|bodyText|modelReason|toolTrace|sentMessageId|createdAt)$)[\\s\\S]*$": false
                                            },
                                            "additionalProperties": true,
                                            "propertyNames": {
                                              "type": "string",
                                              "enum": [
                                                "id",
                                                "attempt",
                                                "status",
                                                "bodyText",
                                                "modelReason",
                                                "toolTrace",
                                                "sentMessageId",
                                                "createdAt"
                                              ]
                                            }
                                          },
                                          "maxItems": 100
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "runId",
                                        "threadId",
                                        "inboxId",
                                        "counterpartyEmail",
                                        "status",
                                        "stopReason",
                                        "maxAttempts",
                                        "attemptsSent",
                                        "nextAttemptAt",
                                        "lastOutboundAt",
                                        "completedAt",
                                        "drafts"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:id|runId|threadId|inboxId|counterpartyEmail|status|stopReason|maxAttempts|attemptsSent|nextAttemptAt|lastOutboundAt|completedAt|drafts)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "id",
                                          "runId",
                                          "threadId",
                                          "inboxId",
                                          "counterpartyEmail",
                                          "status",
                                          "stopReason",
                                          "maxAttempts",
                                          "attemptsSent",
                                          "nextAttemptAt",
                                          "lastOutboundAt",
                                          "completedAt",
                                          "drafts"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "workflowId",
                                "workflowVersionId",
                                "status",
                                "error",
                                "leadId",
                                "inboxId",
                                "threadId",
                                "triggerEvent",
                                "createdAt",
                                "startedAt",
                                "completedAt",
                                "executions",
                                "followUp"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|workflowId|workflowVersionId|status|error|leadId|inboxId|threadId|triggerEvent|createdAt|startedAt|completedAt|executions|followUp)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "workflowId",
                                  "workflowVersionId",
                                  "status",
                                  "error",
                                  "leadId",
                                  "inboxId",
                                  "threadId",
                                  "triggerEvent",
                                  "createdAt",
                                  "startedAt",
                                  "completedAt",
                                  "executions",
                                  "followUp"
                                ]
                              }
                            },
                            "maxItems": 50
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/WorkflowTriggerLogId"
                                },
                                "workflowId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "workflowVersionId": {
                                  "$ref": "#/$defs/WorkflowVersionId"
                                },
                                "provider": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "webhookId": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "outcome": {
                                  "type": "string",
                                  "enum": [
                                    "received",
                                    "accepted",
                                    "rejected",
                                    "sample",
                                    "ignored",
                                    "duplicate",
                                    "error"
                                  ]
                                },
                                "reason": {
                                  "type": "string",
                                  "enum": [
                                    "processing",
                                    "admitted",
                                    "invalid_signature",
                                    "invalid_payload",
                                    "workspace_mismatch",
                                    "webhook_mismatch",
                                    "event_not_selected",
                                    "campaign_not_selected",
                                    "provider_sample",
                                    "duplicate",
                                    "webhook_inactive",
                                    "effects_disabled",
                                    "workflow_inactive",
                                    "conditions_not_met",
                                    "lead_not_found",
                                    "processing_failed",
                                    "payload_too_large",
                                    "missing_payload",
                                    "body_read_failed"
                                  ]
                                },
                                "httpStatus": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 100,
                                      "maximum": 599
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "runId": {
                                  "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"
                                    }
                                  ]
                                },
                                "requestFields": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "$ref": "#/$defs/ShortText"
                                  }
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "completedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "workflowId",
                                "workflowVersionId",
                                "provider",
                                "webhookId",
                                "outcome",
                                "reason",
                                "httpStatus",
                                "runId",
                                "requestFields",
                                "createdAt",
                                "completedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|workflowId|workflowVersionId|provider|webhookId|outcome|reason|httpStatus|runId|requestFields|createdAt|completedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "workflowId",
                                  "workflowVersionId",
                                  "provider",
                                  "webhookId",
                                  "outcome",
                                  "reason",
                                  "httpStatus",
                                  "runId",
                                  "requestFields",
                                  "createdAt",
                                  "completedAt"
                                ]
                              }
                            }
                          },
                          "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/WorkflowAlertId"
                                },
                                "workflowId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "workflowRunId": {
                                  "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"
                                    }
                                  ]
                                },
                                "nodeId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "code": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "message": {
                                  "$ref": "#/$defs/Description"
                                },
                                "relatedWorkflowId": {
                                  "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"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "workflowId",
                                "workflowRunId",
                                "nodeId",
                                "code",
                                "message",
                                "relatedWorkflowId",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|workflowId|workflowRunId|nodeId|code|message|relatedWorkflowId|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "workflowId",
                                  "workflowRunId",
                                  "nodeId",
                                  "code",
                                  "message",
                                  "relatedWorkflowId",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            },
                            "maxItems": 200
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "automation": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "follow_up"
                                            ]
                                          }
                                        ]
                                      },
                                      "id": {
                                        "$ref": "#/$defs/WorkflowFollowUpId"
                                      },
                                      "runId": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      },
                                      "workflowId": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      },
                                      "workflowName": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 120
                                      },
                                      "runStatus": {
                                        "type": "string",
                                        "enum": [
                                          "queued",
                                          "running",
                                          "paused",
                                          "completed",
                                          "failed"
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "active",
                                          "awaiting_approval",
                                          "completed",
                                          "stopped"
                                        ]
                                      },
                                      "attemptsSent": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "maxAttempts": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "nextAttemptAt": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/UtcDateTimeEncoded"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "stopReason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "replied",
                                              "booked",
                                              "human_took_over",
                                              "negative_label",
                                              "unsubscribed",
                                              "thread_gone",
                                              "stopped_by_user",
                                              "agent_unauthorized",
                                              "exhausted"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "pendingDraftId": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/WorkflowFollowUpDraftId"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "id",
                                      "runId",
                                      "workflowId",
                                      "workflowName",
                                      "runStatus",
                                      "status",
                                      "attemptsSent",
                                      "maxAttempts",
                                      "nextAttemptAt",
                                      "stopReason",
                                      "pendingDraftId"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:kind|id|runId|workflowId|workflowName|runStatus|status|attemptsSent|maxAttempts|nextAttemptAt|stopReason|pendingDraftId)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "kind",
                                        "id",
                                        "runId",
                                        "workflowId",
                                        "workflowName",
                                        "runStatus",
                                        "status",
                                        "attemptsSent",
                                        "maxAttempts",
                                        "nextAttemptAt",
                                        "stopReason",
                                        "pendingDraftId"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "sequence"
                                            ]
                                          }
                                        ]
                                      },
                                      "enrollmentId": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      },
                                      "sequenceId": {
                                        "type": "string",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                        "format": "uuid"
                                      },
                                      "sequenceName": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "childContactId": {
                                        "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"
                                          }
                                        ]
                                      },
                                      "contactStatus": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/ShortText"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "currentStep": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "totalSteps": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "enrollmentId",
                                      "sequenceId",
                                      "sequenceName",
                                      "childContactId",
                                      "contactStatus",
                                      "currentStep",
                                      "totalSteps"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:kind|enrollmentId|sequenceId|sequenceName|childContactId|contactStatus|currentStep|totalSteps)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "kind",
                                        "enrollmentId",
                                        "sequenceId",
                                        "sequenceName",
                                        "childContactId",
                                        "contactStatus",
                                        "currentStep",
                                        "totalSteps"
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "automation"
                        ],
                        "patternProperties": {
                          "^(?!(?:automation)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "automation"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "authorized": {
                            "type": "boolean"
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/CallListId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name"
                                ]
                              }
                            },
                            "maxItems": 500
                          }
                        },
                        "required": [
                          "authorized",
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:authorized|items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "authorized",
                            "items"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "authorized": {
                            "type": "boolean"
                          },
                          "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": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name"
                                ]
                              }
                            },
                            "maxItems": 500
                          }
                        },
                        "required": [
                          "authorized",
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:authorized|items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "authorized",
                            "items"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "authorized": {
                            "type": "boolean"
                          },
                          "inboxes": {
                            "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"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "google_workspace",
                                    "microsoft_365",
                                    "other"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive",
                                    "error",
                                    "alert"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "emailAddress",
                                "provider",
                                "status"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|emailAddress|provider|status)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "emailAddress",
                                  "provider",
                                  "status"
                                ]
                              }
                            },
                            "maxItems": 2000
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "color": {
                                  "$ref": "#/$defs/HexColor"
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "updatedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color",
                                "description",
                                "createdAt",
                                "updatedAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "color",
                                  "description",
                                  "createdAt",
                                  "updatedAt"
                                ]
                              }
                            },
                            "maxItems": 500
                          }
                        },
                        "required": [
                          "authorized",
                          "inboxes",
                          "tags"
                        ],
                        "patternProperties": {
                          "^(?!(?:authorized|inboxes|tags)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "authorized",
                            "inboxes",
                            "tags"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "authorized": {
                            "type": "boolean"
                          },
                          "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": 120
                                },
                                "versionId": {
                                  "$ref": "#/$defs/WorkflowVersionId"
                                },
                                "inputs": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string",
                                          "domain",
                                          "number",
                                          "boolean",
                                          "object",
                                          "array"
                                        ]
                                      },
                                      "required": {
                                        "type": "boolean"
                                      },
                                      "description": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 300
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "required"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:name|type|required|description)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "name",
                                        "type",
                                        "required",
                                        "description"
                                      ]
                                    }
                                  },
                                  "maxItems": 50
                                },
                                "outputs": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string",
                                          "domain",
                                          "number",
                                          "boolean",
                                          "object",
                                          "array"
                                        ]
                                      },
                                      "required": {
                                        "type": "boolean"
                                      },
                                      "description": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 300
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "required"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:name|type|required|description)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "name",
                                        "type",
                                        "required",
                                        "description"
                                      ]
                                    }
                                  },
                                  "maxItems": 50
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "versionId",
                                "inputs",
                                "outputs"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|versionId|inputs|outputs)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "versionId",
                                  "inputs",
                                  "outputs"
                                ]
                              }
                            },
                            "maxItems": 500
                          }
                        },
                        "required": [
                          "authorized",
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:authorized|items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "authorized",
                            "items"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "messageId": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "threadId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "from": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "snippet": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "receivedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "label": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "messageId",
                                "threadId",
                                "from",
                                "subject",
                                "snippet",
                                "receivedAt",
                                "label"
                              ],
                              "patternProperties": {
                                "^(?!(?:messageId|threadId|from|subject|snippet|receivedAt|label)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "messageId",
                                  "threadId",
                                  "from",
                                  "subject",
                                  "snippet",
                                  "receivedAt",
                                  "label"
                                ]
                              }
                            },
                            "maxItems": 50
                          }
                        },
                        "required": [
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "items"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "reply": {
                            "type": "object",
                            "properties": {
                              "messageId": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "threadId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "from": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "subject": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "snippet": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "receivedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/UtcDateTimeEncoded"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "label": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "messageId",
                              "threadId",
                              "from",
                              "subject",
                              "snippet",
                              "receivedAt",
                              "label"
                            ],
                            "patternProperties": {
                              "^(?!(?:messageId|threadId|from|subject|snippet|receivedAt|label)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "messageId",
                                "threadId",
                                "from",
                                "subject",
                                "snippet",
                                "receivedAt",
                                "label"
                              ]
                            }
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "nodeId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "label": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "matched",
                                    "not_matched",
                                    "preview",
                                    "blocked"
                                  ]
                                },
                                "detail": {
                                  "$ref": "#/$defs/Description"
                                },
                                "branch": {
                                  "type": "string",
                                  "enum": [
                                    "yes",
                                    "no"
                                  ]
                                },
                                "fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "$ref": "#/$defs/ShortText"
                                      },
                                      "value": {
                                        "$ref": "#/$defs/Description"
                                      },
                                      "unavailable": {
                                        "$ref": "#/$defs/ShortText"
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:name|value|unavailable)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "name",
                                        "value",
                                        "unavailable"
                                      ]
                                    }
                                  },
                                  "maxItems": 100
                                }
                              },
                              "required": [
                                "nodeId",
                                "label",
                                "status",
                                "detail"
                              ],
                              "patternProperties": {
                                "^(?!(?:nodeId|label|status|detail|branch|fields)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "nodeId",
                                  "label",
                                  "status",
                                  "detail",
                                  "branch",
                                  "fields"
                                ]
                              }
                            },
                            "maxItems": 200
                          }
                        },
                        "required": [
                          "reply",
                          "steps"
                        ],
                        "patternProperties": {
                          "^(?!(?:reply|steps)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "reply",
                            "steps"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_workflows"
      },
      "scopes": [
        "workflow:read"
      ],
      "bundles": [
        "workflow_automation"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "workflows.list",
        "workflows.get",
        "workflows.runs",
        "workflows.triggerLogs",
        "workflows.alerts",
        "workflows.threadAutomation",
        "workflows.simulate",
        "workflows.testReplies",
        "workflowOptions.callLists",
        "workflowOptions.sequences",
        "workflowOptions.inboxScopes",
        "workflowOptions.enrollmentTargets"
      ],
      "invocations": [
        {
          "operationId": "workflows.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.runs",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/runs",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.triggerLogs",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/trigger-logs",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.alerts",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/alerts",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.threadAutomation",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/threads/:threadId",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.simulate",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/simulate",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.testReplies",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/test-replies",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowOptions.callLists",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/options/call-lists",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowOptions.sequences",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/options/sequences",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowOptions.inboxScopes",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/options/inbox-scopes",
          "workspaceScoped": false
        },
        {
          "operationId": "workflowOptions.enrollmentTargets",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/workflows/options/enrollment-targets",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "scope": {
            "type": "string",
            "enum": [
              "list",
              "workflow",
              "runs",
              "trigger_logs",
              "alerts",
              "thread_automation",
              "call_list_options",
              "sequence_options",
              "inbox_scope_options",
              "enrollment_targets",
              "test_replies",
              "simulate"
            ]
          },
          "workflowId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "threadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "runs": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50
              },
              "runId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "patternProperties": {
              "^(?!(?:limit|runId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "limit",
                "runId"
              ]
            }
          },
          "triggerLogs": {
            "type": "object",
            "properties": {
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "received",
                  "accepted",
                  "rejected",
                  "sample",
                  "ignored",
                  "duplicate",
                  "error"
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:cursor|limit|outcome)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "cursor",
                "limit",
                "outcome"
              ]
            }
          },
          "testReplies": {
            "type": "object",
            "properties": {
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "workflowId"
            ],
            "patternProperties": {
              "^(?!(?:workflowId|search)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workflowId",
                "search"
              ]
            }
          },
          "simulate": {
            "type": "object",
            "properties": {
              "messageId": {
                "$ref": "#/$defs/OpaqueId"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "graph": {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "anyOf": [
                      {
                        "type": "number",
                        "enum": [
                          1
                        ]
                      }
                    ]
                  },
                  "nodes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
                        },
                        "position": {
                          "type": "object",
                          "properties": {
                            "x": {
                              "type": "number"
                            },
                            "y": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "x",
                            "y"
                          ],
                          "patternProperties": {
                            "^(?!(?:x|y)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "x",
                              "y"
                            ]
                          }
                        },
                        "data": {
                          "type": "object",
                          "additionalProperties": {
                            "$ref": "#/$defs/Union_"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "position",
                        "data"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "type",
                          "position",
                          "data"
                        ]
                      }
                    },
                    "maxItems": 200
                  },
                  "edges": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "target": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "sourceHandle": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "yes",
                                "no"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "source",
                        "target"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "source",
                          "target",
                          "sourceHandle"
                        ]
                      }
                    },
                    "maxItems": 400
                  }
                },
                "required": [
                  "schemaVersion",
                  "nodes",
                  "edges"
                ],
                "patternProperties": {
                  "^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "schemaVersion",
                    "nodes",
                    "edges"
                  ]
                }
              }
            },
            "required": [
              "messageId",
              "name",
              "graph"
            ],
            "patternProperties": {
              "^(?!(?:messageId|name|graph)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "messageId",
                "name",
                "graph"
              ]
            }
          },
          "enrollmentTargets": {
            "type": "object",
            "properties": {
              "excludeId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "patternProperties": {
              "^(?!(?:excludeId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "excludeId"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "scope"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|scope|workflowId|threadId|runs|triggerLogs|testReplies|simulate|enrollmentTargets)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "scope",
            "workflowId",
            "threadId",
            "runs",
            "triggerLogs",
            "testReplies",
            "simulate",
            "enrollmentTargets"
          ]
        },
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "read_workspace_settings",
      "description": "Read a workspace's organization settings or AI-label settings, returning documented defaults when no row exists yet.\n\nUse before mutating settings to see the effective configuration a workspace currently runs with.\n\nDoes not expose credentials, blocked addresses, or catalog rows; use the dedicated catalog tools for those.",
      "inputSchema": {
        "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"
          },
          "scope": {
            "type": "string",
            "enum": [
              "workspace_settings",
              "ai_labels"
            ]
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|scope)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "scope"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          },
          "E164PhoneNumber": {
            "type": "string",
            "pattern": "^\\+[1-9]\\d{1,14}$"
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "contactSuggestionsAutoConfirm": {
                        "type": "boolean"
                      },
                      "contactSuggestionsAutoConfirmSince": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "replyDetectionAiPrompt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "googleEspMatch": {
                        "type": "string",
                        "enum": [
                          "google",
                          "microsoft",
                          "other",
                          "all",
                          "tags",
                          "skip"
                        ]
                      },
                      "microsoftEspMatch": {
                        "type": "string",
                        "enum": [
                          "google",
                          "microsoft",
                          "other",
                          "all",
                          "tags",
                          "skip"
                        ]
                      },
                      "otherEspMatch": {
                        "type": "string",
                        "enum": [
                          "google",
                          "microsoft",
                          "other",
                          "all",
                          "tags",
                          "skip"
                        ]
                      },
                      "timezone": {
                        "$ref": "#/$defs/IanaTimeZone"
                      },
                      "dailySendingLimit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "textMessageSenderNumber": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/E164PhoneNumber"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dailyCapPerRecipientDomain": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "autoReminderEnabled": {
                        "type": "boolean"
                      },
                      "autoReminderDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365
                      },
                      "autoReminderBusinessDaysOnly": {
                        "type": "boolean"
                      },
                      "verificationSharingMode": {
                        "type": "string",
                        "enum": [
                          "contribute_and_consume",
                          "consume_only",
                          "private"
                        ]
                      },
                      "createdAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "workspaceId",
                      "contactSuggestionsAutoConfirm",
                      "contactSuggestionsAutoConfirmSince",
                      "replyDetectionAiPrompt",
                      "googleEspMatch",
                      "microsoftEspMatch",
                      "otherEspMatch",
                      "timezone",
                      "dailySendingLimit",
                      "textMessageSenderNumber",
                      "dailyCapPerRecipientDomain",
                      "autoReminderEnabled",
                      "autoReminderDays",
                      "autoReminderBusinessDaysOnly",
                      "verificationSharingMode",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:workspaceId|contactSuggestionsAutoConfirm|contactSuggestionsAutoConfirmSince|replyDetectionAiPrompt|googleEspMatch|microsoftEspMatch|otherEspMatch|timezone|dailySendingLimit|textMessageSenderNumber|dailyCapPerRecipientDomain|autoReminderEnabled|autoReminderDays|autoReminderBusinessDaysOnly|verificationSharingMode|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "workspaceId",
                        "contactSuggestionsAutoConfirm",
                        "contactSuggestionsAutoConfirmSince",
                        "replyDetectionAiPrompt",
                        "googleEspMatch",
                        "microsoftEspMatch",
                        "otherEspMatch",
                        "timezone",
                        "dailySendingLimit",
                        "textMessageSenderNumber",
                        "dailyCapPerRecipientDomain",
                        "autoReminderEnabled",
                        "autoReminderDays",
                        "autoReminderBusinessDaysOnly",
                        "verificationSharingMode",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "aiLabelDetection": {
                        "type": "boolean"
                      },
                      "labelCategorizationPrompt": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "emailNotificationForPositiveReplies": {
                        "type": "boolean"
                      },
                      "emailNotificationForAiFollowUpApprovals": {
                        "type": "boolean"
                      },
                      "notificationEmails": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/EmailAddress"
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "aiLabelDetection",
                      "labelCategorizationPrompt",
                      "emailNotificationForPositiveReplies",
                      "emailNotificationForAiFollowUpApprovals",
                      "notificationEmails"
                    ],
                    "patternProperties": {
                      "^(?!(?:aiLabelDetection|labelCategorizationPrompt|emailNotificationForPositiveReplies|emailNotificationForAiFollowUpApprovals|notificationEmails)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "aiLabelDetection",
                        "labelCategorizationPrompt",
                        "emailNotificationForPositiveReplies",
                        "emailNotificationForAiFollowUpApprovals",
                        "notificationEmails"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "contactSuggestionsAutoConfirm": {
                            "type": "boolean"
                          },
                          "contactSuggestionsAutoConfirmSince": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replyDetectionAiPrompt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Description"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "googleEspMatch": {
                            "type": "string",
                            "enum": [
                              "google",
                              "microsoft",
                              "other",
                              "all",
                              "tags",
                              "skip"
                            ]
                          },
                          "microsoftEspMatch": {
                            "type": "string",
                            "enum": [
                              "google",
                              "microsoft",
                              "other",
                              "all",
                              "tags",
                              "skip"
                            ]
                          },
                          "otherEspMatch": {
                            "type": "string",
                            "enum": [
                              "google",
                              "microsoft",
                              "other",
                              "all",
                              "tags",
                              "skip"
                            ]
                          },
                          "timezone": {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          "dailySendingLimit": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "textMessageSenderNumber": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/E164PhoneNumber"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dailyCapPerRecipientDomain": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "autoReminderEnabled": {
                            "type": "boolean"
                          },
                          "autoReminderDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 365
                          },
                          "autoReminderBusinessDaysOnly": {
                            "type": "boolean"
                          },
                          "verificationSharingMode": {
                            "type": "string",
                            "enum": [
                              "contribute_and_consume",
                              "consume_only",
                              "private"
                            ]
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "workspaceId",
                          "contactSuggestionsAutoConfirm",
                          "contactSuggestionsAutoConfirmSince",
                          "replyDetectionAiPrompt",
                          "googleEspMatch",
                          "microsoftEspMatch",
                          "otherEspMatch",
                          "timezone",
                          "dailySendingLimit",
                          "textMessageSenderNumber",
                          "dailyCapPerRecipientDomain",
                          "autoReminderEnabled",
                          "autoReminderDays",
                          "autoReminderBusinessDaysOnly",
                          "verificationSharingMode",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:workspaceId|contactSuggestionsAutoConfirm|contactSuggestionsAutoConfirmSince|replyDetectionAiPrompt|googleEspMatch|microsoftEspMatch|otherEspMatch|timezone|dailySendingLimit|textMessageSenderNumber|dailyCapPerRecipientDomain|autoReminderEnabled|autoReminderDays|autoReminderBusinessDaysOnly|verificationSharingMode|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "workspaceId",
                            "contactSuggestionsAutoConfirm",
                            "contactSuggestionsAutoConfirmSince",
                            "replyDetectionAiPrompt",
                            "googleEspMatch",
                            "microsoftEspMatch",
                            "otherEspMatch",
                            "timezone",
                            "dailySendingLimit",
                            "textMessageSenderNumber",
                            "dailyCapPerRecipientDomain",
                            "autoReminderEnabled",
                            "autoReminderDays",
                            "autoReminderBusinessDaysOnly",
                            "verificationSharingMode",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "aiLabelDetection": {
                            "type": "boolean"
                          },
                          "labelCategorizationPrompt": {
                            "type": "string",
                            "maxLength": 2000
                          },
                          "emailNotificationForPositiveReplies": {
                            "type": "boolean"
                          },
                          "emailNotificationForAiFollowUpApprovals": {
                            "type": "boolean"
                          },
                          "notificationEmails": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "maxItems": 100
                          }
                        },
                        "required": [
                          "aiLabelDetection",
                          "labelCategorizationPrompt",
                          "emailNotificationForPositiveReplies",
                          "emailNotificationForAiFollowUpApprovals",
                          "notificationEmails"
                        ],
                        "patternProperties": {
                          "^(?!(?:aiLabelDetection|labelCategorizationPrompt|emailNotificationForPositiveReplies|emailNotificationForAiFollowUpApprovals|notificationEmails)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "aiLabelDetection",
                            "labelCategorizationPrompt",
                            "emailNotificationForPositiveReplies",
                            "emailNotificationForAiFollowUpApprovals",
                            "notificationEmails"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_workspace_settings"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "workspace_settings"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "workspaceSettings.get",
        "aiLabels.get"
      ],
      "invocations": [
        {
          "operationId": "workspaceSettings.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/settings",
          "workspaceScoped": false
        },
        {
          "operationId": "aiLabels.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/settings/ai-labels",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "scope": {
            "type": "string",
            "enum": [
              "workspace_settings",
              "ai_labels"
            ]
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|scope)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "scope"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "read_workspace_usage",
      "description": "Read a workspace's billing-period-aligned usage counters and subscription limits.\n\nUse to report how much of each quota the current workspace has consumed.\n\nRead-only; it never mutates counters or manages the subscription itself.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "usage": {
            "type": "object",
            "properties": {
              "emailsSent": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "connectedInboxes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "activeCampaigns": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "totalContacts": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "emailsSent",
              "connectedInboxes",
              "activeCampaigns",
              "totalContacts"
            ],
            "patternProperties": {
              "^(?!(?:emailsSent|connectedInboxes|activeCampaigns|totalContacts)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "emailsSent",
                "connectedInboxes",
                "activeCampaigns",
                "totalContacts"
              ]
            }
          },
          "workspaceUsage": {
            "type": "object",
            "properties": {
              "emailsSent": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "connectedInboxes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "activeCampaigns": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "totalContacts": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "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"
              }
            },
            "required": [
              "emailsSent",
              "connectedInboxes",
              "activeCampaigns",
              "totalContacts",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:emailsSent|connectedInboxes|activeCampaigns|totalContacts|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "emailsSent",
                "connectedInboxes",
                "activeCampaigns",
                "totalContacts",
                "workspaceId"
              ]
            }
          },
          "limits": {
            "type": "object",
            "properties": {
              "maxEmailsPerMonth": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "maxInboxes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "maxCampaigns": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "maxContactsPerCampaign": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "maxEmailsPerMonth",
              "maxInboxes",
              "maxCampaigns",
              "maxContactsPerCampaign"
            ],
            "patternProperties": {
              "^(?!(?:maxEmailsPerMonth|maxInboxes|maxCampaigns|maxContactsPerCampaign)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "maxEmailsPerMonth",
                "maxInboxes",
                "maxCampaigns",
                "maxContactsPerCampaign"
              ]
            }
          },
          "period": {
            "type": "object",
            "properties": {
              "start": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "end": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              }
            },
            "required": [
              "start",
              "end"
            ],
            "patternProperties": {
              "^(?!(?:start|end)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "start",
                "end"
              ]
            }
          },
          "subscription": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "plan": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "status": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "billingCycle": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "periodEnd": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "trialEnd": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "plan",
                  "status",
                  "billingCycle",
                  "periodEnd",
                  "trialEnd"
                ],
                "patternProperties": {
                  "^(?!(?:plan|status|billingCycle|periodEnd|trialEnd)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "plan",
                    "status",
                    "billingCycle",
                    "periodEnd",
                    "trialEnd"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "usage",
          "workspaceUsage",
          "limits",
          "period",
          "subscription"
        ],
        "patternProperties": {
          "^(?!(?:usage|workspaceUsage|limits|period|subscription)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "usage",
            "workspaceUsage",
            "limits",
            "period",
            "subscription"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "read_workspace_usage"
      },
      "scopes": [
        "usage:read"
      ],
      "bundles": [
        "workspace_insights"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "workspaces.usage"
      ],
      "invocations": [
        {
          "operationId": "workspaces.usage",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/usage",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "reattach_integration_share",
      "description": "Re-attach a shared connection this workspace previously detached.\n\nUse when a detached workspace should use the shared connection again. Paused workflows stay paused until resumed.\n\nFails when the share was revoked or this workspace now has its own connection of the provider.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "provider": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "displayName": {
            "$ref": "#/$defs/ShortText"
          },
          "role": {
            "type": "string",
            "enum": [
              "source",
              "target"
            ]
          },
          "sourceWorkspaceId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceWorkspaceName": {
            "anyOf": [
              {
                "$ref": "#/$defs/ShortText"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceConnectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceConnected": {
            "type": "boolean"
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "revokedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "targets": {
            "type": "array",
            "items": {
              "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"
                },
                "workspaceName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "attaching",
                    "attached",
                    "detached",
                    "failed"
                  ]
                },
                "connectionId": {
                  "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"
                    }
                  ]
                },
                "failureReason": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "attachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "detachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "workspaceId",
                "workspaceName",
                "state",
                "connectionId",
                "failureReason",
                "attachedAt",
                "detachedAt"
              ],
              "patternProperties": {
                "^(?!(?:workspaceId|workspaceName|state|connectionId|failureReason|attachedAt|detachedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "workspaceId",
                  "workspaceName",
                  "state",
                  "connectionId",
                  "failureReason",
                  "attachedAt",
                  "detachedAt"
                ]
              }
            },
            "maxItems": 500
          }
        },
        "required": [
          "id",
          "adapter",
          "provider",
          "displayName",
          "role",
          "sourceWorkspaceId",
          "sourceWorkspaceName",
          "sourceConnectionId",
          "sourceConnected",
          "includeFutureWorkspaces",
          "createdAt",
          "revokedAt",
          "targets"
        ],
        "patternProperties": {
          "^(?!(?:id|adapter|provider|displayName|role|sourceWorkspaceId|sourceWorkspaceName|sourceConnectionId|sourceConnected|includeFutureWorkspaces|createdAt|revokedAt|targets)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "adapter",
            "provider",
            "displayName",
            "role",
            "sourceWorkspaceId",
            "sourceWorkspaceName",
            "sourceConnectionId",
            "sourceConnected",
            "includeFutureWorkspaces",
            "createdAt",
            "revokedAt",
            "targets"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          },
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "reattach_integration_share"
      },
      "scopes": [
        "integration:create"
      ],
      "bundles": [
        "integration_sharing"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationShares.reattach"
      ],
      "invocations": [
        {
          "operationId": "integrationShares.reattach",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integration-shares/:shareId/reattach",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId"
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "reconcile_plusvibe",
      "description": "Repair every PlusVibe workflow webhook in the workspace in the background.\n\nUse when get_plusvibe_status shows a hook in error or pending; poll the returned operation for per-hook outcomes.\n\nReconciling does not reconnect a disconnected key; it only repairs or removes remote hooks.",
      "inputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "hookCount": {
            "type": "integer",
            "minimum": 0
          },
          "operation": {
            "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"
              },
              "statusUrl": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/HttpUrl"
                  },
                  {
                    "$ref": "#/$defs/HttpResourcePath"
                  }
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "queued",
                  "running",
                  "waiting_for_user",
                  "succeeded",
                  "partially_succeeded",
                  "failed",
                  "canceled",
                  "canceling"
                ]
              },
              "acceptedAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "progress": {
                "type": "object",
                "properties": {
                  "completed": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "message": {
                    "$ref": "#/$defs/NonEmptyString"
                  }
                },
                "required": [
                  "completed"
                ],
                "patternProperties": {
                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "completed",
                    "total",
                    "message"
                  ]
                }
              },
              "canCancel": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "statusUrl",
              "state",
              "acceptedAt",
              "canCancel"
            ],
            "patternProperties": {
              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "statusUrl",
                "state",
                "acceptedAt",
                "progress",
                "canCancel"
              ]
            }
          }
        },
        "required": [
          "hookCount",
          "operation"
        ],
        "patternProperties": {
          "^(?!(?:hookCount|operation)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "hookCount",
            "operation"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          }
        }
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "plusvibe.reconcile"
      },
      "scopes": [
        "integration:update"
      ],
      "bundles": [
        "plusvibe"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "plusvibe.reconcile"
      ],
      "invocations": [
        {
          "operationId": "plusvibe.reconcile",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/plusvibe/reconcile",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "workspaceId"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "reconnect_google_inbox",
      "description": "Mints a reconnect consent URL pinned to one existing Google inbox.\n\nWhen asked to re-authorize a specific Google inbox.\n\nFor a first-time connect — use connect_google_inbox.\n\nReturn the authorization or checkout handoff to the person. The agent may initiate and inspect status, but must not complete the human approval.",
      "inputSchema": {
        "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"
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "inboxId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "authorizationUrl": {
            "$ref": "#/$defs/HttpUrl"
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "googleClientId": {
            "anyOf": [
              {
                "$ref": "#/$defs/NonEmptyString"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "authorizationUrl",
          "expiresAt",
          "googleClientId"
        ],
        "patternProperties": {
          "^(?!(?:authorizationUrl|expiresAt|googleClientId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "authorizationUrl",
            "expiresAt",
            "googleClientId"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "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
          }
        }
      },
      "kind": "user_completion",
      "mapping": {
        "kind": "user_completion",
        "completionUrlField": "authorizationUrl",
        "statusOperationId": "inboxes.list"
      },
      "scopes": [
        "inbox:connect",
        "inbox:read"
      ],
      "bundles": [
        "inbox_connection_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "human_completion",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxConnections.startGoogleReconnect",
        "inboxes.list"
      ],
      "invocations": [
        {
          "operationId": "inboxConnections.startGoogleReconnect",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/google-reconnect",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.list",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/inboxes",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "inboxId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "inboxId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxId"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "report_onboarding",
      "description": "Read or advance a workspace's onboarding and getting-started activation state.\n\nUse to read activation progress or merge a single onboarding step's answers.\n\nStep saves merge per-step; they are not a full-state overwrite.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "getState"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "gettingStarted"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "saveStep"
                    ]
                  }
                ]
              },
              "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"
              },
              "step": {
                "type": "string",
                "enum": [
                  "website",
                  "company",
                  "tools",
                  "heardFrom",
                  "role",
                  "mailboxes"
                ]
              },
              "answers": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              },
              "syncFavicon": {
                "type": "boolean"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "step",
              "answers"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|step|answers|syncFavicon)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "step",
                "answers",
                "syncFavicon"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "skip"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "complete"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          }
        ],
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ReportOnboardingInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "getState"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "gettingStarted"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "saveStep"
                        ]
                      }
                    ]
                  },
                  "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"
                  },
                  "step": {
                    "type": "string",
                    "enum": [
                      "website",
                      "company",
                      "tools",
                      "heardFrom",
                      "role",
                      "mailboxes"
                    ]
                  },
                  "answers": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/Union_"
                    }
                  },
                  "syncFavicon": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "action",
                  "workspaceId",
                  "step",
                  "answers"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId|step|answers|syncFavicon)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "step",
                    "answers",
                    "syncFavicon"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "skip"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "complete"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ReportOnboardingOutput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "connectInbox": {
                    "type": "boolean"
                  },
                  "importLeads": {
                    "type": "boolean"
                  },
                  "createCampaign": {
                    "type": "boolean"
                  },
                  "launchCampaign": {
                    "type": "boolean"
                  },
                  "verifyLeads": {
                    "type": "boolean"
                  },
                  "inviteTeam": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "connectInbox",
                  "importLeads",
                  "createCampaign",
                  "launchCampaign",
                  "verifyLeads",
                  "inviteTeam"
                ],
                "patternProperties": {
                  "^(?!(?:connectInbox|importLeads|createCampaign|launchCampaign|verifyLeads|inviteTeam)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "connectInbox",
                    "importLeads",
                    "createCampaign",
                    "launchCampaign",
                    "verifyLeads",
                    "inviteTeam"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "companySize": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "solo",
                          "2_5",
                          "6_10",
                          "11_25",
                          "26_50",
                          "51_200",
                          "200_plus"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "answers": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/Union_"
                    }
                  },
                  "completedSteps": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "website",
                        "company",
                        "tools",
                        "heardFrom",
                        "role",
                        "mailboxes"
                      ]
                    }
                  },
                  "completedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "skippedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "createdAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "updatedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "organizationId",
                  "companySize",
                  "answers",
                  "completedSteps",
                  "completedAt",
                  "skippedAt",
                  "createdAt",
                  "updatedAt"
                ],
                "patternProperties": {
                  "^(?!(?:organizationId|companySize|answers|completedSteps|completedAt|skippedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "organizationId",
                    "companySize",
                    "answers",
                    "completedSteps",
                    "completedAt",
                    "skippedAt",
                    "createdAt",
                    "updatedAt"
                  ]
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/ReportOnboardingOutput"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/ReportOnboardingOutput"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "report_onboarding"
      },
      "scopes": [
        "workspace:read",
        "workspace:update"
      ],
      "bundles": [
        "workspace_insights"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "workspaces.gettingStarted",
        "workspaces.onboarding.get",
        "workspaces.onboarding.saveStep",
        "workspaces.onboarding.skip",
        "workspaces.onboarding.complete"
      ],
      "invocations": [
        {
          "operationId": "workspaces.gettingStarted",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/getting-started",
          "workspaceScoped": false
        },
        {
          "operationId": "workspaces.onboarding.get",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/onboarding",
          "workspaceScoped": false
        },
        {
          "operationId": "workspaces.onboarding.saveStep",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/onboarding/steps",
          "workspaceScoped": false
        },
        {
          "operationId": "workspaces.onboarding.skip",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/onboarding/skip",
          "workspaceScoped": false
        },
        {
          "operationId": "workspaces.onboarding.complete",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/onboarding/complete",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "getState"
                    ]
                  }
                ]
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "gettingStarted"
                    ]
                  }
                ]
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "saveStep"
                    ]
                  }
                ]
              },
              "step": {
                "type": "string",
                "enum": [
                  "website",
                  "company",
                  "tools",
                  "heardFrom",
                  "role",
                  "mailboxes"
                ]
              },
              "answers": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              },
              "syncFavicon": {
                "type": "boolean"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "step",
              "answers"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|step|answers|syncFavicon)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "step",
                    "answers",
                    "syncFavicon"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "skip"
                    ]
                  }
                ]
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "complete"
                    ]
                  }
                ]
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "ReportOnboardingInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "getState"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "gettingStarted"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "saveStep"
                        ]
                      }
                    ]
                  },
                  "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"
                  },
                  "step": {
                    "type": "string",
                    "enum": [
                      "website",
                      "company",
                      "tools",
                      "heardFrom",
                      "role",
                      "mailboxes"
                    ]
                  },
                  "answers": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/Union_"
                    }
                  },
                  "syncFavicon": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "action",
                  "workspaceId",
                  "step",
                  "answers"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId|step|answers|syncFavicon)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "step",
                    "answers",
                    "syncFavicon"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "skip"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "complete"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "request_gmail_connect_links",
      "description": "Mints a capacity-clamped batch of Google connect links to hand to workspace members.\n\nWhen asked for shareable Gmail connect links for team members.\n\nFor a single self-serve connect — use connect_google_inbox.",
      "inputSchema": {
        "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"
          },
          "request": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 15
              }
            },
            "patternProperties": {
              "^(?!(?:count)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "count"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "request"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|request)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "request"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "$ref": "#/$defs/HttpUrl"
                },
                "expiresAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "url",
                "expiresAt"
              ],
              "patternProperties": {
                "^(?!(?:url|expiresAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "url",
                  "expiresAt"
                ]
              }
            },
            "maxItems": 15
          },
          "googleClientId": {
            "anyOf": [
              {
                "$ref": "#/$defs/NonEmptyString"
              },
              {
                "type": "null"
              }
            ]
          },
          "requested": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "issued": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "remaining": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "planLimit": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "instructions": {
            "$ref": "#/$defs/NonEmptyString"
          }
        },
        "required": [
          "links",
          "googleClientId",
          "requested",
          "issued",
          "remaining",
          "planLimit",
          "instructions"
        ],
        "patternProperties": {
          "^(?!(?:links|googleClientId|requested|issued|remaining|planLimit|instructions)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "links",
            "googleClientId",
            "requested",
            "issued",
            "remaining",
            "planLimit",
            "instructions"
          ]
        },
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "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
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "request_gmail_connect_links"
      },
      "scopes": [
        "inbox:connect"
      ],
      "bundles": [
        "inbox_connection_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxConnections.createGoogleConnectLinks"
      ],
      "invocations": [
        {
          "operationId": "inboxConnections.createGoogleConnectLinks",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inbox-connections/google/connect-links",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "request": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 15
              }
            },
            "patternProperties": {
              "^(?!(?:count)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "count"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "request"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|request)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "request"
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "request_integration",
      "description": "Ask the Scheduler Zero team to support a CRM, email-verification, or phone-verification provider.\n\nUse when the workspace needs a provider the catalog does not offer. `delivered: false` still means the request was recorded.\n\nNever include credentials or customer data in the request; it is forwarded to an issue tracker.",
      "inputSchema": {
        "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"
          },
          "request": {
            "type": "object",
            "properties": {
              "category": {
                "type": "string",
                "enum": [
                  "crm_integration",
                  "verification_provider",
                  "phone_verification_provider"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "website": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 0,
                    "maxLength": 300
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "useCase": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 0,
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "importance": {
                "type": "string",
                "enum": [
                  "nice_to_have",
                  "important",
                  "blocking"
                ]
              }
            },
            "required": [
              "category",
              "name"
            ],
            "patternProperties": {
              "^(?!(?:category|name|website|useCase|importance)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "category",
                "name",
                "website",
                "useCase",
                "importance"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "request"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|request)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "request"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "delivered": {
            "type": "boolean"
          }
        },
        "required": [
          "ok",
          "delivered"
        ],
        "patternProperties": {
          "^(?!(?:ok|delivered)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "ok",
            "delivered"
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "request_integration"
      },
      "scopes": [
        "support:create"
      ],
      "bundles": [
        "integration_directory"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationRequests.create"
      ],
      "invocations": [
        {
          "operationId": "integrationRequests.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integration-requests",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "request": {
            "type": "object",
            "properties": {
              "category": {
                "type": "string",
                "enum": [
                  "crm_integration",
                  "verification_provider",
                  "phone_verification_provider"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "website": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 0,
                    "maxLength": 300
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "useCase": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 0,
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "importance": {
                "type": "string",
                "enum": [
                  "nice_to_have",
                  "important",
                  "blocking"
                ]
              }
            },
            "required": [
              "category",
              "name"
            ],
            "patternProperties": {
              "^(?!(?:category|name|website|useCase|importance)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "category",
                "name",
                "website",
                "useCase",
                "importance"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "request"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|request)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "request"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "request_permissions",
      "description": "Ask the workspace's admins to grant the person additional workspace permissions. Admins are emailed and can approve with one click.\n\nUse after a tool call fails with a permission error that names requiredPermission, or when the person asks for access. First ask the person whether they want you to file the request; then pass the missing permissions, their reason if they gave one, and context describing what you were trying to do (attemptedTool, attemptedOperation, explanation).\n\nNever file without the person's agreement. Do not use for an AgentScopeDenied error (the person must reconnect the agent with broader consent instead) or with an API key (edit the key's scopes). Fails when the workspace's admins turned requests off.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "analytics:export",
                "analytics:read",
                "apiKey:create",
                "apiKey:delete",
                "apiKey:read",
                "apiKey:update",
                "blocklist:create",
                "blocklist:delete",
                "blocklist:read",
                "campaign:archive",
                "campaign:create",
                "campaign:delete",
                "campaign:launch",
                "campaign:pause",
                "campaign:read",
                "campaign:update",
                "dialer:assign_numbers",
                "dialer:assign_seats",
                "dialer:create",
                "dialer:delete",
                "dialer:dial",
                "dialer:manage_billing",
                "dialer:manage_number_health",
                "dialer:manage_numbers",
                "dialer:manage_numbers_self",
                "dialer:manage_voicemails",
                "dialer:read",
                "dialer:read_analytics",
                "dialer:read_numbers_all",
                "dialer:release_numbers",
                "dialer:update",
                "domain:manage_dns",
                "domain:purchase",
                "domain:read",
                "domain:transfer",
                "emailVerification:manage_credits",
                "emailVerification:manage_keys",
                "emailVerification:manage_sharing",
                "emailVerification:read",
                "emailVerification:verify",
                "inbox:connect",
                "inbox:create",
                "inbox:delete",
                "inbox:read",
                "inbox:update",
                "inbox:warmup_manage",
                "integration:create",
                "integration:delete",
                "integration:read",
                "integration:update",
                "lead:create",
                "lead:delete",
                "lead:export",
                "lead:import",
                "lead:read",
                "lead:update",
                "leadList:create",
                "leadList:delete",
                "leadList:read",
                "leadList:update",
                "phoneVerification:manage_keys",
                "phoneVerification:read",
                "phoneVerification:verify",
                "replyLabel:create",
                "replyLabel:delete",
                "replyLabel:read",
                "replyLabel:update",
                "sequence:create",
                "sequence:delete",
                "sequence:read",
                "sequence:update",
                "sql:manage_dashboards",
                "sql:query",
                "support:create",
                "support:read",
                "support:update",
                "tag:create",
                "tag:delete",
                "tag:read",
                "tag:update",
                "task:create",
                "task:delete",
                "task:read",
                "task:update",
                "template:create",
                "template:delete",
                "template:read",
                "template:update",
                "unibox:archive",
                "unibox:label",
                "unibox:read",
                "unibox:reply",
                "webhook:create",
                "webhook:delete",
                "webhook:read",
                "webhook:update",
                "whiteLabel:read",
                "whiteLabel:update",
                "workflow:create",
                "workflow:delete",
                "workflow:publish",
                "workflow:read",
                "workflow:run",
                "workflow:update",
                "workspace:read",
                "workspace:update",
                "workspaceMember:invite",
                "workspaceMember:read",
                "workspaceMember:remove",
                "workspaceMember:update"
              ]
            },
            "minItems": 1,
            "maxItems": 100
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "context": {
            "$ref": "#/$defs/PermissionRequestContext"
          }
        },
        "required": [
          "workspaceId",
          "permissions"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|permissions|reason|context)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "permissions",
            "reason",
            "context"
          ]
        },
        "$defs": {
          "PermissionRequestContext": {
            "type": "object",
            "properties": {
              "attemptedOperation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptedTool": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "explanation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:attemptedOperation|attemptedTool|explanation)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attemptedOperation",
                "attemptedTool",
                "explanation"
              ]
            }
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "PermissionRequestId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "PermissionRequestStatus": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "denied",
              "canceled",
              "expired"
            ]
          },
          "PermissionRequestPerson": {
            "type": "object",
            "properties": {
              "userId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "userId",
              "name",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:userId|name|email)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "name",
                "email"
              ]
            }
          },
          "PermissionRequestContext": {
            "type": "object",
            "properties": {
              "attemptedOperation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptedTool": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "explanation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:attemptedOperation|attemptedTool|explanation)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attemptedOperation",
                "attemptedTool",
                "explanation"
              ]
            }
          },
          "PermissionRequestSource": {
            "type": "string",
            "enum": [
              "web",
              "api",
              "agent"
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "PermissionRequest": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/PermissionRequestId"
              },
              "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"
              },
              "status": {
                "$ref": "#/$defs/PermissionRequestStatus"
              },
              "requester": {
                "$ref": "#/$defs/PermissionRequestPerson"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "grantedPermissions": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "context": {
                "$ref": "#/$defs/PermissionRequestContext"
              },
              "source": {
                "$ref": "#/$defs/PermissionRequestSource"
              },
              "agentName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "decidedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decidedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestPerson"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decisionNote": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewable": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "requester",
              "permissions",
              "grantedPermissions",
              "reason",
              "context",
              "source",
              "agentName",
              "createdAt",
              "expiresAt",
              "decidedAt",
              "decidedBy",
              "decisionNote",
              "reviewable"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|requester|permissions|grantedPermissions|reason|context|source|agentName|createdAt|expiresAt|decidedAt|decidedBy|decisionNote|reviewable)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "requester",
                "permissions",
                "grantedPermissions",
                "reason",
                "context",
                "source",
                "agentName",
                "createdAt",
                "expiresAt",
                "decidedAt",
                "decidedBy",
                "decisionNote",
                "reviewable"
              ]
            }
          },
          "CreatePermissionRequestResult": {
            "type": "object",
            "properties": {
              "request": {
                "$ref": "#/$defs/PermissionRequest"
              },
              "created": {
                "type": "boolean"
              },
              "alreadyHeld": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              }
            },
            "required": [
              "request",
              "created",
              "alreadyHeld"
            ],
            "patternProperties": {
              "^(?!(?:request|created|alreadyHeld)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "request",
                "created",
                "alreadyHeld"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/CreatePermissionRequestResult"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/CreatePermissionRequestResult"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "request_permissions"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "permission_requests"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "permissionRequests.create"
      ],
      "invocations": [
        {
          "operationId": "permissionRequests.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/permission-requests",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "analytics:export",
                "analytics:read",
                "apiKey:create",
                "apiKey:delete",
                "apiKey:read",
                "apiKey:update",
                "blocklist:create",
                "blocklist:delete",
                "blocklist:read",
                "campaign:archive",
                "campaign:create",
                "campaign:delete",
                "campaign:launch",
                "campaign:pause",
                "campaign:read",
                "campaign:update",
                "dialer:assign_numbers",
                "dialer:assign_seats",
                "dialer:create",
                "dialer:delete",
                "dialer:dial",
                "dialer:manage_billing",
                "dialer:manage_number_health",
                "dialer:manage_numbers",
                "dialer:manage_numbers_self",
                "dialer:manage_voicemails",
                "dialer:read",
                "dialer:read_analytics",
                "dialer:read_numbers_all",
                "dialer:release_numbers",
                "dialer:update",
                "domain:manage_dns",
                "domain:purchase",
                "domain:read",
                "domain:transfer",
                "emailVerification:manage_credits",
                "emailVerification:manage_keys",
                "emailVerification:manage_sharing",
                "emailVerification:read",
                "emailVerification:verify",
                "inbox:connect",
                "inbox:create",
                "inbox:delete",
                "inbox:read",
                "inbox:update",
                "inbox:warmup_manage",
                "integration:create",
                "integration:delete",
                "integration:read",
                "integration:update",
                "lead:create",
                "lead:delete",
                "lead:export",
                "lead:import",
                "lead:read",
                "lead:update",
                "leadList:create",
                "leadList:delete",
                "leadList:read",
                "leadList:update",
                "phoneVerification:manage_keys",
                "phoneVerification:read",
                "phoneVerification:verify",
                "replyLabel:create",
                "replyLabel:delete",
                "replyLabel:read",
                "replyLabel:update",
                "sequence:create",
                "sequence:delete",
                "sequence:read",
                "sequence:update",
                "sql:manage_dashboards",
                "sql:query",
                "support:create",
                "support:read",
                "support:update",
                "tag:create",
                "tag:delete",
                "tag:read",
                "tag:update",
                "task:create",
                "task:delete",
                "task:read",
                "task:update",
                "template:create",
                "template:delete",
                "template:read",
                "template:update",
                "unibox:archive",
                "unibox:label",
                "unibox:read",
                "unibox:reply",
                "webhook:create",
                "webhook:delete",
                "webhook:read",
                "webhook:update",
                "whiteLabel:read",
                "whiteLabel:update",
                "workflow:create",
                "workflow:delete",
                "workflow:publish",
                "workflow:read",
                "workflow:run",
                "workflow:update",
                "workspace:read",
                "workspace:update",
                "workspaceMember:invite",
                "workspaceMember:read",
                "workspaceMember:remove",
                "workspaceMember:update"
              ]
            },
            "minItems": 1,
            "maxItems": 100
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "context": {
            "$ref": "#/$defs/PermissionRequestContext"
          }
        },
        "required": [
          "workspaceId",
          "permissions"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|permissions|reason|context)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "permissions",
            "reason",
            "context"
          ]
        },
        "$defs": {
          "PermissionRequestContext": {
            "type": "object",
            "properties": {
              "attemptedOperation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptedTool": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "explanation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:attemptedOperation|attemptedTool|explanation)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "attemptedOperation",
                "attemptedTool",
                "explanation"
              ]
            }
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "resolve_external_steps",
      "description": "Work the manual and external step queues: list failed or unknown external executions (HTTP POST / HeyReach) and resolve them by completing or retrying, and complete or fail manual-review step executions for a contact.\n\nUse to unblock contacts waiting on manual review or stuck external steps. Retry is the paid path and enforces the subscription gate.\n\nResolutions are tri-state (resolved / already_resolved / contact_inactive) — report the state instead of retrying an already-resolved execution.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "complete"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contactId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "campaignStepId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "pass": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "required": [
                  "contactId",
                  "campaignStepId",
                  "pass"
                ],
                "patternProperties": {
                  "^(?!(?:contactId|campaignStepId|pass)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactId",
                    "campaignStepId",
                    "pass"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "fail"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contactId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "campaignStepId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "pass": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "required": [
                  "contactId",
                  "campaignStepId",
                  "pass"
                ],
                "patternProperties": {
                  "^(?!(?:contactId|campaignStepId|pass)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactId",
                    "campaignStepId",
                    "pass"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "payload"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "external_executions"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "campaignStepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|campaignStepId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "campaignStepId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "resolve_external_execution"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "executionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "complete",
                      "retry"
                    ]
                  }
                },
                "required": [
                  "action"
                ],
                "patternProperties": {
                  "^(?!(?:action)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "action"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "executionId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|executionId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "executionId",
                "payload"
              ]
            }
          }
        ]
      },
      "outputSchema": {
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                        },
                        "campaignContactId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "campaignStepId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "pass": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "http_post_request",
                            "heyreach_campaign"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "ready",
                            "sending",
                            "succeeded",
                            "failed",
                            "unknown"
                          ]
                        },
                        "error": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "statusCode": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "attempt": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "contactName": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "campaignContactId",
                        "campaignStepId",
                        "pass",
                        "type",
                        "state",
                        "error",
                        "statusCode",
                        "createdAt",
                        "attempt",
                        "contactName"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|campaignContactId|campaignStepId|pass|type|state|error|statusCode|createdAt|attempt|contactName)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "campaignContactId",
                          "campaignStepId",
                          "pass",
                          "type",
                          "state",
                          "error",
                          "statusCode",
                          "createdAt",
                          "attempt",
                          "contactName"
                        ]
                      }
                    }
                  },
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "resolved"
                            ]
                          },
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "alreadyResolved": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          }
                        },
                        "required": [
                          "status",
                          "success",
                          "alreadyResolved"
                        ],
                        "patternProperties": {
                          "^(?!(?:status|success|alreadyResolved)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "status",
                            "success",
                            "alreadyResolved"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "already_resolved"
                            ]
                          },
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "alreadyResolved": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "status",
                          "success",
                          "alreadyResolved"
                        ],
                        "patternProperties": {
                          "^(?!(?:status|success|alreadyResolved)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "status",
                            "success",
                            "alreadyResolved"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "contact_inactive"
                            ]
                          },
                          "success": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          },
                          "alreadyResolved": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          }
                        },
                        "required": [
                          "status",
                          "success",
                          "alreadyResolved"
                        ],
                        "patternProperties": {
                          "^(?!(?:status|success|alreadyResolved)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "status",
                            "success",
                            "alreadyResolved"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "success"
                    ],
                    "patternProperties": {
                      "^(?!(?:success)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "success"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                            },
                            "campaignContactId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "campaignStepId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "pass": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "http_post_request",
                                "heyreach_campaign"
                              ]
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "ready",
                                "sending",
                                "succeeded",
                                "failed",
                                "unknown"
                              ]
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "statusCode": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "attempt": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "contactName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "campaignContactId",
                            "campaignStepId",
                            "pass",
                            "type",
                            "state",
                            "error",
                            "statusCode",
                            "createdAt",
                            "attempt",
                            "contactName"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|campaignContactId|campaignStepId|pass|type|state|error|statusCode|createdAt|attempt|contactName)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "campaignContactId",
                              "campaignStepId",
                              "pass",
                              "type",
                              "state",
                              "error",
                              "statusCode",
                              "createdAt",
                              "attempt",
                              "contactName"
                            ]
                          }
                        }
                      },
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": [
                                  "resolved"
                                ]
                              },
                              "success": {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              "alreadyResolved": {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              }
                            },
                            "required": [
                              "status",
                              "success",
                              "alreadyResolved"
                            ],
                            "patternProperties": {
                              "^(?!(?:status|success|alreadyResolved)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "status",
                                "success",
                                "alreadyResolved"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": [
                                  "already_resolved"
                                ]
                              },
                              "success": {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              "alreadyResolved": {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            },
                            "required": [
                              "status",
                              "success",
                              "alreadyResolved"
                            ],
                            "patternProperties": {
                              "^(?!(?:status|success|alreadyResolved)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "status",
                                "success",
                                "alreadyResolved"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": [
                                  "contact_inactive"
                                ]
                              },
                              "success": {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              },
                              "alreadyResolved": {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              }
                            },
                            "required": [
                              "status",
                              "success",
                              "alreadyResolved"
                            ],
                            "patternProperties": {
                              "^(?!(?:status|success|alreadyResolved)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "status",
                                "success",
                                "alreadyResolved"
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "success"
                        ],
                        "patternProperties": {
                          "^(?!(?:success)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "success"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "resolve_external_steps"
      },
      "scopes": [
        "sequence:read",
        "sequence:update",
        "campaign:update"
      ],
      "bundles": [
        "campaign_audience"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaignSteps.complete",
        "campaignSteps.fail",
        "campaignSteps.externalExecutions",
        "campaignSteps.resolveExternalExecution"
      ],
      "invocations": [
        {
          "operationId": "campaignSteps.complete",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/steps/complete",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.fail",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/steps/fail",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.externalExecutions",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/external-executions",
          "workspaceScoped": false
        },
        {
          "operationId": "campaignSteps.resolveExternalExecution",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/external-executions/:executionId/resolve",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "complete"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contactId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "campaignStepId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "pass": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "required": [
                  "contactId",
                  "campaignStepId",
                  "pass"
                ],
                "patternProperties": {
                  "^(?!(?:contactId|campaignStepId|pass)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactId",
                    "campaignStepId",
                    "pass"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "fail"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "contactId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "campaignStepId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "pass": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "required": [
                  "contactId",
                  "campaignStepId",
                  "pass"
                ],
                "patternProperties": {
                  "^(?!(?:contactId|campaignStepId|pass)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactId",
                    "campaignStepId",
                    "pass"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "external_executions"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "campaignStepId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|campaignStepId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "campaignStepId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "resolve_external_execution"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "executionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "complete",
                      "retry"
                    ]
                  }
                },
                "required": [
                  "action"
                ],
                "patternProperties": {
                  "^(?!(?:action)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "action"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "executionId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|executionId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "executionId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "feature": "agent-platform",
      "name": "resolve_workspace",
      "description": "Resolve an explicit workspace handle to its stable summary and available bundles.\n\nUse to turn a workspace id or slug into the handle every other capability call requires.\n\nThis only resolves a handle; it mutates nothing and stores no ambient workspace state.",
      "inputSchema": {
        "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"
          },
          "slug": {
            "$ref": "#/$defs/ShortText"
          }
        },
        "patternProperties": {
          "^(?!(?:workspaceId|slug)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "slug"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "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": {
            "$ref": "#/$defs/ShortText"
          },
          "slug": {
            "$ref": "#/$defs/ShortText"
          },
          "effectiveRoleLabel": {
            "$ref": "#/$defs/ShortText"
          },
          "capabilityBundles": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,63}$"
            }
          },
          "accessSource": {
            "type": "string",
            "enum": [
              "membership",
              "organization",
              "credential"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "effectiveRoleLabel",
          "capabilityBundles",
          "accessSource"
        ],
        "patternProperties": {
          "^(?!(?:id|name|slug|effectiveRoleLabel|capabilityBundles|accessSource)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "name",
            "slug",
            "effectiveRoleLabel",
            "capabilityBundles",
            "accessSource"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "resolve_workspace"
      },
      "scopes": [
        "agent:identity",
        "workspace:read"
      ],
      "bundles": [
        "platform"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "agent.resolveWorkspace"
      ],
      "invocations": [
        {
          "operationId": "agent.resolveWorkspace",
          "method": "POST",
          "path": "/agent/workspaces/resolve",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "slug": {
            "$ref": "#/$defs/ShortText"
          }
        },
        "patternProperties": {
          "^(?!(?:workspaceId|slug)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "slug"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "unibox",
      "name": "review_contact_suggestions",
      "description": "List contact suggestions from a conversation, save one to its lead, create a separate lead, or dismiss it. Select the action explicitly.\n\nUse when an automatic reply names another way to reach someone. Each suggestion states whether it can be saved and, if not, exactly why.\n\nSaving someone else's contact detail onto a lead is a judgement about whose it is, so blocked suggestions cannot be forced through. Confirming ownership answers uncertainty; it does not override a classification that says the detail belongs to a coworker or to the company.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadId"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "apply"
                    ]
                  }
                ]
              },
              "suggestionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "confirmOwnership": {
                "type": "boolean"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "suggestionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|suggestionId|confirmOwnership)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "suggestionId",
                "confirmOwnership"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create_lead"
                    ]
                  }
                ]
              },
              "suggestionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "firstName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "lastName": {
                "type": "string",
                "maxLength": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "suggestionId",
              "firstName"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|suggestionId|firstName|lastName)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "suggestionId",
                "firstName",
                "lastName"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "dismiss"
                    ]
                  }
                ]
              },
              "suggestionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "suggestionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|suggestionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "suggestionId"
              ]
            }
          }
        ]
      },
      "outputSchema": {
        "$defs": {
          "ContactSuggestionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "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$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "threadId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "leadId": {
                        "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"
                          }
                        ]
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/ContactSuggestionId"
                            },
                            "threadId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "email",
                                "phone"
                              ]
                            },
                            "value": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "normalizedValue": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "contactName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "firstName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastName": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "ownership": {
                              "type": "string",
                              "enum": [
                                "self",
                                "coworker",
                                "company",
                                "unknown"
                              ]
                            },
                            "contactType": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "groupKey": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "evidence": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reviewReason": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "relationship": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confidence": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "messageId": {
                              "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"
                                }
                              ]
                            },
                            "canApply": {
                              "type": "boolean"
                            },
                            "canCreateLead": {
                              "type": "boolean"
                            },
                            "blockReason": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "different_person",
                                    "company_contact",
                                    "ownership_review",
                                    "no_lead",
                                    "invalid_phone",
                                    "already_on_other_lead",
                                    "terminal_bad_contact"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            }
                          },
                          "required": [
                            "id",
                            "threadId",
                            "kind",
                            "value",
                            "normalizedValue",
                            "contactName",
                            "firstName",
                            "lastName",
                            "ownership",
                            "contactType",
                            "groupKey",
                            "evidence",
                            "reviewReason",
                            "relationship",
                            "confidence",
                            "messageId",
                            "canApply",
                            "canCreateLead",
                            "blockReason",
                            "createdAt"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|threadId|kind|value|normalizedValue|contactName|firstName|lastName|ownership|contactType|groupKey|evidence|reviewReason|relationship|confidence|messageId|canApply|canCreateLead|blockReason|createdAt)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "threadId",
                              "kind",
                              "value",
                              "normalizedValue",
                              "contactName",
                              "firstName",
                              "lastName",
                              "ownership",
                              "contactType",
                              "groupKey",
                              "evidence",
                              "reviewReason",
                              "relationship",
                              "confidence",
                              "messageId",
                              "canApply",
                              "canCreateLead",
                              "blockReason",
                              "createdAt"
                            ]
                          }
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "threadId",
                      "leadId",
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:threadId|leadId|items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "threadId",
                        "leadId",
                        "items"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "suggestionId": {
                        "$ref": "#/$defs/ContactSuggestionId"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "applied",
                          "dismissed"
                        ]
                      },
                      "leadId": {
                        "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"
                          }
                        ]
                      },
                      "leadCreated": {
                        "type": "boolean"
                      },
                      "kind": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "email",
                              "phone"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "appliedValue": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "appliedContactPointId": {
                        "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"
                          }
                        ]
                      },
                      "appliedCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "resolvedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "suggestionId",
                      "status",
                      "leadId",
                      "leadCreated",
                      "kind",
                      "appliedValue",
                      "appliedContactPointId",
                      "appliedCount",
                      "resolvedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:suggestionId|status|leadId|leadCreated|kind|appliedValue|appliedContactPointId|appliedCount|resolvedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "suggestionId",
                        "status",
                        "leadId",
                        "leadCreated",
                        "kind",
                        "appliedValue",
                        "appliedContactPointId",
                        "appliedCount",
                        "resolvedAt"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "threadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "leadId": {
                            "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"
                              }
                            ]
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/ContactSuggestionId"
                                },
                                "threadId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "email",
                                    "phone"
                                  ]
                                },
                                "value": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "normalizedValue": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "contactName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "firstName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastName": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ownership": {
                                  "type": "string",
                                  "enum": [
                                    "self",
                                    "coworker",
                                    "company",
                                    "unknown"
                                  ]
                                },
                                "contactType": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "groupKey": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "evidence": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "reviewReason": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "relationship": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "confidence": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 1
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "messageId": {
                                  "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"
                                    }
                                  ]
                                },
                                "canApply": {
                                  "type": "boolean"
                                },
                                "canCreateLead": {
                                  "type": "boolean"
                                },
                                "blockReason": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "different_person",
                                        "company_contact",
                                        "ownership_review",
                                        "no_lead",
                                        "invalid_phone",
                                        "already_on_other_lead",
                                        "terminal_bad_contact"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                }
                              },
                              "required": [
                                "id",
                                "threadId",
                                "kind",
                                "value",
                                "normalizedValue",
                                "contactName",
                                "firstName",
                                "lastName",
                                "ownership",
                                "contactType",
                                "groupKey",
                                "evidence",
                                "reviewReason",
                                "relationship",
                                "confidence",
                                "messageId",
                                "canApply",
                                "canCreateLead",
                                "blockReason",
                                "createdAt"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|threadId|kind|value|normalizedValue|contactName|firstName|lastName|ownership|contactType|groupKey|evidence|reviewReason|relationship|confidence|messageId|canApply|canCreateLead|blockReason|createdAt)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "threadId",
                                  "kind",
                                  "value",
                                  "normalizedValue",
                                  "contactName",
                                  "firstName",
                                  "lastName",
                                  "ownership",
                                  "contactType",
                                  "groupKey",
                                  "evidence",
                                  "reviewReason",
                                  "relationship",
                                  "confidence",
                                  "messageId",
                                  "canApply",
                                  "canCreateLead",
                                  "blockReason",
                                  "createdAt"
                                ]
                              }
                            },
                            "maxItems": 100
                          }
                        },
                        "required": [
                          "threadId",
                          "leadId",
                          "items"
                        ],
                        "patternProperties": {
                          "^(?!(?:threadId|leadId|items)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "threadId",
                            "leadId",
                            "items"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "suggestionId": {
                            "$ref": "#/$defs/ContactSuggestionId"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "applied",
                              "dismissed"
                            ]
                          },
                          "leadId": {
                            "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"
                              }
                            ]
                          },
                          "leadCreated": {
                            "type": "boolean"
                          },
                          "kind": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "phone"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "appliedValue": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "appliedContactPointId": {
                            "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"
                              }
                            ]
                          },
                          "appliedCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "resolvedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "suggestionId",
                          "status",
                          "leadId",
                          "leadCreated",
                          "kind",
                          "appliedValue",
                          "appliedContactPointId",
                          "appliedCount",
                          "resolvedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:suggestionId|status|leadId|leadCreated|kind|appliedValue|appliedContactPointId|appliedCount|resolvedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "suggestionId",
                            "status",
                            "leadId",
                            "leadCreated",
                            "kind",
                            "appliedValue",
                            "appliedContactPointId",
                            "appliedCount",
                            "resolvedAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "review_contact_suggestions"
      },
      "scopes": [
        "unibox:read",
        "lead:update",
        "lead:create"
      ],
      "bundles": [
        "unibox_lead_capture"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "uniboxThreads.listContactSuggestions",
        "uniboxSuggestions.apply",
        "uniboxSuggestions.createLead",
        "uniboxSuggestions.dismiss"
      ],
      "invocations": [
        {
          "operationId": "uniboxThreads.listContactSuggestions",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId/contact-suggestions",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxSuggestions.apply",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/contact-suggestions/:suggestionId/apply",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxSuggestions.createLead",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/contact-suggestions/:suggestionId/create-lead",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxSuggestions.dismiss",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/contact-suggestions/:suggestionId/dismiss",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "list"
                    ]
                  }
                ]
              },
              "threadId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadId"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "apply"
                    ]
                  }
                ]
              },
              "suggestionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "confirmOwnership": {
                "type": "boolean"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "suggestionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|suggestionId|confirmOwnership)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "suggestionId",
                "confirmOwnership"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "create_lead"
                    ]
                  }
                ]
              },
              "suggestionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "firstName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "lastName": {
                "type": "string",
                "maxLength": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "suggestionId",
              "firstName"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|suggestionId|firstName|lastName)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "suggestionId",
                "firstName",
                "lastName"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "dismiss"
                    ]
                  }
                ]
              },
              "suggestionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "suggestionId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|suggestionId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "suggestionId"
              ]
            }
          }
        ]
      }
    },
    {
      "feature": "workspace-settings",
      "name": "revoke_api_key",
      "description": "Revoke one of the caller's personal API keys: preview first, then commit with the returned confirmation token.\n\nUse when the person asks to shut off one of their keys.\n\nRevocation is immediate and cannot be undone; every integration using the key stops authenticating. To stop a member's key in one Organization only, use block_organization_api_key.\n\nUse the native preview first and pass its confirmation token unchanged to commit. A token does not bypass current permissions or Workspace checks.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "confirmationToken": {
            "$ref": "#/$defs/OpaqueId"
          }
        },
        "required": [
          "apiKeyId"
        ],
        "patternProperties": {
          "^(?!(?:apiKeyId|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "apiKeyId",
            "confirmationToken"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "Money": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BOV",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHE",
                  "CHF",
                  "CHW",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "COU",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MXV",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLE",
                  "SOS",
                  "SRD",
                  "SSP",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "USN",
                  "UYI",
                  "UYU",
                  "UYW",
                  "UZS",
                  "VED",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAD",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XBA",
                  "XBB",
                  "XBC",
                  "XBD",
                  "XCD",
                  "XCG",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "XSU",
                  "XTS",
                  "XUA",
                  "XXX",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWG"
                ]
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "patternProperties": {
              "^(?!(?:amountMinor|currency)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "amountMinor",
                "currency"
              ]
            }
          },
          "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$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "preview": {
                        "type": "object",
                        "properties": {
                          "summary": {
                            "$ref": "#/$defs/Description"
                          },
                          "affected": {
                            "type": "object",
                            "properties": {
                              "resourceCounts": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "$ref": "#/$defs/NonEmptyString"
                                    },
                                    "count": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "count"
                                  ],
                                  "patternProperties": {
                                    "^(?!(?:type|count)$)[\\s\\S]*$": false
                                  },
                                  "additionalProperties": true,
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "type",
                                      "count"
                                    ]
                                  }
                                },
                                "maxItems": 64
                              },
                              "resourceIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "maxItems": 256
                              }
                            },
                            "required": [
                              "resourceCounts",
                              "resourceIds"
                            ],
                            "patternProperties": {
                              "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "resourceCounts",
                                "resourceIds"
                              ]
                            }
                          },
                          "costEstimate": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "$ref": "#/$defs/Money"
                              },
                              "max": {
                                "$ref": "#/$defs/Money"
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "patternProperties": {
                              "^(?!(?:min|max)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "min",
                                "max"
                              ]
                            }
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "irreversibleFacts": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "maxItems": 32
                          },
                          "inputHash": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "previewVersion": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "expiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "summary",
                          "affected",
                          "warnings",
                          "irreversibleFacts",
                          "inputHash",
                          "previewVersion",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "affected",
                            "costEstimate",
                            "warnings",
                            "irreversibleFacts",
                            "inputHash",
                            "previewVersion",
                            "expiresAt"
                          ]
                        }
                      },
                      "confirmationToken": {
                        "$ref": "#/$defs/OpaqueId"
                      }
                    },
                    "required": [
                      "preview",
                      "confirmationToken"
                    ],
                    "patternProperties": {
                      "^(?!(?:preview|confirmationToken)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "preview",
                        "confirmationToken"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "revoked": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "revoked"
                    ],
                    "patternProperties": {
                      "^(?!(?:revoked)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "revoked"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "preview": {
                            "type": "object",
                            "properties": {
                              "summary": {
                                "$ref": "#/$defs/Description"
                              },
                              "affected": {
                                "type": "object",
                                "properties": {
                                  "resourceCounts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "$ref": "#/$defs/NonEmptyString"
                                        },
                                        "count": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "count"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:type|count)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "type",
                                          "count"
                                        ]
                                      }
                                    },
                                    "maxItems": 64
                                  },
                                  "resourceIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/$defs/OpaqueId"
                                    },
                                    "maxItems": 256
                                  }
                                },
                                "required": [
                                  "resourceCounts",
                                  "resourceIds"
                                ],
                                "patternProperties": {
                                  "^(?!(?:resourceCounts|resourceIds)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "resourceCounts",
                                    "resourceIds"
                                  ]
                                }
                              },
                              "costEstimate": {
                                "type": "object",
                                "properties": {
                                  "min": {
                                    "$ref": "#/$defs/Money"
                                  },
                                  "max": {
                                    "$ref": "#/$defs/Money"
                                  }
                                },
                                "required": [
                                  "min",
                                  "max"
                                ],
                                "patternProperties": {
                                  "^(?!(?:min|max)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "min",
                                    "max"
                                  ]
                                }
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "irreversibleFacts": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "maxItems": 32
                              },
                              "inputHash": {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              "previewVersion": {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              "expiresAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "summary",
                              "affected",
                              "warnings",
                              "irreversibleFacts",
                              "inputHash",
                              "previewVersion",
                              "expiresAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:summary|affected|costEstimate|warnings|irreversibleFacts|inputHash|previewVersion|expiresAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "summary",
                                "affected",
                                "costEstimate",
                                "warnings",
                                "irreversibleFacts",
                                "inputHash",
                                "previewVersion",
                                "expiresAt"
                              ]
                            }
                          },
                          "confirmationToken": {
                            "$ref": "#/$defs/OpaqueId"
                          }
                        },
                        "required": [
                          "preview",
                          "confirmationToken"
                        ],
                        "patternProperties": {
                          "^(?!(?:preview|confirmationToken)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "preview",
                            "confirmationToken"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "revoked": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "revoked"
                        ],
                        "patternProperties": {
                          "^(?!(?:revoked)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "revoked"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "preview_commit",
      "mapping": {
        "kind": "preview_commit",
        "previewOperationId": "personalApiKeys.previewRevoke",
        "commitOperationId": "personalApiKeys.revoke"
      },
      "scopes": [
        "apiKey:delete"
      ],
      "bundles": [
        "security_administration"
      ],
      "risk": "destructive",
      "idempotency": "required",
      "confirmation": "preview_token",
      "resultMode": "inline",
      "underlyingOperations": [
        "personalApiKeys.previewRevoke",
        "personalApiKeys.revoke"
      ],
      "invocations": [
        {
          "operationId": "personalApiKeys.previewRevoke",
          "method": "POST",
          "path": "/v1/me/api-keys/:apiKeyId/revocation-preview",
          "workspaceScoped": false
        },
        {
          "operationId": "personalApiKeys.revoke",
          "method": "DELETE",
          "path": "/v1/me/api-keys/:apiKeyId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "apiKeyId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "confirmationToken": {
            "$ref": "#/$defs/OpaqueId"
          }
        },
        "required": [
          "apiKeyId"
        ],
        "patternProperties": {
          "^(?!(?:apiKeyId|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "apiKeyId",
            "confirmationToken"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "revoke_integration_share",
      "description": "Stop sharing a connection: every target workspace's copy is detached and the source keeps working.\n\nUse on the source workspace to take a shared connection back from every sibling workspace.\n\nTo remove one workspace only, that workspace detaches. Disconnecting the source connection itself is the provider's own disconnect.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "provider": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "displayName": {
            "$ref": "#/$defs/ShortText"
          },
          "role": {
            "type": "string",
            "enum": [
              "source",
              "target"
            ]
          },
          "sourceWorkspaceId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceWorkspaceName": {
            "anyOf": [
              {
                "$ref": "#/$defs/ShortText"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceConnectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceConnected": {
            "type": "boolean"
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "revokedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "targets": {
            "type": "array",
            "items": {
              "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"
                },
                "workspaceName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "attaching",
                    "attached",
                    "detached",
                    "failed"
                  ]
                },
                "connectionId": {
                  "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"
                    }
                  ]
                },
                "failureReason": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "attachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "detachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "workspaceId",
                "workspaceName",
                "state",
                "connectionId",
                "failureReason",
                "attachedAt",
                "detachedAt"
              ],
              "patternProperties": {
                "^(?!(?:workspaceId|workspaceName|state|connectionId|failureReason|attachedAt|detachedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "workspaceId",
                  "workspaceName",
                  "state",
                  "connectionId",
                  "failureReason",
                  "attachedAt",
                  "detachedAt"
                ]
              }
            },
            "maxItems": 500
          }
        },
        "required": [
          "id",
          "adapter",
          "provider",
          "displayName",
          "role",
          "sourceWorkspaceId",
          "sourceWorkspaceName",
          "sourceConnectionId",
          "sourceConnected",
          "includeFutureWorkspaces",
          "createdAt",
          "revokedAt",
          "targets"
        ],
        "patternProperties": {
          "^(?!(?:id|adapter|provider|displayName|role|sourceWorkspaceId|sourceWorkspaceName|sourceConnectionId|sourceConnected|includeFutureWorkspaces|createdAt|revokedAt|targets)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "adapter",
            "provider",
            "displayName",
            "role",
            "sourceWorkspaceId",
            "sourceWorkspaceName",
            "sourceConnectionId",
            "sourceConnected",
            "includeFutureWorkspaces",
            "createdAt",
            "revokedAt",
            "targets"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          },
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "revoke_integration_share"
      },
      "scopes": [
        "integration:delete"
      ],
      "bundles": [
        "integration_sharing"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationShares.revoke"
      ],
      "invocations": [
        {
          "operationId": "integrationShares.revoke",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/integration-shares/:shareId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "revoke_support_access",
      "description": "End a Scheduler Zero support-access grant in a workspace immediately.\n\nUse when support no longer needs access, or the person asks to remove it. Revoking an already-ended grant is a no-op.\n\nIt does not remove workspace members or API keys; use their own tools.",
      "inputSchema": {
        "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"
          },
          "grantId": {
            "$ref": "#/$defs/SupportAccessGrantId"
          }
        },
        "required": [
          "workspaceId",
          "grantId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|grantId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "grantId"
          ]
        },
        "$defs": {
          "SupportAccessGrantId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "SupportAccessGrantId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "SupportAccessStatus": {
            "type": "string",
            "enum": [
              "active",
              "expired",
              "revoked"
            ]
          },
          "SupportAccessDurationHours": {
            "type": "number",
            "enum": [
              24,
              72,
              168
            ]
          },
          "SupportAccessPerson": {
            "type": "object",
            "properties": {
              "userId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "userId",
              "email"
            ],
            "patternProperties": {
              "^(?!(?:userId|email)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "email"
              ]
            }
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "SupportAccessGrant": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/SupportAccessGrantId"
              },
              "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"
              },
              "status": {
                "$ref": "#/$defs/SupportAccessStatus"
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "agent:capabilities",
                    "agent:identity",
                    "agent:operations:cancel",
                    "agent:operations:read",
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "audit:read",
                    "billing:manage",
                    "billing:read",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "org:delete",
                    "orgAnalytics:read",
                    "orgAnalytics:manage",
                    "org:read",
                    "org:update",
                    "orgApiKey:manage",
                    "orgMember:invite",
                    "orgMember:read",
                    "orgMember:remove",
                    "orgMember:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "platform:operate",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "role:manage",
                    "role:read",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "usage:read",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:create",
                    "workspace:delete",
                    "workspace:read",
                    "workspace:transfer",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "durationHours": {
                "$ref": "#/$defs/SupportAccessDurationHours"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "grantedBy": {
                "$ref": "#/$defs/SupportAccessPerson"
              },
              "createdAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "expiresAt": {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              "revokedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "revokedBy": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/SupportAccessPerson"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastUsedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/UtcDateTimeEncoded"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "workspaceId",
              "status",
              "permissions",
              "durationHours",
              "reason",
              "grantedBy",
              "createdAt",
              "expiresAt",
              "revokedAt",
              "revokedBy",
              "lastUsedAt"
            ],
            "patternProperties": {
              "^(?!(?:id|workspaceId|status|permissions|durationHours|reason|grantedBy|createdAt|expiresAt|revokedAt|revokedBy|lastUsedAt)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "id",
                "workspaceId",
                "status",
                "permissions",
                "durationHours",
                "reason",
                "grantedBy",
                "createdAt",
                "expiresAt",
                "revokedAt",
                "revokedBy",
                "lastUsedAt"
              ]
            }
          },
          "RevokeSupportAccessResult": {
            "type": "object",
            "properties": {
              "grant": {
                "$ref": "#/$defs/SupportAccessGrant"
              },
              "changed": {
                "type": "boolean"
              }
            },
            "required": [
              "grant",
              "changed"
            ],
            "patternProperties": {
              "^(?!(?:grant|changed)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "grant",
                "changed"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/RevokeSupportAccessResult"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/RevokeSupportAccessResult"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "revoke_support_access"
      },
      "scopes": [
        "workspaceMember:remove"
      ],
      "bundles": [
        "support_access"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "supportAccess.revoke"
      ],
      "invocations": [
        {
          "operationId": "supportAccess.revoke",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/support-access/:grantId/revoke",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "grantId": {
            "$ref": "#/$defs/SupportAccessGrantId"
          }
        },
        "required": [
          "workspaceId",
          "grantId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|grantId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "grantId"
          ]
        },
        "$defs": {
          "SupportAccessGrantId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "rotate_webhook_secret",
      "description": "Rotate an owned webhook signing secret and return its replacement once.\n\nRotate when the receiver is ready to install the replacement; requires explicit confirmation.\n\nNever place the returned secret in logs or saved conversation artifacts.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "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"
          }
        },
        "required": [
          "workspaceId",
          "webhookId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|webhookId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "webhookId"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "signingSecret": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "fingerprint": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "rotatedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "webhookId",
          "signingSecret",
          "fingerprint",
          "rotatedAt"
        ],
        "patternProperties": {
          "^(?!(?:webhookId|signingSecret|fingerprint|rotatedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "webhookId",
            "signingSecret",
            "fingerprint",
            "rotatedAt"
          ]
        },
        "$defs": {
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "rotate_webhook_secret"
      },
      "scopes": [
        "webhook:update"
      ],
      "bundles": [
        "security_administration"
      ],
      "risk": "security_admin",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "webhooks.rotateSecret"
      ],
      "invocations": [
        {
          "operationId": "webhooks.rotateSecret",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/webhooks/:webhookId/secret-rotation",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "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"
          }
        },
        "required": [
          "workspaceId",
          "webhookId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|webhookId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "webhookId"
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "run_getleads_request",
      "description": "Run a GetLeads request — enrichment, phone lookup, search, count, export, or profile management — in the background.\n\nCall with action=preview first to see the item count and credit estimate. After approval, call with action=execute, pass the exact confirmationToken returned by that preview when the request is billable. The server derives the replay key from the request. Poll the operation for per-item results.\n\nBillable requests spend the customer's GetLeads credits. An execution whose outcome is unknown is never retried automatically — check before re-running.\n\nUse the native preview first and pass its confirmation token unchanged to commit. A token does not bypass current permissions or Workspace checks.",
      "inputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "request": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "usage"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "patternProperties": {
                      "^[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "not": {}
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "enrich_email"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            }
                          },
                          "required": [
                            "email"
                          ],
                          "patternProperties": {
                            "^(?!(?:email)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "email"
                                ]
                              }
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "enrich_linkedin"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "linkedin_url": {
                              "$ref": "#/$defs/HttpUrl"
                            }
                          },
                          "required": [
                            "linkedin_url"
                          ],
                          "patternProperties": {
                            "^(?!(?:linkedin_url)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "linkedin_url"
                                ]
                              }
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 100
                      },
                      "limit_per_item": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|limit_per_item)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "limit_per_item"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "enrich_person"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "first_name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            },
                            "last_name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            },
                            "company_name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            },
                            "email_domain": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            }
                          },
                          "required": [
                            "first_name",
                            "last_name"
                          ],
                          "patternProperties": {
                            "^(?!(?:first_name|last_name|company_name|email_domain)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "first_name",
                              "last_name",
                              "company_name",
                              "email_domain"
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "lookup_phone"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "phone": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            }
                          },
                          "required": [
                            "phone"
                          ],
                          "patternProperties": {
                            "^(?!(?:phone)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "phone"
                                ]
                              }
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 100
                      },
                      "limit_per_item": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|limit_per_item)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "limit_per_item"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "search"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        },
                        "minProperties": 1,
                        "maxProperties": 100
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 5000
                      },
                      "offset": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 49999
                      },
                      "max_per_company": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      }
                    },
                    "required": [
                      "filters"
                    ],
                    "patternProperties": {
                      "^(?!(?:filters|limit|offset|max_per_company)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "filters",
                        "limit",
                        "offset",
                        "max_per_company"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "count"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        },
                        "minProperties": 1,
                        "maxProperties": 100
                      }
                    },
                    "required": [
                      "filters"
                    ],
                    "patternProperties": {
                      "^(?!(?:filters)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "filters"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "export"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        },
                        "minProperties": 1,
                        "maxProperties": 100
                      },
                      "max_rows": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50000
                      },
                      "max_per_company": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "confirmed": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "filters",
                      "max_rows",
                      "confirmed"
                    ],
                    "patternProperties": {
                      "^(?!(?:filters|max_rows|max_per_company|confirmed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "filters",
                        "max_rows",
                        "max_per_company",
                        "confirmed"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "export_status"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "export_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1000,
                        "pattern": "^[A-Za-z0-9_-]+$"
                      }
                    },
                    "required": [
                      "export_id"
                    ],
                    "patternProperties": {
                      "^(?!(?:export_id)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "export_id"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "profiles"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "patternProperties": {
                      "^[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "not": {}
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "profile_leads"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "cursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1000
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:limit|cursor)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "limit",
                        "cursor"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "set_profile_active"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "profile_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1000,
                        "pattern": "^[A-Za-z0-9_-]+$"
                      },
                      "active": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "profile_id",
                      "active"
                    ],
                    "patternProperties": {
                      "^(?!(?:profile_id|active)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "profile_id",
                        "active"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              }
            ]
          },
          "action": {
            "type": "string",
            "enum": [
              "preview",
              "execute"
            ]
          },
          "confirmationToken": {
            "$ref": "#/$defs/OpaqueId"
          }
        },
        "required": [
          "workspaceId",
          "connectionId",
          "request",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId|request|action|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId",
            "request",
            "action",
            "confirmationToken"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "operation": {
                        "type": "string",
                        "enum": [
                          "usage",
                          "enrich_email",
                          "enrich_linkedin",
                          "enrich_person",
                          "lookup_phone",
                          "search",
                          "count",
                          "export",
                          "export_status",
                          "profiles",
                          "profile_leads",
                          "set_profile_active"
                        ]
                      },
                      "itemCount": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "billable": {
                        "type": "boolean"
                      },
                      "estimatedCredits": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "confirmationToken": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "expiresAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "operation",
                      "itemCount",
                      "billable",
                      "estimatedCredits",
                      "confirmationToken",
                      "expiresAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:operation|itemCount|billable|estimatedCredits|confirmationToken|expiresAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "operation",
                        "itemCount",
                        "billable",
                        "estimatedCredits",
                        "confirmationToken",
                        "expiresAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "providerOperation": {
                        "type": "string",
                        "enum": [
                          "usage",
                          "enrich_email",
                          "enrich_linkedin",
                          "enrich_person",
                          "lookup_phone",
                          "search",
                          "count",
                          "export",
                          "export_status",
                          "profiles",
                          "profile_leads",
                          "set_profile_active"
                        ]
                      },
                      "itemCount": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "operation": {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    },
                    "required": [
                      "providerOperation",
                      "itemCount",
                      "operation"
                    ],
                    "patternProperties": {
                      "^(?!(?:providerOperation|itemCount|operation)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "providerOperation",
                        "itemCount",
                        "operation"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "operation": {
                            "type": "string",
                            "enum": [
                              "usage",
                              "enrich_email",
                              "enrich_linkedin",
                              "enrich_person",
                              "lookup_phone",
                              "search",
                              "count",
                              "export",
                              "export_status",
                              "profiles",
                              "profile_leads",
                              "set_profile_active"
                            ]
                          },
                          "itemCount": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "billable": {
                            "type": "boolean"
                          },
                          "estimatedCredits": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confirmationToken": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "operation",
                          "itemCount",
                          "billable",
                          "estimatedCredits",
                          "confirmationToken",
                          "expiresAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:operation|itemCount|billable|estimatedCredits|confirmationToken|expiresAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "operation",
                            "itemCount",
                            "billable",
                            "estimatedCredits",
                            "confirmationToken",
                            "expiresAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "providerOperation": {
                            "type": "string",
                            "enum": [
                              "usage",
                              "enrich_email",
                              "enrich_linkedin",
                              "enrich_person",
                              "lookup_phone",
                              "search",
                              "count",
                              "export",
                              "export_status",
                              "profiles",
                              "profile_leads",
                              "set_profile_active"
                            ]
                          },
                          "itemCount": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "operation": {
                            "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"
                              },
                              "statusUrl": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HttpUrl"
                                  },
                                  {
                                    "$ref": "#/$defs/HttpResourcePath"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "waiting_for_user",
                                  "succeeded",
                                  "partially_succeeded",
                                  "failed",
                                  "canceled",
                                  "canceling"
                                ]
                              },
                              "acceptedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "progress": {
                                "type": "object",
                                "properties": {
                                  "completed": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "message": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "required": [
                                  "completed"
                                ],
                                "patternProperties": {
                                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "completed",
                                    "total",
                                    "message"
                                  ]
                                }
                              },
                              "canCancel": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "statusUrl",
                              "state",
                              "acceptedAt",
                              "canCancel"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "statusUrl",
                                "state",
                                "acceptedAt",
                                "progress",
                                "canCancel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "providerOperation",
                          "itemCount",
                          "operation"
                        ],
                        "patternProperties": {
                          "^(?!(?:providerOperation|itemCount|operation)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "providerOperation",
                            "itemCount",
                            "operation"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "preview_commit",
      "mapping": {
        "kind": "preview_commit",
        "previewOperationId": "getleads.previewExecution",
        "commitOperationId": "getleads.execute"
      },
      "scopes": [
        "integration:read",
        "integration:update"
      ],
      "bundles": [
        "getleads"
      ],
      "risk": "costly",
      "idempotency": "required",
      "confirmation": "preview_token",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "getleads.previewExecution",
        "getleads.execute"
      ],
      "invocations": [
        {
          "operationId": "getleads.previewExecution",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/getleads/:connectionId/execute/preview",
          "workspaceScoped": false
        },
        {
          "operationId": "getleads.execute",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integrations/getleads/:connectionId/execute",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "request": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "usage"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "patternProperties": {
                      "^[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "not": {}
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "enrich_email"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            }
                          },
                          "required": [
                            "email"
                          ],
                          "patternProperties": {
                            "^(?!(?:email)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "email"
                                ]
                              }
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "enrich_linkedin"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "linkedin_url": {
                              "$ref": "#/$defs/HttpUrl"
                            }
                          },
                          "required": [
                            "linkedin_url"
                          ],
                          "patternProperties": {
                            "^(?!(?:linkedin_url)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "linkedin_url"
                                ]
                              }
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 100
                      },
                      "limit_per_item": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|limit_per_item)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "limit_per_item"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "enrich_person"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "first_name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            },
                            "last_name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            },
                            "company_name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            },
                            "email_domain": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            }
                          },
                          "required": [
                            "first_name",
                            "last_name"
                          ],
                          "patternProperties": {
                            "^(?!(?:first_name|last_name|company_name|email_domain)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "first_name",
                              "last_name",
                              "company_name",
                              "email_domain"
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "items"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "lookup_phone"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "phone": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            }
                          },
                          "required": [
                            "phone"
                          ],
                          "patternProperties": {
                            "^(?!(?:phone)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "phone"
                                ]
                              }
                            ]
                          }
                        },
                        "minItems": 1,
                        "maxItems": 100
                      },
                      "limit_per_item": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|limit_per_item)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "limit_per_item"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "search"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        },
                        "minProperties": 1,
                        "maxProperties": 100
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 5000
                      },
                      "offset": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 49999
                      },
                      "max_per_company": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      }
                    },
                    "required": [
                      "filters"
                    ],
                    "patternProperties": {
                      "^(?!(?:filters|limit|offset|max_per_company)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "filters",
                        "limit",
                        "offset",
                        "max_per_company"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "count"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        },
                        "minProperties": 1,
                        "maxProperties": 100
                      }
                    },
                    "required": [
                      "filters"
                    ],
                    "patternProperties": {
                      "^(?!(?:filters)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "filters"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "export"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/Union_"
                        },
                        "minProperties": 1,
                        "maxProperties": 100
                      },
                      "max_rows": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50000
                      },
                      "max_per_company": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "confirmed": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "filters",
                      "max_rows",
                      "confirmed"
                    ],
                    "patternProperties": {
                      "^(?!(?:filters|max_rows|max_per_company|confirmed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "filters",
                        "max_rows",
                        "max_per_company",
                        "confirmed"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "export_status"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "export_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1000,
                        "pattern": "^[A-Za-z0-9_-]+$"
                      }
                    },
                    "required": [
                      "export_id"
                    ],
                    "patternProperties": {
                      "^(?!(?:export_id)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "export_id"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "profiles"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "patternProperties": {
                      "^[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "not": {}
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "profile_leads"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "cursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1000
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:limit|cursor)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "limit",
                        "cursor"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "set_profile_active"
                    ]
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "profile_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1000,
                        "pattern": "^[A-Za-z0-9_-]+$"
                      },
                      "active": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "profile_id",
                      "active"
                    ],
                    "patternProperties": {
                      "^(?!(?:profile_id|active)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "profile_id",
                        "active"
                      ]
                    }
                  }
                },
                "required": [
                  "operation",
                  "input"
                ],
                "patternProperties": {
                  "^(?!(?:operation|input)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "operation",
                    "input"
                  ]
                }
              }
            ]
          },
          "action": {
            "type": "string",
            "enum": [
              "preview",
              "execute"
            ]
          },
          "confirmationToken": {
            "$ref": "#/$defs/OpaqueId"
          }
        },
        "required": [
          "workspaceId",
          "connectionId",
          "request",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|connectionId|request|action|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "connectionId",
            "request",
            "action",
            "confirmationToken"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "run_inbox_diagnostics",
      "description": "Dispatches DNS checks, attachment repair, blacklist checks, placement diagnostics, and bulk reconnect/recheck runs; returns native dispatch receipts or per-inbox bulk outcomes.\n\nWhen asked to check DNS, repair attachments, run blacklist or placement diagnostics, or reconnect errored inboxes.\n\nFor reads — use read_inbox_health.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "check_dns"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "repair_attachments"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500
                  }
                },
                "patternProperties": {
                  "^(?!(?:limit)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "limit"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "check_blacklists"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId"
              ]
            }
          },
          {
            "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": [
                  "start_placement"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "senderInboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "recipientInboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "subject": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[^\\r\\n]+$"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10000
                  }
                },
                "required": [
                  "senderInboxId",
                  "recipientInboxId",
                  "subject",
                  "body"
                ],
                "patternProperties": {
                  "^(?!(?:senderInboxId|recipientInboxId|subject|body)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "senderInboxId",
                    "recipientInboxId",
                    "subject",
                    "body"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "recheck_dns"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  }
                },
                "required": [
                  "inboxIds"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "inboxIds"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "reconnect_errors"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  }
                },
                "required": [
                  "inboxIds"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "inboxIds"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "payload"
              ]
            }
          }
        ]
      },
      "outputSchema": {
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "operation": {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    },
                    "required": [
                      "runId",
                      "operation"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|operation)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "operation"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "testId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "runId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "operation": {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    },
                    "required": [
                      "testId",
                      "runId",
                      "operation"
                    ],
                    "patternProperties": {
                      "^(?!(?:testId|runId|operation)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "testId",
                        "runId",
                        "operation"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "outcomes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "inboxId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "updated",
                                "skipped",
                                "failed"
                              ]
                            },
                            "reason": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "inboxId",
                            "status",
                            "reason"
                          ],
                          "patternProperties": {
                            "^(?!(?:inboxId|status|reason)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "inboxId",
                              "status",
                              "reason"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "outcomes"
                    ],
                    "patternProperties": {
                      "^(?!(?:outcomes)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "outcomes"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "operation": {
                            "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"
                              },
                              "statusUrl": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HttpUrl"
                                  },
                                  {
                                    "$ref": "#/$defs/HttpResourcePath"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "waiting_for_user",
                                  "succeeded",
                                  "partially_succeeded",
                                  "failed",
                                  "canceled",
                                  "canceling"
                                ]
                              },
                              "acceptedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "progress": {
                                "type": "object",
                                "properties": {
                                  "completed": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "message": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "required": [
                                  "completed"
                                ],
                                "patternProperties": {
                                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "completed",
                                    "total",
                                    "message"
                                  ]
                                }
                              },
                              "canCancel": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "statusUrl",
                              "state",
                              "acceptedAt",
                              "canCancel"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "statusUrl",
                                "state",
                                "acceptedAt",
                                "progress",
                                "canCancel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "runId",
                          "operation"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|operation)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "operation"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "testId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "runId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "operation": {
                            "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"
                              },
                              "statusUrl": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HttpUrl"
                                  },
                                  {
                                    "$ref": "#/$defs/HttpResourcePath"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "waiting_for_user",
                                  "succeeded",
                                  "partially_succeeded",
                                  "failed",
                                  "canceled",
                                  "canceling"
                                ]
                              },
                              "acceptedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "progress": {
                                "type": "object",
                                "properties": {
                                  "completed": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "message": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "required": [
                                  "completed"
                                ],
                                "patternProperties": {
                                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "completed",
                                    "total",
                                    "message"
                                  ]
                                }
                              },
                              "canCancel": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "statusUrl",
                              "state",
                              "acceptedAt",
                              "canCancel"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "statusUrl",
                                "state",
                                "acceptedAt",
                                "progress",
                                "canCancel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "testId",
                          "runId",
                          "operation"
                        ],
                        "patternProperties": {
                          "^(?!(?:testId|runId|operation)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "testId",
                            "runId",
                            "operation"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "outcomes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "inboxId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "updated",
                                    "skipped",
                                    "failed"
                                  ]
                                },
                                "reason": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "inboxId",
                                "status",
                                "reason"
                              ],
                              "patternProperties": {
                                "^(?!(?:inboxId|status|reason)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "inboxId",
                                  "status",
                                  "reason"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "outcomes"
                        ],
                        "patternProperties": {
                          "^(?!(?:outcomes)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "outcomes"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "run_inbox_diagnostics"
      },
      "scopes": [
        "inbox:update"
      ],
      "bundles": [
        "inbox_operations"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxes.checkDns",
        "inboxes.repairAttachments",
        "inboxDeliverability.checkBlacklists",
        "inboxPlacementDiagnostics.start",
        "inboxBulk.recheckDns",
        "inboxBulk.reconnectErrors"
      ],
      "invocations": [
        {
          "operationId": "inboxes.checkDns",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/check-dns",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxes.repairAttachments",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/repair-attachments",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxDeliverability.checkBlacklists",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/deliverability/check-blacklists",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxPlacementDiagnostics.start",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/placement-diagnostics/start",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxBulk.recheckDns",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/bulk/recheck-dns",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxBulk.reconnectErrors",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/bulk/reconnect-errors",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "check_dns"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "repair_attachments"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500
                  }
                },
                "patternProperties": {
                  "^(?!(?:limit)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "limit"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "check_blacklists"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "start_placement"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "senderInboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "recipientInboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "subject": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[^\\r\\n]+$"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10000
                  }
                },
                "required": [
                  "senderInboxId",
                  "recipientInboxId",
                  "subject",
                  "body"
                ],
                "patternProperties": {
                  "^(?!(?:senderInboxId|recipientInboxId|subject|body)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "senderInboxId",
                    "recipientInboxId",
                    "subject",
                    "body"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "recheck_dns"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  }
                },
                "required": [
                  "inboxIds"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "inboxIds"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "reconnect_errors"
                ]
              },
              "payload": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  }
                },
                "required": [
                  "inboxIds"
                ],
                "patternProperties": {
                  "^(?!(?:inboxIds)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "inboxIds"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "feature": "platform-operations",
      "name": "run_organization_sql",
      "description": "Run one read-only SELECT against the Organization's curated SQL views, or list those views, their columns, and the query limits.\n\nUse for ad-hoc reporting across campaigns, leads, inboxes, threads, and sends when no dedicated tool answers the question. Call without a query first to discover the views and columns, including current-address SEG detection/vendor/provenance on leads and frozen send-time attribution. Filter campaigns and SEG vendors with SQL; unknown detection is not confirmed no-SEG.\n\nNever for writes, catalog introspection, or children of another Organization: all selected children must independently grant sql:query and enable SQL; omitted workspaceIds selects all eligible children (maximum 100). Explicit IDs are all validated. Only a single SELECT over the curated views is accepted, results are capped at 10,000 rows and 8 MiB.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "workspaceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 100
          },
          "parameters": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 4096
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "maxItems": 32
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          }
        },
        "required": [
          "organizationId"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|workspaceIds|parameters|query)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "workspaceIds",
            "parameters",
            "query"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "SqlQueryResult": {
            "type": "object",
            "properties": {
              "columns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "type": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "type"
                  ],
                  "patternProperties": {
                    "^(?!(?:name|type)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "name",
                      "type"
                    ]
                  }
                }
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/$defs/Union_"
                  }
                },
                "maxItems": 10000
              },
              "rowCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "truncated": {
                "type": "boolean"
              },
              "executionMs": {
                "type": "number",
                "minimum": 0
              }
            },
            "required": [
              "columns",
              "rows",
              "rowCount",
              "truncated",
              "executionMs"
            ],
            "patternProperties": {
              "^(?!(?:columns|rows|rowCount|truncated|executionMs)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "columns",
                "rows",
                "rowCount",
                "truncated",
                "executionMs"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "tables": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "description": {
                              "type": "string",
                              "minLength": 0,
                              "maxLength": 4096
                            },
                            "columns": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "type": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 0,
                                    "maxLength": 4096
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "description"
                                ],
                                "patternProperties": {
                                  "^(?!(?:name|type|description)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "name",
                                    "type",
                                    "description"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "name",
                            "description",
                            "columns"
                          ],
                          "patternProperties": {
                            "^(?!(?:name|description|columns)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "name",
                              "description",
                              "columns"
                            ]
                          }
                        }
                      },
                      "limits": {
                        "type": "object",
                        "properties": {
                          "statementTimeoutSeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "tempFileLimitMb": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxRows": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rateLimitPerSecond": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxConcurrentQueries": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "statementTimeoutSeconds",
                          "tempFileLimitMb",
                          "maxRows",
                          "rateLimitPerSecond",
                          "maxConcurrentQueries"
                        ],
                        "patternProperties": {
                          "^(?!(?:statementTimeoutSeconds|tempFileLimitMb|maxRows|rateLimitPerSecond|maxConcurrentQueries)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "statementTimeoutSeconds",
                            "tempFileLimitMb",
                            "maxRows",
                            "rateLimitPerSecond",
                            "maxConcurrentQueries"
                          ]
                        }
                      },
                      "workspaces": {
                        "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"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "tables",
                      "limits",
                      "workspaces"
                    ],
                    "patternProperties": {
                      "^(?!(?:tables|limits|workspaces)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "tables",
                        "limits",
                        "workspaces"
                      ]
                    }
                  },
                  {
                    "$ref": "#/$defs/SqlQueryResult"
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "tables": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "description": {
                                  "type": "string",
                                  "minLength": 0,
                                  "maxLength": 4096
                                },
                                "columns": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "type": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "description": {
                                        "type": "string",
                                        "minLength": 0,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "description"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:name|type|description)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "name",
                                        "type",
                                        "description"
                                      ]
                                    }
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "description",
                                "columns"
                              ],
                              "patternProperties": {
                                "^(?!(?:name|description|columns)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "name",
                                  "description",
                                  "columns"
                                ]
                              }
                            }
                          },
                          "limits": {
                            "type": "object",
                            "properties": {
                              "statementTimeoutSeconds": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "tempFileLimitMb": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "maxRows": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "rateLimitPerSecond": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "maxConcurrentQueries": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "statementTimeoutSeconds",
                              "tempFileLimitMb",
                              "maxRows",
                              "rateLimitPerSecond",
                              "maxConcurrentQueries"
                            ],
                            "patternProperties": {
                              "^(?!(?:statementTimeoutSeconds|tempFileLimitMb|maxRows|rateLimitPerSecond|maxConcurrentQueries)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "statementTimeoutSeconds",
                                "tempFileLimitMb",
                                "maxRows",
                                "rateLimitPerSecond",
                                "maxConcurrentQueries"
                              ]
                            }
                          },
                          "workspaces": {
                            "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"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "tables",
                          "limits",
                          "workspaces"
                        ],
                        "patternProperties": {
                          "^(?!(?:tables|limits|workspaces)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "tables",
                            "limits",
                            "workspaces"
                          ]
                        }
                      },
                      {
                        "$ref": "#/$defs/SqlQueryResult"
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "run_organization_sql"
      },
      "scopes": [
        "orgAnalytics:read",
        "sql:query"
      ],
      "bundles": [
        "organization_sql"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationSql.query",
        "organizationSql.schema"
      ],
      "invocations": [
        {
          "operationId": "organizationSql.query",
          "method": "POST",
          "path": "/v1/organizations/:organizationId/sql/query",
          "workspaceScoped": false
        },
        {
          "operationId": "organizationSql.schema",
          "method": "GET",
          "path": "/v1/organizations/:organizationId/sql/schema",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "workspaceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 100
          },
          "parameters": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 4096
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "maxItems": 32
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          }
        },
        "required": [
          "organizationId"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|workspaceIds|parameters|query)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "workspaceIds",
            "parameters",
            "query"
          ]
        }
      }
    },
    {
      "feature": "workflows",
      "name": "run_workflows",
      "description": "Start and control individual runs: enrol a conversation into a published thread workflow, test-run a saved draft against a chosen subject, stop a run, and re-queue a paused one.\n\nUse to put a specific conversation through automation, to try a draft end to end before publishing it, or to halt or repair a run. Enrolling and test-running run in the background; poll the returned handle.\n\nA test run is a REAL run — its actions send, enrich, and charge exactly as a live run would. Enrolling a thread that already has an active automation is refused rather than doubled up. Resuming a paused provider lookup can spend another credit, so it needs an explicit cost acknowledgement, and only a paused run may resume at all.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "enroll_thread"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "enroll": {
                "type": "object",
                "properties": {
                  "threadId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "inboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "threadId"
                ],
                "patternProperties": {
                  "^(?!(?:threadId|inboxId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "threadId",
                    "inboxId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId",
              "enroll"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|workflowId|enroll)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "workflowId",
                "enroll"
              ]
            }
          },
          {
            "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": [
                  "test_run"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "test": {
                "type": "object",
                "properties": {
                  "leadId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "inboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "threadId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "patternProperties": {
                  "^(?!(?:leadId|inboxId|threadId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "leadId",
                    "inboxId",
                    "threadId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId",
              "test"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|workflowId|test)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "workflowId",
                "test"
              ]
            }
          },
          {
            "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": [
                  "stop"
                ]
              },
              "runId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "runId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|runId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "runId"
              ]
            }
          },
          {
            "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": [
                  "resume"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "runId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "resume": {
                "type": "object",
                "properties": {
                  "acknowledgeLookupCost": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:acknowledgeLookupCost)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "acknowledgeLookupCost"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId",
              "runId",
              "resume"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|workflowId|runId|resume)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "workflowId",
                "runId",
                "resume"
              ]
            }
          }
        ]
      },
      "outputSchema": {
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "workflowId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "replayed": {
                        "type": "boolean"
                      },
                      "operation": {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    },
                    "required": [
                      "runId",
                      "workflowId",
                      "replayed",
                      "operation"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|workflowId|replayed|operation)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "workflowId",
                        "replayed",
                        "operation"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "paused",
                          "completed",
                          "failed"
                        ]
                      },
                      "changed": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "runId",
                      "status",
                      "changed"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|status|changed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "status",
                        "changed"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "paused",
                          "completed",
                          "failed"
                        ]
                      },
                      "resumedNodeIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "maxItems": 200
                      }
                    },
                    "required": [
                      "runId",
                      "status",
                      "resumedNodeIds"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|status|resumedNodeIds)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "status",
                        "resumedNodeIds"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "workflowId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "replayed": {
                            "type": "boolean"
                          },
                          "operation": {
                            "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"
                              },
                              "statusUrl": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HttpUrl"
                                  },
                                  {
                                    "$ref": "#/$defs/HttpResourcePath"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "waiting_for_user",
                                  "succeeded",
                                  "partially_succeeded",
                                  "failed",
                                  "canceled",
                                  "canceling"
                                ]
                              },
                              "acceptedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "progress": {
                                "type": "object",
                                "properties": {
                                  "completed": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "message": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "required": [
                                  "completed"
                                ],
                                "patternProperties": {
                                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "completed",
                                    "total",
                                    "message"
                                  ]
                                }
                              },
                              "canCancel": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "statusUrl",
                              "state",
                              "acceptedAt",
                              "canCancel"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "statusUrl",
                                "state",
                                "acceptedAt",
                                "progress",
                                "canCancel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "runId",
                          "workflowId",
                          "replayed",
                          "operation"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|workflowId|replayed|operation)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "workflowId",
                            "replayed",
                            "operation"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "paused",
                              "completed",
                              "failed"
                            ]
                          },
                          "changed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "runId",
                          "status",
                          "changed"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|status|changed)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "status",
                            "changed"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "paused",
                              "completed",
                              "failed"
                            ]
                          },
                          "resumedNodeIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "maxItems": 200
                          }
                        },
                        "required": [
                          "runId",
                          "status",
                          "resumedNodeIds"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|status|resumedNodeIds)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "status",
                            "resumedNodeIds"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "workflows.enrollThread"
      },
      "scopes": [
        "workflow:run",
        "workflow:publish"
      ],
      "bundles": [
        "workflow_automation"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "workflows.enrollThread",
        "workflows.testRun",
        "workflows.stopThreadRun",
        "workflows.resumeRun"
      ],
      "invocations": [
        {
          "operationId": "workflows.enrollThread",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/enroll-thread",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.testRun",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/test",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.stopThreadRun",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/runs/:runId/stop",
          "workspaceScoped": false
        },
        {
          "operationId": "workflows.resumeRun",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/workflows/:workflowId/runs/:runId/resume",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "enroll_thread"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "enroll": {
                "type": "object",
                "properties": {
                  "threadId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "inboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "required": [
                  "threadId"
                ],
                "patternProperties": {
                  "^(?!(?:threadId|inboxId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "threadId",
                    "inboxId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId",
              "enroll"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId|enroll)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "workflowId",
                    "enroll"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "test_run"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "test": {
                "type": "object",
                "properties": {
                  "leadId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "inboxId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "threadId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  }
                },
                "patternProperties": {
                  "^(?!(?:leadId|inboxId|threadId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "leadId",
                    "inboxId",
                    "threadId"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId",
              "test"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId|test)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "workflowId",
                    "test"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "stop"
                ]
              },
              "runId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "runId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|runId)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "runId"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "resume"
                ]
              },
              "workflowId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "runId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "resume": {
                "type": "object",
                "properties": {
                  "acknowledgeLookupCost": {
                    "type": "boolean"
                  }
                },
                "patternProperties": {
                  "^(?!(?:acknowledgeLookupCost)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "acknowledgeLookupCost"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "workflowId",
              "runId",
              "resume"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|workflowId|runId|resume)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "workflowId",
                    "runId",
                    "resume"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "feature": "platform-operations",
      "name": "run_workspace_sql",
      "description": "Run one read-only SELECT against the workspace's curated SQL views, or list those views, their columns, and the query limits.\n\nUse for ad-hoc reporting across campaigns, leads, inboxes, threads, and sends when no dedicated tool answers the question. Call without a query first to discover the views and columns, including current-address SEG detection/vendor/provenance on leads and frozen send-time attribution. Filter campaigns and SEG vendors with SQL; unknown detection is not confirmed no-SEG.\n\nNever for writes, catalog introspection, or other workspaces: only a single SELECT over the curated views is accepted, results are capped at 10,000 rows and 8 MiB, and the workspace must have the SQL feature enabled.",
      "inputSchema": {
        "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"
          },
          "parameters": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 4096
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "maxItems": 32
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|parameters|query)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "parameters",
            "query"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "SqlSchemaResult": {
            "type": "object",
            "properties": {
              "tables": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "description": {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 4096
                    },
                    "columns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "type": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "description": {
                            "type": "string",
                            "minLength": 0,
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "name",
                          "type",
                          "description"
                        ],
                        "patternProperties": {
                          "^(?!(?:name|type|description)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "name",
                            "type",
                            "description"
                          ]
                        }
                      }
                    }
                  },
                  "required": [
                    "name",
                    "description",
                    "columns"
                  ],
                  "patternProperties": {
                    "^(?!(?:name|description|columns)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "name",
                      "description",
                      "columns"
                    ]
                  }
                }
              },
              "limits": {
                "type": "object",
                "properties": {
                  "statementTimeoutSeconds": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "tempFileLimitMb": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "maxRows": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "rateLimitPerSecond": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "maxConcurrentQueries": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "statementTimeoutSeconds",
                  "tempFileLimitMb",
                  "maxRows",
                  "rateLimitPerSecond",
                  "maxConcurrentQueries"
                ],
                "patternProperties": {
                  "^(?!(?:statementTimeoutSeconds|tempFileLimitMb|maxRows|rateLimitPerSecond|maxConcurrentQueries)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "statementTimeoutSeconds",
                    "tempFileLimitMb",
                    "maxRows",
                    "rateLimitPerSecond",
                    "maxConcurrentQueries"
                  ]
                }
              }
            },
            "required": [
              "tables",
              "limits"
            ],
            "patternProperties": {
              "^(?!(?:tables|limits)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "tables",
                "limits"
              ]
            }
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "SqlQueryResult": {
            "type": "object",
            "properties": {
              "columns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "type": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "type"
                  ],
                  "patternProperties": {
                    "^(?!(?:name|type)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "name",
                      "type"
                    ]
                  }
                }
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/$defs/Union_"
                  }
                },
                "maxItems": 10000
              },
              "rowCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "truncated": {
                "type": "boolean"
              },
              "executionMs": {
                "type": "number",
                "minimum": 0
              }
            },
            "required": [
              "columns",
              "rows",
              "rowCount",
              "truncated",
              "executionMs"
            ],
            "patternProperties": {
              "^(?!(?:columns|rows|rowCount|truncated|executionMs)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "columns",
                "rows",
                "rowCount",
                "truncated",
                "executionMs"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/$defs/SqlSchemaResult"
                  },
                  {
                    "$ref": "#/$defs/SqlQueryResult"
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/SqlSchemaResult"
                      },
                      {
                        "$ref": "#/$defs/SqlQueryResult"
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "run_workspace_sql"
      },
      "scopes": [
        "sql:query"
      ],
      "bundles": [
        "workspace_sql"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "sql.query",
        "sql.schema"
      ],
      "invocations": [
        {
          "operationId": "sql.query",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/sql/query",
          "workspaceScoped": false
        },
        {
          "operationId": "sql.schema",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/sql/schema",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "parameters": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 4096
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "maxItems": 32
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          }
        },
        "required": [
          "workspaceId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|parameters|query)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "parameters",
            "query"
          ]
        }
      }
    },
    {
      "feature": "platform-operations",
      "name": "save_dashboard",
      "description": "Create or replace a dashboard or saved query, including every widget, SQL, bound filter, chart mapping/format and grid layout.\n\nCreate with a fresh dashboardId UUID and expectedRevision 0. Update with the last read revision; retry a lost response with the exact same dashboard ID and payload. The server derives mutation identities. Duplicate using a fresh dashboardId. Set document.kind to query for saved queries. On conflict reload and reconcile. Discover SQL columns and validate chart queries with run_workspace_sql before saving.\n\nRequires the Workspace SQL feature and the stated permission. This does not grant access to another Workspace or execute stored SQL automatically.",
      "inputSchema": {
        "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"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "document": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "enum": [
                  1
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "dashboard",
                  "query"
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "description": {
                "type": "string",
                "maxLength": 2000
              },
              "filters": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "ip": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "from",
                  "to",
                  "domain",
                  "ip",
                  "source"
                ],
                "patternProperties": {
                  "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "from",
                    "to",
                    "domain",
                    "ip",
                    "source"
                  ]
                }
              },
              "widgets": {
                "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"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "chart",
                        "text"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 160
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "query": {
                      "type": "string",
                      "maxLength": 20000
                    },
                    "bindings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      },
                      "maxItems": 32
                    },
                    "chart": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "table",
                            "number",
                            "line",
                            "area",
                            "bar"
                          ]
                        },
                        "dimension": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "measures": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 8
                        },
                        "format": {
                          "type": "string",
                          "enum": [
                            "number",
                            "percent",
                            "currency",
                            "duration",
                            "bytes"
                          ]
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 6
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "required": [
                        "type",
                        "dimension",
                        "measures",
                        "format",
                        "decimals",
                        "label"
                      ],
                      "patternProperties": {
                        "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "type",
                          "dimension",
                          "measures",
                          "format",
                          "decimals",
                          "label"
                        ]
                      }
                    },
                    "layout": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 11
                        },
                        "y": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 500
                        },
                        "w": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        },
                        "h": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "w",
                        "h"
                      ],
                      "patternProperties": {
                        "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y",
                          "w",
                          "h"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "title",
                    "text",
                    "query",
                    "bindings",
                    "chart",
                    "layout"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "kind",
                      "title",
                      "text",
                      "query",
                      "bindings",
                      "chart",
                      "layout"
                    ]
                  }
                },
                "maxItems": 30
              }
            },
            "required": [
              "version",
              "kind",
              "name",
              "description",
              "filters",
              "widgets"
            ],
            "patternProperties": {
              "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "version",
                "kind",
                "name",
                "description",
                "filters",
                "widgets"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "dashboardId",
          "expectedRevision",
          "document"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|dashboardId|expectedRevision|document)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "dashboardId",
            "expectedRevision",
            "document"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "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"
          },
          "ownerId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "updatedAt": {
            "type": "string"
          },
          "document": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "enum": [
                  1
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "dashboard",
                  "query"
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "description": {
                "type": "string",
                "maxLength": 2000
              },
              "filters": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "ip": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "from",
                  "to",
                  "domain",
                  "ip",
                  "source"
                ],
                "patternProperties": {
                  "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "from",
                    "to",
                    "domain",
                    "ip",
                    "source"
                  ]
                }
              },
              "widgets": {
                "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"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "chart",
                        "text"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 160
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "query": {
                      "type": "string",
                      "maxLength": 20000
                    },
                    "bindings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      },
                      "maxItems": 32
                    },
                    "chart": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "table",
                            "number",
                            "line",
                            "area",
                            "bar"
                          ]
                        },
                        "dimension": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "measures": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 8
                        },
                        "format": {
                          "type": "string",
                          "enum": [
                            "number",
                            "percent",
                            "currency",
                            "duration",
                            "bytes"
                          ]
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 6
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "required": [
                        "type",
                        "dimension",
                        "measures",
                        "format",
                        "decimals",
                        "label"
                      ],
                      "patternProperties": {
                        "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "type",
                          "dimension",
                          "measures",
                          "format",
                          "decimals",
                          "label"
                        ]
                      }
                    },
                    "layout": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 11
                        },
                        "y": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 500
                        },
                        "w": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        },
                        "h": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "w",
                        "h"
                      ],
                      "patternProperties": {
                        "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y",
                          "w",
                          "h"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "title",
                    "text",
                    "query",
                    "bindings",
                    "chart",
                    "layout"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "kind",
                      "title",
                      "text",
                      "query",
                      "bindings",
                      "chart",
                      "layout"
                    ]
                  }
                },
                "maxItems": 30
              }
            },
            "required": [
              "version",
              "kind",
              "name",
              "description",
              "filters",
              "widgets"
            ],
            "patternProperties": {
              "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "version",
                "kind",
                "name",
                "description",
                "filters",
                "widgets"
              ]
            }
          }
        },
        "required": [
          "id",
          "workspaceId",
          "ownerId",
          "revision",
          "updatedAt",
          "document"
        ],
        "patternProperties": {
          "^(?!(?:id|workspaceId|ownerId|revision|updatedAt|document)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "workspaceId",
            "ownerId",
            "revision",
            "updatedAt",
            "document"
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "save_dashboard"
      },
      "scopes": [
        "sql:manage_dashboards"
      ],
      "bundles": [
        "workspace_sql"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "dashboards.save"
      ],
      "invocations": [
        {
          "operationId": "dashboards.save",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/dashboards/:dashboardId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "document": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "enum": [
                  1
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "dashboard",
                  "query"
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "description": {
                "type": "string",
                "maxLength": 2000
              },
              "filters": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "ip": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "from",
                  "to",
                  "domain",
                  "ip",
                  "source"
                ],
                "patternProperties": {
                  "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "from",
                    "to",
                    "domain",
                    "ip",
                    "source"
                  ]
                }
              },
              "widgets": {
                "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"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "chart",
                        "text"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 160
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "query": {
                      "type": "string",
                      "maxLength": 20000
                    },
                    "bindings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      },
                      "maxItems": 32
                    },
                    "chart": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "table",
                            "number",
                            "line",
                            "area",
                            "bar"
                          ]
                        },
                        "dimension": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "measures": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 8
                        },
                        "format": {
                          "type": "string",
                          "enum": [
                            "number",
                            "percent",
                            "currency",
                            "duration",
                            "bytes"
                          ]
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 6
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "required": [
                        "type",
                        "dimension",
                        "measures",
                        "format",
                        "decimals",
                        "label"
                      ],
                      "patternProperties": {
                        "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "type",
                          "dimension",
                          "measures",
                          "format",
                          "decimals",
                          "label"
                        ]
                      }
                    },
                    "layout": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 11
                        },
                        "y": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 500
                        },
                        "w": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        },
                        "h": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "w",
                        "h"
                      ],
                      "patternProperties": {
                        "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y",
                          "w",
                          "h"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "title",
                    "text",
                    "query",
                    "bindings",
                    "chart",
                    "layout"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "kind",
                      "title",
                      "text",
                      "query",
                      "bindings",
                      "chart",
                      "layout"
                    ]
                  }
                },
                "maxItems": 30
              }
            },
            "required": [
              "version",
              "kind",
              "name",
              "description",
              "filters",
              "widgets"
            ],
            "patternProperties": {
              "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "version",
                "kind",
                "name",
                "description",
                "filters",
                "widgets"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "dashboardId",
          "expectedRevision",
          "document"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|dashboardId|expectedRevision|document)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "dashboardId",
            "expectedRevision",
            "document"
          ]
        }
      }
    },
    {
      "feature": "platform-operations",
      "name": "save_organization_dashboard",
      "description": "Create or replace a dashboard or saved query, including every widget, SQL, bound filter, chart mapping/format and grid layout.\n\nCreate with a fresh dashboardId UUID and expectedRevision 0. Update with the last read revision; retry a lost response with the exact same dashboard ID and payload. The server derives mutation identities. Duplicate using a fresh dashboardId. Set document.kind to query for saved queries. On conflict reload and reconcile. Discover SQL columns and validate chart queries with run_organization_sql before saving.\n\nRequires the stated Organization analytics permission. Reading a document never executes its SQL; saving validates every selected child, and execution always requires live child SQL access and feature eligibility.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "document": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "enum": [
                  1
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "dashboard",
                  "query"
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "description": {
                "type": "string",
                "maxLength": 2000
              },
              "filters": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "ip": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "from",
                  "to",
                  "domain",
                  "ip",
                  "source"
                ],
                "patternProperties": {
                  "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "from",
                    "to",
                    "domain",
                    "ip",
                    "source"
                  ]
                }
              },
              "widgets": {
                "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"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "chart",
                        "text"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 160
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "query": {
                      "type": "string",
                      "maxLength": 20000
                    },
                    "bindings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      },
                      "maxItems": 32
                    },
                    "chart": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "table",
                            "number",
                            "line",
                            "area",
                            "bar"
                          ]
                        },
                        "dimension": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "measures": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 8
                        },
                        "format": {
                          "type": "string",
                          "enum": [
                            "number",
                            "percent",
                            "currency",
                            "duration",
                            "bytes"
                          ]
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 6
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "required": [
                        "type",
                        "dimension",
                        "measures",
                        "format",
                        "decimals",
                        "label"
                      ],
                      "patternProperties": {
                        "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "type",
                          "dimension",
                          "measures",
                          "format",
                          "decimals",
                          "label"
                        ]
                      }
                    },
                    "layout": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 11
                        },
                        "y": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 500
                        },
                        "w": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        },
                        "h": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "w",
                        "h"
                      ],
                      "patternProperties": {
                        "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y",
                          "w",
                          "h"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "title",
                    "text",
                    "query",
                    "bindings",
                    "chart",
                    "layout"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "kind",
                      "title",
                      "text",
                      "query",
                      "bindings",
                      "chart",
                      "layout"
                    ]
                  }
                },
                "maxItems": 30
              }
            },
            "required": [
              "version",
              "kind",
              "name",
              "description",
              "filters",
              "widgets"
            ],
            "patternProperties": {
              "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "version",
                "kind",
                "name",
                "description",
                "filters",
                "widgets"
              ]
            }
          },
          "workspaceIds": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "organizationId",
          "dashboardId",
          "expectedRevision",
          "document",
          "workspaceIds"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|dashboardId|expectedRevision|document|workspaceIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "dashboardId",
            "expectedRevision",
            "document",
            "workspaceIds"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "workspaceIds": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "ownerId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "document": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "enum": [
                  1
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "dashboard",
                  "query"
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "description": {
                "type": "string",
                "maxLength": 2000
              },
              "filters": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "ip": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "from",
                  "to",
                  "domain",
                  "ip",
                  "source"
                ],
                "patternProperties": {
                  "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "from",
                    "to",
                    "domain",
                    "ip",
                    "source"
                  ]
                }
              },
              "widgets": {
                "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"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "chart",
                        "text"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 160
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "query": {
                      "type": "string",
                      "maxLength": 20000
                    },
                    "bindings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      },
                      "maxItems": 32
                    },
                    "chart": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "table",
                            "number",
                            "line",
                            "area",
                            "bar"
                          ]
                        },
                        "dimension": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "measures": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 8
                        },
                        "format": {
                          "type": "string",
                          "enum": [
                            "number",
                            "percent",
                            "currency",
                            "duration",
                            "bytes"
                          ]
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 6
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "required": [
                        "type",
                        "dimension",
                        "measures",
                        "format",
                        "decimals",
                        "label"
                      ],
                      "patternProperties": {
                        "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "type",
                          "dimension",
                          "measures",
                          "format",
                          "decimals",
                          "label"
                        ]
                      }
                    },
                    "layout": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 11
                        },
                        "y": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 500
                        },
                        "w": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        },
                        "h": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "w",
                        "h"
                      ],
                      "patternProperties": {
                        "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y",
                          "w",
                          "h"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "title",
                    "text",
                    "query",
                    "bindings",
                    "chart",
                    "layout"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "kind",
                      "title",
                      "text",
                      "query",
                      "bindings",
                      "chart",
                      "layout"
                    ]
                  }
                },
                "maxItems": 30
              }
            },
            "required": [
              "version",
              "kind",
              "name",
              "description",
              "filters",
              "widgets"
            ],
            "patternProperties": {
              "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "version",
                "kind",
                "name",
                "description",
                "filters",
                "widgets"
              ]
            }
          }
        },
        "required": [
          "id",
          "organizationId",
          "workspaceIds",
          "ownerId",
          "revision",
          "updatedAt",
          "document"
        ],
        "patternProperties": {
          "^(?!(?:id|organizationId|workspaceIds|ownerId|revision|updatedAt|document)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "organizationId",
            "workspaceIds",
            "ownerId",
            "revision",
            "updatedAt",
            "document"
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "save_organization_dashboard"
      },
      "scopes": [
        "orgAnalytics:manage"
      ],
      "bundles": [
        "organization_sql"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "organizationDashboards.save"
      ],
      "invocations": [
        {
          "operationId": "organizationDashboards.save",
          "method": "PUT",
          "path": "/v1/organizations/:organizationId/dashboards/:dashboardId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "dashboardId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "document": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "enum": [
                  1
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "dashboard",
                  "query"
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "description": {
                "type": "string",
                "maxLength": 2000
              },
              "filters": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "ip": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "from",
                  "to",
                  "domain",
                  "ip",
                  "source"
                ],
                "patternProperties": {
                  "^(?!(?:from|to|domain|ip|source)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "from",
                    "to",
                    "domain",
                    "ip",
                    "source"
                  ]
                }
              },
              "widgets": {
                "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"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "chart",
                        "text"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 160
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "query": {
                      "type": "string",
                      "maxLength": 20000
                    },
                    "bindings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "from",
                          "to",
                          "domain",
                          "ip",
                          "source"
                        ]
                      },
                      "maxItems": 32
                    },
                    "chart": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "table",
                            "number",
                            "line",
                            "area",
                            "bar"
                          ]
                        },
                        "dimension": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "measures": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 8
                        },
                        "format": {
                          "type": "string",
                          "enum": [
                            "number",
                            "percent",
                            "currency",
                            "duration",
                            "bytes"
                          ]
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 6
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "required": [
                        "type",
                        "dimension",
                        "measures",
                        "format",
                        "decimals",
                        "label"
                      ],
                      "patternProperties": {
                        "^(?!(?:type|dimension|measures|format|decimals|label)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "type",
                          "dimension",
                          "measures",
                          "format",
                          "decimals",
                          "label"
                        ]
                      }
                    },
                    "layout": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 11
                        },
                        "y": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 500
                        },
                        "w": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        },
                        "h": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 12
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "w",
                        "h"
                      ],
                      "patternProperties": {
                        "^(?!(?:x|y|w|h)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y",
                          "w",
                          "h"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "title",
                    "text",
                    "query",
                    "bindings",
                    "chart",
                    "layout"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|kind|title|text|query|bindings|chart|layout)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "kind",
                      "title",
                      "text",
                      "query",
                      "bindings",
                      "chart",
                      "layout"
                    ]
                  }
                },
                "maxItems": 30
              }
            },
            "required": [
              "version",
              "kind",
              "name",
              "description",
              "filters",
              "widgets"
            ],
            "patternProperties": {
              "^(?!(?:version|kind|name|description|filters|widgets)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "version",
                "kind",
                "name",
                "description",
                "filters",
                "widgets"
              ]
            }
          },
          "workspaceIds": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "organizationId",
          "dashboardId",
          "expectedRevision",
          "document",
          "workspaceIds"
        ],
        "patternProperties": {
          "^(?!(?:organizationId|dashboardId|expectedRevision|document|workspaceIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "organizationId",
            "dashboardId",
            "expectedRevision",
            "document",
            "workspaceIds"
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "select_workspace",
      "description": "Persist or resolve the caller's selected workspace (a navigation preference, not a grant).\n\nUse to activate, restore, or resolve the workspace a member is working in.\n\nSelection never grants membership; it only persists the caller's own preference.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "activate"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "ensure"
                    ]
                  }
                ]
              }
            },
            "required": [
              "action"
            ],
            "patternProperties": {
              "^(?!(?:action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "restore"
                    ]
                  }
                ]
              },
              "expectedCurrentWorkspaceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "previousWorkspaceId": {
                "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"
                  }
                ]
              }
            },
            "required": [
              "action",
              "expectedCurrentWorkspaceId",
              "previousWorkspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|expectedCurrentWorkspaceId|previousWorkspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "expectedCurrentWorkspaceId",
                "previousWorkspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "resolveLegacyRoute"
                    ]
                  }
                ]
              },
              "path": {
                "$ref": "#/$defs/NonEmptyString"
              }
            },
            "required": [
              "action",
              "path"
            ],
            "patternProperties": {
              "^(?!(?:action|path)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "path"
              ]
            }
          }
        ],
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "SelectWorkspaceInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "activate"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "ensure"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "action"
                ],
                "patternProperties": {
                  "^(?!(?:action)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "action"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "restore"
                        ]
                      }
                    ]
                  },
                  "expectedCurrentWorkspaceId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "previousWorkspaceId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "action",
                  "expectedCurrentWorkspaceId",
                  "previousWorkspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|expectedCurrentWorkspaceId|previousWorkspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "expectedCurrentWorkspaceId",
                    "previousWorkspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "resolveLegacyRoute"
                        ]
                      }
                    ]
                  },
                  "path": {
                    "$ref": "#/$defs/NonEmptyString"
                  }
                },
                "required": [
                  "action",
                  "path"
                ],
                "patternProperties": {
                  "^(?!(?:action|path)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "path"
                  ]
                }
              }
            ]
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "SelectWorkspaceOutput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "previousOrganizationId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "organizationId",
                  "previousOrganizationId"
                ],
                "patternProperties": {
                  "^(?!(?:organizationId|previousOrganizationId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "organizationId",
                    "previousOrganizationId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "restored": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "restored"
                ],
                "patternProperties": {
                  "^(?!(?:restored)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "restored"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "slug": {
                    "$ref": "#/$defs/NonEmptyString"
                  }
                },
                "required": [
                  "slug"
                ],
                "patternProperties": {
                  "^(?!(?:slug)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "slug"
                      ]
                    }
                  ]
                }
              }
            ]
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/SelectWorkspaceOutput"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/SelectWorkspaceOutput"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "select_workspace"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "account_basics"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "me.activateWorkspace",
        "me.ensureActiveWorkspace",
        "me.restoreActiveWorkspace",
        "me.resolveLegacyRoute"
      ],
      "invocations": [
        {
          "operationId": "me.activateWorkspace",
          "method": "POST",
          "path": "/v1/me/active-workspace",
          "workspaceScoped": false
        },
        {
          "operationId": "me.ensureActiveWorkspace",
          "method": "POST",
          "path": "/v1/me/active-workspace/ensure",
          "workspaceScoped": false
        },
        {
          "operationId": "me.restoreActiveWorkspace",
          "method": "POST",
          "path": "/v1/me/active-workspace/restore",
          "workspaceScoped": false
        },
        {
          "operationId": "me.resolveLegacyRoute",
          "method": "POST",
          "path": "/v1/me/legacy-route",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "activate"
                    ]
                  }
                ]
              },
              "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"
              }
            },
            "required": [
              "action",
              "workspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "ensure"
                    ]
                  }
                ]
              }
            },
            "required": [
              "action"
            ],
            "patternProperties": {
              "^(?!(?:action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action"
                  ]
                }
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "restore"
                    ]
                  }
                ]
              },
              "expectedCurrentWorkspaceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "previousWorkspaceId": {
                "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"
                  }
                ]
              }
            },
            "required": [
              "action",
              "expectedCurrentWorkspaceId",
              "previousWorkspaceId"
            ],
            "patternProperties": {
              "^(?!(?:action|expectedCurrentWorkspaceId|previousWorkspaceId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "expectedCurrentWorkspaceId",
                "previousWorkspaceId"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "resolveLegacyRoute"
                    ]
                  }
                ]
              },
              "path": {
                "$ref": "#/$defs/NonEmptyString"
              }
            },
            "required": [
              "action",
              "path"
            ],
            "patternProperties": {
              "^(?!(?:action|path)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "path"
              ]
            }
          }
        ],
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "SelectWorkspaceInput": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "activate"
                        ]
                      }
                    ]
                  },
                  "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"
                  }
                },
                "required": [
                  "action",
                  "workspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "ensure"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "action"
                ],
                "patternProperties": {
                  "^(?!(?:action)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "action"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "restore"
                        ]
                      }
                    ]
                  },
                  "expectedCurrentWorkspaceId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "previousWorkspaceId": {
                    "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"
                      }
                    ]
                  }
                },
                "required": [
                  "action",
                  "expectedCurrentWorkspaceId",
                  "previousWorkspaceId"
                ],
                "patternProperties": {
                  "^(?!(?:action|expectedCurrentWorkspaceId|previousWorkspaceId)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "expectedCurrentWorkspaceId",
                    "previousWorkspaceId"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "resolveLegacyRoute"
                        ]
                      }
                    ]
                  },
                  "path": {
                    "$ref": "#/$defs/NonEmptyString"
                  }
                },
                "required": [
                  "action",
                  "path"
                ],
                "patternProperties": {
                  "^(?!(?:action|path)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "action",
                    "path"
                  ]
                }
              }
            ]
          }
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "send_test_email",
      "description": "Sends a real test email from an inbox, optionally through a campaign, or a warmup test send.\n\nWhen asked to send a test email to verify inbox configuration or warmup.\n\nFor campaign sends to leads — that is a campaign launch.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": [
                  "send"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "to": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "campaignId": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "subject": {
                    "type": "string",
                    "maxLength": 10000
                  },
                  "body": {
                    "type": "string",
                    "maxLength": 1000000
                  },
                  "bodyContentType": {
                    "type": "string",
                    "enum": [
                      "html",
                      "plain"
                    ]
                  }
                },
                "required": [
                  "to"
                ],
                "patternProperties": {
                  "^(?!(?:to|campaignId|subject|body|bodyContentType)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "to",
                    "campaignId",
                    "subject",
                    "body",
                    "bodyContentType"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "payload"
              ]
            }
          },
          {
            "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": [
                  "warmup_send"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "to": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "required": [
                  "to"
                ],
                "patternProperties": {
                  "^(?!(?:to)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "to"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "inboxId",
                "payload"
              ]
            }
          }
        ],
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "messageId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "threadId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "success",
                      "messageId",
                      "threadId"
                    ],
                    "patternProperties": {
                      "^(?!(?:success|messageId|threadId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "success",
                        "messageId",
                        "threadId"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "requestId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "operation": {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    },
                    "required": [
                      "runId",
                      "requestId",
                      "operation"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|requestId|operation)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "requestId",
                        "operation"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "messageId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "threadId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "success",
                          "messageId",
                          "threadId"
                        ],
                        "patternProperties": {
                          "^(?!(?:success|messageId|threadId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "success",
                            "messageId",
                            "threadId"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "requestId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "operation": {
                            "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"
                              },
                              "statusUrl": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HttpUrl"
                                  },
                                  {
                                    "$ref": "#/$defs/HttpResourcePath"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "waiting_for_user",
                                  "succeeded",
                                  "partially_succeeded",
                                  "failed",
                                  "canceled",
                                  "canceling"
                                ]
                              },
                              "acceptedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "progress": {
                                "type": "object",
                                "properties": {
                                  "completed": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "message": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "required": [
                                  "completed"
                                ],
                                "patternProperties": {
                                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "completed",
                                    "total",
                                    "message"
                                  ]
                                }
                              },
                              "canCancel": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "statusUrl",
                              "state",
                              "acceptedAt",
                              "canCancel"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "statusUrl",
                                "state",
                                "acceptedAt",
                                "progress",
                                "canCancel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "runId",
                          "requestId",
                          "operation"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|requestId|operation)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "requestId",
                            "operation"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "send_test_email"
      },
      "scopes": [
        "inbox:update",
        "inbox:warmup_manage"
      ],
      "bundles": [
        "inbox_operations"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxes.sendTestEmail",
        "inboxWarmupSettings.sendTest"
      ],
      "invocations": [
        {
          "operationId": "inboxes.sendTestEmail",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/test-email",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxWarmupSettings.sendTest",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/warmup-settings/test",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "send"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "to": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "campaignId": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "subject": {
                    "type": "string",
                    "maxLength": 10000
                  },
                  "body": {
                    "type": "string",
                    "maxLength": 1000000
                  },
                  "bodyContentType": {
                    "type": "string",
                    "enum": [
                      "html",
                      "plain"
                    ]
                  }
                },
                "required": [
                  "to"
                ],
                "patternProperties": {
                  "^(?!(?:to|campaignId|subject|body|bodyContentType)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "to",
                    "campaignId",
                    "subject",
                    "body",
                    "bodyContentType"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "warmup_send"
                ]
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "payload": {
                "type": "object",
                "properties": {
                  "to": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "required": [
                  "to"
                ],
                "patternProperties": {
                  "^(?!(?:to)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "to"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "inboxId",
              "payload"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|action|inboxId|payload)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "action",
                    "inboxId",
                    "payload"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    },
    {
      "feature": "unibox",
      "name": "send_unibox_reply",
      "description": "Commit a reply from a connected mailbox into an existing conversation using a preview confirmation token. The server derives the send replay key.\n\nUse only after previewing. The preview names the exact addresses the message will reach, and the token binds them — the commit cannot widen that set.\n\nThis is real mail to a real person and cannot be recalled. It is a paid action, it is refused on a frozen subscription, and the server deduplicates retries of the same confirmed send.\n\nUse the native preview first and pass its confirmation token unchanged to commit. A token does not bypass current permissions or Workspace checks.",
      "inputSchema": {
        "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"
          },
          "messageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "confirmationToken": {
            "$ref": "#/$defs/OpaqueId"
          }
        },
        "required": [
          "workspaceId",
          "messageId",
          "confirmationToken"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|messageId|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "messageId",
            "confirmationToken"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "threadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "messageId": {
            "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"
              }
            ]
          },
          "providerMessageId": {
            "$ref": "#/$defs/OpaqueId"
          },
          "providerThreadId": {
            "$ref": "#/$defs/OpaqueId"
          },
          "sentAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "threadId",
          "messageId",
          "providerMessageId",
          "providerThreadId",
          "sentAt"
        ],
        "patternProperties": {
          "^(?!(?:threadId|messageId|providerMessageId|providerThreadId|sentAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "threadId",
            "messageId",
            "providerMessageId",
            "providerThreadId",
            "sentAt"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "preview_commit",
      "mapping": {
        "kind": "preview_commit",
        "previewOperationId": "uniboxMessages.previewReply",
        "commitOperationId": "uniboxMessages.commitReply"
      },
      "scopes": [
        "unibox:reply"
      ],
      "bundles": [
        "unibox_reply_flow"
      ],
      "risk": "costly",
      "idempotency": "required",
      "confirmation": "preview_token",
      "resultMode": "inline",
      "underlyingOperations": [
        "uniboxMessages.previewReply",
        "uniboxMessages.commitReply"
      ],
      "invocations": [
        {
          "operationId": "uniboxMessages.previewReply",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId/reply-preview",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxMessages.commitReply",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId/reply",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "messageId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "confirmationToken": {
            "$ref": "#/$defs/OpaqueId"
          }
        },
        "required": [
          "workspaceId",
          "messageId",
          "confirmationToken"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|messageId|confirmationToken)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "messageId",
            "confirmationToken"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        }
      }
    },
    {
      "feature": "booking",
      "name": "set_booking_default_event_type",
      "description": "Choose which event type the availability helper draws free slots from.\n\nUse after list_booking_event_types, passing that call's `connectionId` so a replaced connection conflicts.\n\nDo not reuse a stale connection id from an earlier session; refresh the event types first.",
      "inputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          },
          "input": {
            "type": "object",
            "properties": {
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "eventTypeRef": {
                "$ref": "#/$defs/OpaqueId"
              },
              "eventTypeName": {
                "$ref": "#/$defs/ShortText"
              },
              "durationMinutes": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "schedulingUrl": {
                "$ref": "#/$defs/HttpUrl"
              }
            },
            "required": [
              "connectionId",
              "eventTypeRef",
              "eventTypeName"
            ],
            "patternProperties": {
              "^(?!(?:connectionId|eventTypeRef|eventTypeName|durationMinutes|schedulingUrl)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "connectionId",
                "eventTypeRef",
                "eventTypeName",
                "durationMinutes",
                "schedulingUrl"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "provider",
          "input"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider|input)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider",
            "input"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "eventTypeRef": {
            "$ref": "#/$defs/OpaqueId"
          },
          "eventTypeName": {
            "$ref": "#/$defs/ShortText"
          },
          "durationMinutes": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "schedulingUrl": {
            "anyOf": [
              {
                "$ref": "#/$defs/HttpUrl"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "provider",
          "connectionId",
          "eventTypeRef",
          "eventTypeName",
          "durationMinutes",
          "schedulingUrl",
          "updatedAt"
        ],
        "patternProperties": {
          "^(?!(?:provider|connectionId|eventTypeRef|eventTypeName|durationMinutes|schedulingUrl|updatedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "provider",
            "connectionId",
            "eventTypeRef",
            "eventTypeName",
            "durationMinutes",
            "schedulingUrl",
            "updatedAt"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "set_booking_default_event_type"
      },
      "scopes": [
        "integration:update"
      ],
      "bundles": [
        "booking"
      ],
      "risk": "write",
      "idempotency": "required",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "booking.eventTypes.setDefaultEventType"
      ],
      "invocations": [
        {
          "operationId": "booking.eventTypes.setDefaultEventType",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/booking/:provider/default-event-type",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          },
          "input": {
            "type": "object",
            "properties": {
              "connectionId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "eventTypeRef": {
                "$ref": "#/$defs/OpaqueId"
              },
              "eventTypeName": {
                "$ref": "#/$defs/ShortText"
              },
              "durationMinutes": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "schedulingUrl": {
                "$ref": "#/$defs/HttpUrl"
              }
            },
            "required": [
              "connectionId",
              "eventTypeRef",
              "eventTypeName"
            ],
            "patternProperties": {
              "^(?!(?:connectionId|eventTypeRef|eventTypeName|durationMinutes|schedulingUrl)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "connectionId",
                "eventTypeRef",
                "eventTypeName",
                "durationMinutes",
                "schedulingUrl"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "provider",
          "input"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider|input)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider",
            "input"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          }
        }
      }
    },
    {
      "feature": "commerce",
      "name": "set_domain_auto_renew",
      "description": "Turn Scheduler Zero's yearly renewal of a domain on or off.\n\nUse when a person asks to keep or let go of a domain at its next expiry; confirm first, because turning renewal on commits a future charge.\n\nTurning renewal off lets the domain lapse at expiry; it does not transfer or cancel anything now.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "domainId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "request": {
            "type": "object",
            "properties": {
              "autoRenew": {
                "type": "boolean"
              }
            },
            "required": [
              "autoRenew"
            ],
            "patternProperties": {
              "^(?!(?:autoRenew)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "autoRenew"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "domainId",
          "request"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|domainId|request)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "domainId",
            "request"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "autoRenew": {
            "type": "boolean"
          }
        },
        "required": [
          "autoRenew"
        ],
        "patternProperties": {
          "^(?!(?:autoRenew)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "autoRenew"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "set_domain_auto_renew"
      },
      "scopes": [
        "domain:purchase"
      ],
      "bundles": [
        "domain_manager"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "domains.setAutoRenew"
      ],
      "invocations": [
        {
          "operationId": "domains.setAutoRenew",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/:domainId/auto-renew",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "domainId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "request": {
            "type": "object",
            "properties": {
              "autoRenew": {
                "type": "boolean"
              }
            },
            "required": [
              "autoRenew"
            ],
            "patternProperties": {
              "^(?!(?:autoRenew)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "autoRenew"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "domainId",
          "request"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|domainId|request)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "domainId",
            "request"
          ]
        }
      }
    },
    {
      "feature": "workspace-settings",
      "name": "set_my_developer_mode",
      "description": "Set account-wide Developer mode to show or hide realtime connection diagnostics.\n\nUse your own human session, full-account personal API key or consented interactive MCP connection. The setting persists across devices and sign-ins.\n\nCannot target another user, use restricted keys or non-interactive agents, or enable/disable realtime transport.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "developerModeEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "developerModeEnabled"
        ],
        "patternProperties": {
          "^(?!(?:developerModeEnabled)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "developerModeEnabled"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "developerModeEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "developerModeEnabled"
        ],
        "patternProperties": {
          "^(?!(?:developerModeEnabled)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "developerModeEnabled"
              ]
            }
          ]
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "set_my_developer_mode"
      },
      "scopes": [
        "workspace:read"
      ],
      "bundles": [
        "account_preferences"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "developerMode.update"
      ],
      "invocations": [
        {
          "operationId": "developerMode.update",
          "method": "PATCH",
          "path": "/v1/me/developer-mode",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "developerModeEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "developerModeEnabled"
        ],
        "patternProperties": {
          "^(?!(?:developerModeEnabled)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "developerModeEnabled"
              ]
            }
          ]
        }
      }
    },
    {
      "feature": "identity-workspaces",
      "name": "set_permission_request_policy",
      "description": "Turn permission requests on or off for a workspace. Off stops new requests; pending ones stay reviewable.\n\nUse when a workspace admin asks to stop (or allow again) members requesting more permissions.\n\nIt does not change anyone's permissions or decide pending requests.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "requestsEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "requestsEnabled"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestsEnabled)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestsEnabled"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "PermissionRequestPolicy": {
            "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"
              },
              "requestsEnabled": {
                "type": "boolean"
              }
            },
            "required": [
              "workspaceId",
              "requestsEnabled"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|requestsEnabled)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "requestsEnabled"
              ]
            }
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/$defs/PermissionRequestPolicy"
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/$defs/PermissionRequestPolicy"
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "set_permission_request_policy"
      },
      "scopes": [
        "workspaceMember:update"
      ],
      "bundles": [
        "permission_requests"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "permissionRequests.updatePolicy"
      ],
      "invocations": [
        {
          "operationId": "permissionRequests.updatePolicy",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/permission-requests/policy",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "requestsEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "requestsEnabled"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|requestsEnabled)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "requestsEnabled"
          ]
        }
      }
    },
    {
      "feature": "dialer-sms",
      "name": "share_call_recordings",
      "description": "Publish a recorded call outside the workspace under a capability link, read whether one is already published, and revoke it.\n\nUse when a specific recorded conversation has to reach someone who cannot sign in — a coach, a customer, a reviewer — and the person asking has decided that is appropriate.\n\nA share link is a standing grant to listen to a real customer conversation, and revoking it cannot un-hear it. Masking the prospect's voice reduces casual recognition; it is not anonymization, and the transcript still carries every word. Never create one speculatively, never create one to work around a missing permission, and always confirm with a person first.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "callId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "read",
              "create",
              "revoke"
            ]
          },
          "create": {
            "type": "object",
            "properties": {
              "access": {
                "type": "string",
                "enum": [
                  "workspace",
                  "anyone_with_link"
                ]
              },
              "privacy": {
                "type": "string",
                "enum": [
                  "show_all",
                  "hide_lead",
                  "hide_rep",
                  "hide_both"
                ]
              },
              "audioPrivacy": {
                "type": "string",
                "enum": [
                  "original",
                  "mask_prospect"
                ]
              }
            },
            "required": [
              "access",
              "privacy",
              "audioPrivacy"
            ],
            "patternProperties": {
              "^(?!(?:access|privacy|audioPrivacy)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "access",
                "privacy",
                "audioPrivacy"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "callId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|callId|action|create)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "callId",
            "action",
            "create"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "RecordingShareToken": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{32}$"
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "share": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "token": {
                                "$ref": "#/$defs/RecordingShareToken"
                              },
                              "callId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "access": {
                                "type": "string",
                                "enum": [
                                  "workspace",
                                  "anyone_with_link"
                                ]
                              },
                              "privacy": {
                                "type": "string",
                                "enum": [
                                  "show_all",
                                  "hide_lead",
                                  "hide_rep",
                                  "hide_both"
                                ]
                              },
                              "audioPrivacy": {
                                "type": "string",
                                "enum": [
                                  "original",
                                  "mask_prospect"
                                ]
                              },
                              "audioStatus": {
                                "type": "string",
                                "enum": [
                                  "ready",
                                  "processing",
                                  "failed"
                                ]
                              }
                            },
                            "required": [
                              "token",
                              "callId",
                              "access",
                              "privacy",
                              "audioPrivacy",
                              "audioStatus"
                            ],
                            "patternProperties": {
                              "^(?!(?:token|callId|access|privacy|audioPrivacy|audioStatus)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "token",
                                "callId",
                                "access",
                                "privacy",
                                "audioPrivacy",
                                "audioStatus"
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "share"
                    ],
                    "patternProperties": {
                      "^(?!(?:share)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "share"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "token": {
                        "$ref": "#/$defs/RecordingShareToken"
                      },
                      "callId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "access": {
                        "type": "string",
                        "enum": [
                          "workspace",
                          "anyone_with_link"
                        ]
                      },
                      "privacy": {
                        "type": "string",
                        "enum": [
                          "show_all",
                          "hide_lead",
                          "hide_rep",
                          "hide_both"
                        ]
                      },
                      "audioPrivacy": {
                        "type": "string",
                        "enum": [
                          "original",
                          "mask_prospect"
                        ]
                      },
                      "audioStatus": {
                        "type": "string",
                        "enum": [
                          "ready",
                          "processing",
                          "failed"
                        ]
                      }
                    },
                    "required": [
                      "token",
                      "callId",
                      "access",
                      "privacy",
                      "audioPrivacy",
                      "audioStatus"
                    ],
                    "patternProperties": {
                      "^(?!(?:token|callId|access|privacy|audioPrivacy|audioStatus)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "token",
                        "callId",
                        "access",
                        "privacy",
                        "audioPrivacy",
                        "audioStatus"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "callId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "revokedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "callId",
                      "revokedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:callId|revokedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "callId",
                        "revokedAt"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "share": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "token": {
                                    "$ref": "#/$defs/RecordingShareToken"
                                  },
                                  "callId": {
                                    "type": "string",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                    "format": "uuid"
                                  },
                                  "access": {
                                    "type": "string",
                                    "enum": [
                                      "workspace",
                                      "anyone_with_link"
                                    ]
                                  },
                                  "privacy": {
                                    "type": "string",
                                    "enum": [
                                      "show_all",
                                      "hide_lead",
                                      "hide_rep",
                                      "hide_both"
                                    ]
                                  },
                                  "audioPrivacy": {
                                    "type": "string",
                                    "enum": [
                                      "original",
                                      "mask_prospect"
                                    ]
                                  },
                                  "audioStatus": {
                                    "type": "string",
                                    "enum": [
                                      "ready",
                                      "processing",
                                      "failed"
                                    ]
                                  }
                                },
                                "required": [
                                  "token",
                                  "callId",
                                  "access",
                                  "privacy",
                                  "audioPrivacy",
                                  "audioStatus"
                                ],
                                "patternProperties": {
                                  "^(?!(?:token|callId|access|privacy|audioPrivacy|audioStatus)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "token",
                                    "callId",
                                    "access",
                                    "privacy",
                                    "audioPrivacy",
                                    "audioStatus"
                                  ]
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "share"
                        ],
                        "patternProperties": {
                          "^(?!(?:share)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "share"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "token": {
                            "$ref": "#/$defs/RecordingShareToken"
                          },
                          "callId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "access": {
                            "type": "string",
                            "enum": [
                              "workspace",
                              "anyone_with_link"
                            ]
                          },
                          "privacy": {
                            "type": "string",
                            "enum": [
                              "show_all",
                              "hide_lead",
                              "hide_rep",
                              "hide_both"
                            ]
                          },
                          "audioPrivacy": {
                            "type": "string",
                            "enum": [
                              "original",
                              "mask_prospect"
                            ]
                          },
                          "audioStatus": {
                            "type": "string",
                            "enum": [
                              "ready",
                              "processing",
                              "failed"
                            ]
                          }
                        },
                        "required": [
                          "token",
                          "callId",
                          "access",
                          "privacy",
                          "audioPrivacy",
                          "audioStatus"
                        ],
                        "patternProperties": {
                          "^(?!(?:token|callId|access|privacy|audioPrivacy|audioStatus)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "token",
                            "callId",
                            "access",
                            "privacy",
                            "audioPrivacy",
                            "audioStatus"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "callId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "revokedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "callId",
                          "revokedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:callId|revokedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "callId",
                            "revokedAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "share_call_recordings"
      },
      "scopes": [
        "dialer:update"
      ],
      "bundles": [
        "dialer_media_operations"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "dialerRecordings.shareState",
        "dialerRecordings.createShare",
        "dialerRecordings.revokeShare"
      ],
      "invocations": [
        {
          "operationId": "dialerRecordings.shareState",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/dialer/calls/:callId/recording-share",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerRecordings.createShare",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/dialer/calls/:callId/recording-share",
          "workspaceScoped": false
        },
        {
          "operationId": "dialerRecordings.revokeShare",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/dialer/calls/:callId/recording-share",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "callId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "read",
              "create",
              "revoke"
            ]
          },
          "create": {
            "type": "object",
            "properties": {
              "access": {
                "type": "string",
                "enum": [
                  "workspace",
                  "anyone_with_link"
                ]
              },
              "privacy": {
                "type": "string",
                "enum": [
                  "show_all",
                  "hide_lead",
                  "hide_rep",
                  "hide_both"
                ]
              },
              "audioPrivacy": {
                "type": "string",
                "enum": [
                  "original",
                  "mask_prospect"
                ]
              }
            },
            "required": [
              "access",
              "privacy",
              "audioPrivacy"
            ],
            "patternProperties": {
              "^(?!(?:access|privacy|audioPrivacy)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "access",
                "privacy",
                "audioPrivacy"
              ]
            }
          }
        },
        "required": [
          "workspaceId",
          "callId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|callId|action|create)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "callId",
            "action",
            "create"
          ]
        }
      }
    },
    {
      "feature": "integrations",
      "name": "share_integration_connection",
      "description": "Share one of this workspace's connections with selected sibling workspaces; each gets a native connection using the same secret.\n\nUse when other workspaces in the organization should use this connection. Set includeFutureWorkspaces only when workspaces created later should join automatically.\n\nNever use to move a connection between organizations. Workspaces that already have their own connection of this provider are reported as failed, not overwritten.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "workspaceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 500
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "adapter",
          "connectionId",
          "workspaceIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|adapter|connectionId|workspaceIds|includeFutureWorkspaces)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "adapter",
            "connectionId",
            "workspaceIds",
            "includeFutureWorkspaces"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          }
        }
      },
      "outputSchema": {
        "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"
          },
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "provider": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "displayName": {
            "$ref": "#/$defs/ShortText"
          },
          "role": {
            "type": "string",
            "enum": [
              "source",
              "target"
            ]
          },
          "sourceWorkspaceId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceWorkspaceName": {
            "anyOf": [
              {
                "$ref": "#/$defs/ShortText"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceConnectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceConnected": {
            "type": "boolean"
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "revokedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "targets": {
            "type": "array",
            "items": {
              "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"
                },
                "workspaceName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "attaching",
                    "attached",
                    "detached",
                    "failed"
                  ]
                },
                "connectionId": {
                  "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"
                    }
                  ]
                },
                "failureReason": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "attachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "detachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "workspaceId",
                "workspaceName",
                "state",
                "connectionId",
                "failureReason",
                "attachedAt",
                "detachedAt"
              ],
              "patternProperties": {
                "^(?!(?:workspaceId|workspaceName|state|connectionId|failureReason|attachedAt|detachedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "workspaceId",
                  "workspaceName",
                  "state",
                  "connectionId",
                  "failureReason",
                  "attachedAt",
                  "detachedAt"
                ]
              }
            },
            "maxItems": 500
          }
        },
        "required": [
          "id",
          "adapter",
          "provider",
          "displayName",
          "role",
          "sourceWorkspaceId",
          "sourceWorkspaceName",
          "sourceConnectionId",
          "sourceConnected",
          "includeFutureWorkspaces",
          "createdAt",
          "revokedAt",
          "targets"
        ],
        "patternProperties": {
          "^(?!(?:id|adapter|provider|displayName|role|sourceWorkspaceId|sourceWorkspaceName|sourceConnectionId|sourceConnected|includeFutureWorkspaces|createdAt|revokedAt|targets)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "adapter",
            "provider",
            "displayName",
            "role",
            "sourceWorkspaceId",
            "sourceWorkspaceName",
            "sourceConnectionId",
            "sourceConnected",
            "includeFutureWorkspaces",
            "createdAt",
            "revokedAt",
            "targets"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          },
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "share_integration_connection"
      },
      "scopes": [
        "integration:create"
      ],
      "bundles": [
        "integration_sharing"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationShares.create"
      ],
      "invocations": [
        {
          "operationId": "integrationShares.create",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/integration-shares",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "workspaceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 500
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "adapter",
          "connectionId",
          "workspaceIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|adapter|connectionId|workspaceIds|includeFutureWorkspaces)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "adapter",
            "connectionId",
            "workspaceIds",
            "includeFutureWorkspaces"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          }
        }
      }
    },
    {
      "feature": "content-support",
      "name": "submit_support_feedback",
      "description": "Submit a bounded support case with optional finalized attachment references.\n\nUse for defects, questions, or requests needing human support follow-up.\n\nAttachments must be finalized download capabilities — the case stores references, never bytes.",
      "inputSchema": {
        "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"
          },
          "type": {
            "type": "string",
            "enum": [
              "feature_request",
              "bug",
              "feedback"
            ]
          },
          "summary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "details": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3500
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "downloadToken": {
                  "$ref": "#/$defs/SupportCapabilityToken"
                },
                "fileName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                }
              },
              "required": [
                "downloadToken",
                "fileName"
              ],
              "patternProperties": {
                "^(?!(?:downloadToken|fileName)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "downloadToken",
                  "fileName"
                ]
              }
            },
            "maxItems": 5
          }
        },
        "required": [
          "workspaceId",
          "type",
          "summary",
          "details"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|type|summary|details|attachments)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "type",
            "summary",
            "details",
            "attachments"
          ]
        },
        "$defs": {
          "SupportCapabilityToken": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ticketId": {
            "$ref": "#/$defs/OpaqueId"
          },
          "messageId": {
            "$ref": "#/$defs/OpaqueId"
          },
          "ticketStatus": {
            "type": "string",
            "enum": [
              "new",
              "open",
              "pending",
              "on_hold",
              "resolved"
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "ticketId",
          "messageId",
          "ticketStatus",
          "createdAt"
        ],
        "patternProperties": {
          "^(?!(?:ticketId|messageId|ticketStatus|createdAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "ticketId",
            "messageId",
            "ticketStatus",
            "createdAt"
          ]
        },
        "$defs": {
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "submit_support_feedback"
      },
      "scopes": [
        "support:create"
      ],
      "bundles": [
        "support"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "support.submitFeedback"
      ],
      "invocations": [
        {
          "operationId": "support.submitFeedback",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/support/feedback",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "type": {
            "type": "string",
            "enum": [
              "feature_request",
              "bug",
              "feedback"
            ]
          },
          "summary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "details": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3500
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "downloadToken": {
                  "$ref": "#/$defs/SupportCapabilityToken"
                },
                "fileName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                }
              },
              "required": [
                "downloadToken",
                "fileName"
              ],
              "patternProperties": {
                "^(?!(?:downloadToken|fileName)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "downloadToken",
                  "fileName"
                ]
              }
            },
            "maxItems": 5
          }
        },
        "required": [
          "workspaceId",
          "type",
          "summary",
          "details"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|type|summary|details|attachments)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "type",
            "summary",
            "details",
            "attachments"
          ]
        },
        "$defs": {
          "SupportCapabilityToken": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "sync_inboxes",
      "description": "Triggers mailbox sync for one, several, or all workspace inboxes.\n\nWhen asked to refresh or resync mailbox state.\n\nFor one-off DNS checks — use run_inbox_diagnostics.",
      "inputSchema": {
        "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"
          },
          "inboxIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          }
        },
        "required": [
          "workspaceId",
          "inboxIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxIds"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "triggered": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ShortText"
            }
          }
        },
        "required": [
          "triggered",
          "errors"
        ],
        "patternProperties": {
          "^(?!(?:triggered|errors)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "triggered",
            "errors"
          ]
        },
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "sync_inboxes"
      },
      "scopes": [
        "inbox:update"
      ],
      "bundles": [
        "inbox_operations"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxes.sync"
      ],
      "invocations": [
        {
          "operationId": "inboxes.sync",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/sync",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "inboxIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          }
        },
        "required": [
          "workspaceId",
          "inboxIds"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|inboxIds)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "inboxIds"
          ]
        }
      }
    },
    {
      "feature": "unibox",
      "name": "sync_unibox_history",
      "description": "Check sync status, pull older mail from the provider, inspect history import options, or copy one conversation's history into a second connected mailbox. Select the action explicitly.\n\nUse when a conversation the customer expects is genuinely not in the product yet. Check the status first: a mailbox that reports its history complete has nothing older to fetch.\n\nIt is not a search. Both actions are durable work returning an operation handle, and repeatedly asking at the same position dispatches nothing new.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "status"
                    ]
                  }
                ]
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "inboxIds": {
                "type": "string"
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|cursor|limit|inboxIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "cursor",
                "limit",
                "inboxIds"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "sync_older"
                    ]
                  }
                ]
              },
              "older": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  },
                  "batchSize": {
                    "type": "integer",
                    "minimum": 10,
                    "maximum": 100
                  }
                },
                "patternProperties": {
                  "^(?!(?:inboxIds|batchSize)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "batchSize"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "older"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|older)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "older"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "import_options"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "start_import"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "destinationInboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId",
              "destinationInboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId|destinationInboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId",
                "destinationInboxId"
              ]
            }
          }
        ],
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "statusUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "$ref": "#/$defs/HttpResourcePath"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "waiting_for_user",
                          "succeeded",
                          "partially_succeeded",
                          "failed",
                          "canceled",
                          "canceling"
                        ]
                      },
                      "acceptedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "progress": {
                        "type": "object",
                        "properties": {
                          "completed": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "message": {
                            "$ref": "#/$defs/NonEmptyString"
                          }
                        },
                        "required": [
                          "completed"
                        ],
                        "patternProperties": {
                          "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "completed",
                            "total",
                            "message"
                          ]
                        }
                      },
                      "canCancel": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "statusUrl",
                      "state",
                      "acceptedAt",
                      "canCancel"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "statusUrl",
                        "state",
                        "acceptedAt",
                        "progress",
                        "canCancel"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "statusUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "$ref": "#/$defs/HttpResourcePath"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "waiting_for_user",
                          "succeeded",
                          "partially_succeeded",
                          "failed",
                          "canceled",
                          "canceling"
                        ]
                      },
                      "acceptedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "progress": {
                        "type": "object",
                        "properties": {
                          "completed": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "message": {
                            "$ref": "#/$defs/NonEmptyString"
                          }
                        },
                        "required": [
                          "completed"
                        ],
                        "patternProperties": {
                          "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "completed",
                            "total",
                            "message"
                          ]
                        }
                      },
                      "canCancel": {
                        "type": "boolean"
                      },
                      "counts": {
                        "type": "object",
                        "properties": {
                          "imported": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "existing": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "remaining": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unresolved": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "separateThreads": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "imported",
                          "existing",
                          "remaining",
                          "unresolved",
                          "separateThreads",
                          "total"
                        ],
                        "patternProperties": {
                          "^(?!(?:imported|existing|remaining|unresolved|separateThreads|total)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "imported",
                            "existing",
                            "remaining",
                            "unresolved",
                            "separateThreads",
                            "total"
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "statusUrl",
                      "state",
                      "acceptedAt",
                      "canCancel"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel|counts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "statusUrl",
                        "state",
                        "acceptedAt",
                        "progress",
                        "canCancel",
                        "counts"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "inboxes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "inboxId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "historyComplete": {
                              "type": "boolean"
                            },
                            "syncedCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "estimatedTotal": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oldestSyncedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "newestSyncedAt": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "progress": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "inboxId",
                            "emailAddress",
                            "historyComplete",
                            "syncedCount",
                            "estimatedTotal",
                            "oldestSyncedAt",
                            "newestSyncedAt",
                            "progress"
                          ],
                          "patternProperties": {
                            "^(?!(?:inboxId|emailAddress|historyComplete|syncedCount|estimatedTotal|oldestSyncedAt|newestSyncedAt|progress)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "inboxId",
                              "emailAddress",
                              "historyComplete",
                              "syncedCount",
                              "estimatedTotal",
                              "oldestSyncedAt",
                              "newestSyncedAt",
                              "progress"
                            ]
                          }
                        },
                        "maxItems": 100
                      },
                      "nextCursor": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Cursor"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "allHistoryComplete": {
                        "type": "boolean"
                      },
                      "totalSynced": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "totalEstimated": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "canLoadMore": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "inboxes",
                      "allHistoryComplete",
                      "totalSynced",
                      "totalEstimated",
                      "canLoadMore"
                    ],
                    "patternProperties": {
                      "^(?!(?:inboxes|nextCursor|allHistoryComplete|totalSynced|totalEstimated|canLoadMore)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "inboxes",
                        "nextCursor",
                        "allHistoryComplete",
                        "totalSynced",
                        "totalEstimated",
                        "canLoadMore"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "eligible": {
                        "type": "boolean"
                      },
                      "reason": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "destinations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "inboxId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "emailAddress": {
                              "$ref": "#/$defs/EmailAddress"
                            }
                          },
                          "required": [
                            "inboxId",
                            "emailAddress"
                          ],
                          "patternProperties": {
                            "^(?!(?:inboxId|emailAddress)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "inboxId",
                              "emailAddress"
                            ]
                          }
                        },
                        "maxItems": 200
                      }
                    },
                    "required": [
                      "eligible",
                      "reason",
                      "destinations"
                    ],
                    "patternProperties": {
                      "^(?!(?:eligible|reason|destinations)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "eligible",
                        "reason",
                        "destinations"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          },
                          "counts": {
                            "type": "object",
                            "properties": {
                              "imported": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "existing": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "remaining": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unresolved": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "separateThreads": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "imported",
                              "existing",
                              "remaining",
                              "unresolved",
                              "separateThreads",
                              "total"
                            ],
                            "patternProperties": {
                              "^(?!(?:imported|existing|remaining|unresolved|separateThreads|total)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "imported",
                                "existing",
                                "remaining",
                                "unresolved",
                                "separateThreads",
                                "total"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel|counts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel",
                            "counts"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "inboxes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "inboxId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "historyComplete": {
                                  "type": "boolean"
                                },
                                "syncedCount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "estimatedTotal": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oldestSyncedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "newestSyncedAt": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/UtcDateTimeEncoded"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "progress": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "inboxId",
                                "emailAddress",
                                "historyComplete",
                                "syncedCount",
                                "estimatedTotal",
                                "oldestSyncedAt",
                                "newestSyncedAt",
                                "progress"
                              ],
                              "patternProperties": {
                                "^(?!(?:inboxId|emailAddress|historyComplete|syncedCount|estimatedTotal|oldestSyncedAt|newestSyncedAt|progress)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "inboxId",
                                  "emailAddress",
                                  "historyComplete",
                                  "syncedCount",
                                  "estimatedTotal",
                                  "oldestSyncedAt",
                                  "newestSyncedAt",
                                  "progress"
                                ]
                              }
                            },
                            "maxItems": 100
                          },
                          "nextCursor": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/Cursor"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "allHistoryComplete": {
                            "type": "boolean"
                          },
                          "totalSynced": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "totalEstimated": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "canLoadMore": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "inboxes",
                          "allHistoryComplete",
                          "totalSynced",
                          "totalEstimated",
                          "canLoadMore"
                        ],
                        "patternProperties": {
                          "^(?!(?:inboxes|nextCursor|allHistoryComplete|totalSynced|totalEstimated|canLoadMore)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "inboxes",
                            "nextCursor",
                            "allHistoryComplete",
                            "totalSynced",
                            "totalEstimated",
                            "canLoadMore"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "eligible": {
                            "type": "boolean"
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "destinations": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "inboxId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "emailAddress": {
                                  "$ref": "#/$defs/EmailAddress"
                                }
                              },
                              "required": [
                                "inboxId",
                                "emailAddress"
                              ],
                              "patternProperties": {
                                "^(?!(?:inboxId|emailAddress)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "inboxId",
                                  "emailAddress"
                                ]
                              }
                            },
                            "maxItems": 200
                          }
                        },
                        "required": [
                          "eligible",
                          "reason",
                          "destinations"
                        ],
                        "patternProperties": {
                          "^(?!(?:eligible|reason|destinations)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "eligible",
                            "reason",
                            "destinations"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "uniboxSync.syncOlder"
      },
      "scopes": [
        "unibox:read",
        "inbox:update"
      ],
      "bundles": [
        "unibox_admin"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "uniboxSync.getStatus",
        "uniboxSync.syncOlder",
        "uniboxSync.getHistoryImportOptions",
        "uniboxSync.startHistoryImport"
      ],
      "invocations": [
        {
          "operationId": "uniboxSync.getStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/sync/status",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxSync.syncOlder",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/sync/older",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxSync.getHistoryImportOptions",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId/history-import/options",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxSync.startHistoryImport",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId/history-import",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "status"
                    ]
                  }
                ]
              },
              "cursor": {
                "$ref": "#/$defs/Cursor"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "inboxIds": {
                "type": "string"
              }
            },
            "required": [
              "workspaceId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|cursor|limit|inboxIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "cursor",
                "limit",
                "inboxIds"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "sync_older"
                    ]
                  }
                ]
              },
              "older": {
                "type": "object",
                "properties": {
                  "inboxIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  },
                  "batchSize": {
                    "type": "integer",
                    "minimum": 10,
                    "maximum": 100
                  }
                },
                "patternProperties": {
                  "^(?!(?:inboxIds|batchSize)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "inboxIds",
                    "batchSize"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "older"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|older)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "older"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "import_options"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "start_import"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "destinationInboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId",
              "destinationInboxId"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId|destinationInboxId)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId",
                "destinationInboxId"
              ]
            }
          }
        ],
        "$defs": {
          "Cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        }
      }
    },
    {
      "feature": "booking",
      "name": "test_booking_connection",
      "description": "Probe a booking connection by fetching the connected account's profile.\n\nUse to distinguish a revoked grant from a provider outage before telling a human to reconnect.\n\nA `connected: false` result is a normal outcome, not an error to retry.",
      "inputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          }
        },
        "required": [
          "workspaceId",
          "provider"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "connected": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      },
                      "owner": {
                        "type": "object",
                        "properties": {
                          "email": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "email",
                          "name"
                        ],
                        "patternProperties": {
                          "^(?!(?:email|name)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "email",
                            "name"
                          ]
                        }
                      }
                    },
                    "required": [
                      "connected",
                      "owner"
                    ],
                    "patternProperties": {
                      "^(?!(?:connected|owner)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "connected",
                        "owner"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "connected": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "connected",
                      "error"
                    ],
                    "patternProperties": {
                      "^(?!(?:connected|error)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "connected",
                        "error"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "connected": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "owner": {
                            "type": "object",
                            "properties": {
                              "email": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/ShortText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "email",
                              "name"
                            ],
                            "patternProperties": {
                              "^(?!(?:email|name)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "email",
                                "name"
                              ]
                            }
                          }
                        },
                        "required": [
                          "connected",
                          "owner"
                        ],
                        "patternProperties": {
                          "^(?!(?:connected|owner)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "connected",
                            "owner"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "connected": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          },
                          "error": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "connected",
                          "error"
                        ],
                        "patternProperties": {
                          "^(?!(?:connected|error)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "connected",
                            "error"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "test_booking_connection"
      },
      "scopes": [
        "integration:read"
      ],
      "bundles": [
        "booking"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "booking.calendly.testConnection",
        "booking.calCom.testConnection"
      ],
      "invocations": [
        {
          "operationId": "booking.calendly.testConnection",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/booking/calendly/test",
          "workspaceScoped": false
        },
        {
          "operationId": "booking.calCom.testConnection",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/booking/cal-com/test",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "cal_com"
            ]
          }
        },
        "required": [
          "workspaceId",
          "provider"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|provider)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "provider"
          ]
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "test_campaign",
      "description": "Preview a draft's rendered subject and body against a real sending inbox, and send one real test email to a chosen address.\n\nRender first — it dispatches nothing — and only send a test once the rendered copy looks right.\n\nThe send is real outbound mail billed to the workspace and is refused on a frozen subscription; never use it to reach a prospect.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "render"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "test": {
                "type": "object",
                "properties": {
                  "subject": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "root": {
                            "$ref": "#/$defs/Union_"
                          }
                        },
                        "required": [
                          "root"
                        ],
                        "patternProperties": {
                          "^(?!(?:root)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "root"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "root": {
                            "$ref": "#/$defs/Union_"
                          }
                        },
                        "required": [
                          "root"
                        ],
                        "patternProperties": {
                          "^(?!(?:root)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "root"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyFormat": {
                    "type": "string",
                    "enum": [
                      "inherit",
                      "plain",
                      "html"
                    ]
                  },
                  "sampleRecipient": {
                    "type": "object",
                    "properties": {
                      "firstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "companyName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "emailAddress": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "timezone": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:firstName|lastName|companyName|emailAddress|timezone)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "firstName",
                        "lastName",
                        "companyName",
                        "emailAddress",
                        "timezone"
                      ]
                    }
                  },
                  "sampleSender": {
                    "type": "object",
                    "properties": {
                      "senderFirstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderLastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "emailAddress": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:senderFirstName|senderLastName|emailAddress)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "senderFirstName",
                        "senderLastName",
                        "emailAddress"
                      ]
                    }
                  },
                  "previewSeed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "subject",
                  "body",
                  "bodyFormat"
                ],
                "patternProperties": {
                  "^(?!(?:subject|body|bodyFormat|sampleRecipient|sampleSender|previewSeed)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "subject",
                    "body",
                    "bodyFormat",
                    "sampleRecipient",
                    "sampleSender",
                    "previewSeed"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "inboxId",
              "test"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|inboxId|test)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "inboxId",
                "test"
              ]
            }
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "send"
                ]
              },
              "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"
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "test": {
                "type": "object",
                "properties": {
                  "contactId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "testEmail": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "required": [
                  "contactId",
                  "testEmail"
                ],
                "patternProperties": {
                  "^(?!(?:contactId|testEmail)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactId",
                    "testEmail"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "test"
            ],
            "patternProperties": {
              "^(?!(?:action|workspaceId|campaignId|test)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "action",
                "workspaceId",
                "campaignId",
                "test"
              ]
            }
          }
        ],
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "RenderedDraftText": {
            "type": "string",
            "maxLength": 1000000
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "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
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "subject": {
                        "$ref": "#/$defs/RenderedDraftText"
                      },
                      "body": {
                        "$ref": "#/$defs/RenderedDraftText"
                      },
                      "bodyContentType": {
                        "type": "string",
                        "enum": [
                          "plain",
                          "html"
                        ]
                      },
                      "unresolvedExpressions": {
                        "type": "object",
                        "properties": {
                          "subject": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "body": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          }
                        },
                        "required": [
                          "subject",
                          "body"
                        ],
                        "patternProperties": {
                          "^(?!(?:subject|body)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "subject",
                            "body"
                          ]
                        }
                      },
                      "senderEmail": {
                        "$ref": "#/$defs/EmailAddress"
                      }
                    },
                    "required": [
                      "subject",
                      "body",
                      "bodyContentType",
                      "unresolvedExpressions",
                      "senderEmail"
                    ],
                    "patternProperties": {
                      "^(?!(?:subject|body|bodyContentType|unresolvedExpressions|senderEmail)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "subject",
                        "body",
                        "bodyContentType",
                        "unresolvedExpressions",
                        "senderEmail"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "statusUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          {
                            "$ref": "#/$defs/HttpResourcePath"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "waiting_for_user",
                          "succeeded",
                          "partially_succeeded",
                          "failed",
                          "canceled",
                          "canceling"
                        ]
                      },
                      "acceptedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "progress": {
                        "type": "object",
                        "properties": {
                          "completed": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "message": {
                            "$ref": "#/$defs/NonEmptyString"
                          }
                        },
                        "required": [
                          "completed"
                        ],
                        "patternProperties": {
                          "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "completed",
                            "total",
                            "message"
                          ]
                        }
                      },
                      "canCancel": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "statusUrl",
                      "state",
                      "acceptedAt",
                      "canCancel"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "statusUrl",
                        "state",
                        "acceptedAt",
                        "progress",
                        "canCancel"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "subject": {
                            "$ref": "#/$defs/RenderedDraftText"
                          },
                          "body": {
                            "$ref": "#/$defs/RenderedDraftText"
                          },
                          "bodyContentType": {
                            "type": "string",
                            "enum": [
                              "plain",
                              "html"
                            ]
                          },
                          "unresolvedExpressions": {
                            "type": "object",
                            "properties": {
                              "subject": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              },
                              "body": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/$defs/ShortText"
                                }
                              }
                            },
                            "required": [
                              "subject",
                              "body"
                            ],
                            "patternProperties": {
                              "^(?!(?:subject|body)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "subject",
                                "body"
                              ]
                            }
                          },
                          "senderEmail": {
                            "$ref": "#/$defs/EmailAddress"
                          }
                        },
                        "required": [
                          "subject",
                          "body",
                          "bodyContentType",
                          "unresolvedExpressions",
                          "senderEmail"
                        ],
                        "patternProperties": {
                          "^(?!(?:subject|body|bodyContentType|unresolvedExpressions|senderEmail)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "subject",
                            "body",
                            "bodyContentType",
                            "unresolvedExpressions",
                            "senderEmail"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "campaigns.testCampaign"
      },
      "scopes": [
        "campaign:read",
        "campaign:update",
        "inbox:read"
      ],
      "bundles": [
        "campaign_authoring"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "campaignInboxes.renderDraftTest",
        "campaigns.testCampaign"
      ],
      "invocations": [
        {
          "operationId": "campaignInboxes.renderDraftTest",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/inboxes/:inboxId/render-draft-test",
          "workspaceScoped": false
        },
        {
          "operationId": "campaigns.testCampaign",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/test",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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": [
                  "render"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "test": {
                "type": "object",
                "properties": {
                  "subject": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "root": {
                            "$ref": "#/$defs/Union_"
                          }
                        },
                        "required": [
                          "root"
                        ],
                        "patternProperties": {
                          "^(?!(?:root)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "root"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "root": {
                            "$ref": "#/$defs/Union_"
                          }
                        },
                        "required": [
                          "root"
                        ],
                        "patternProperties": {
                          "^(?!(?:root)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "root"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bodyFormat": {
                    "type": "string",
                    "enum": [
                      "inherit",
                      "plain",
                      "html"
                    ]
                  },
                  "sampleRecipient": {
                    "type": "object",
                    "properties": {
                      "firstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "companyName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "emailAddress": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "timezone": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/IanaTimeZone"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:firstName|lastName|companyName|emailAddress|timezone)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "firstName",
                        "lastName",
                        "companyName",
                        "emailAddress",
                        "timezone"
                      ]
                    }
                  },
                  "sampleSender": {
                    "type": "object",
                    "properties": {
                      "senderFirstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "senderLastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/Description"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "emailAddress": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "patternProperties": {
                      "^(?!(?:senderFirstName|senderLastName|emailAddress)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "senderFirstName",
                        "senderLastName",
                        "emailAddress"
                      ]
                    }
                  },
                  "previewSeed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "subject",
                  "body",
                  "bodyFormat"
                ],
                "patternProperties": {
                  "^(?!(?:subject|body|bodyFormat|sampleRecipient|sampleSender|previewSeed)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "subject",
                    "body",
                    "bodyFormat",
                    "sampleRecipient",
                    "sampleSender",
                    "previewSeed"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "inboxId",
              "test"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|inboxId|test)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "inboxId",
                    "test"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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": [
                  "send"
                ]
              },
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "test": {
                "type": "object",
                "properties": {
                  "contactId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "testEmail": {
                    "$ref": "#/$defs/EmailAddress"
                  }
                },
                "required": [
                  "contactId",
                  "testEmail"
                ],
                "patternProperties": {
                  "^(?!(?:contactId|testEmail)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "contactId",
                    "testEmail"
                  ]
                }
              }
            },
            "required": [
              "action",
              "workspaceId",
              "campaignId",
              "test"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|test)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "action",
                    "workspaceId",
                    "campaignId",
                    "test"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ],
        "$defs": {
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "IanaTimeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:UTC|[A-Za-z0-9_+-]+(?:\\/[A-Za-z0-9_+-]+)+)$"
          }
        }
      }
    },
    {
      "feature": "inboxes",
      "name": "test_inbox_connection",
      "description": "Live-probes a connected inbox and, when asked, forces a credential refresh through the pinned OAuth route.\n\nWhen asked whether an inbox still connects, or to heal a stale grant.\n\nFor pre-connect credential checks — those are human-only by design.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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"
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
                  "test"
                ]
              }
            },
            "required": [
              "workspaceId",
              "inboxId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|inboxId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "inboxId",
                "action"
              ]
            }
          },
          {
            "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"
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
                  "refresh"
                ]
              }
            },
            "required": [
              "workspaceId",
              "inboxId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|inboxId|action)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "inboxId",
                "action"
              ]
            }
          }
        ]
      },
      "outputSchema": {
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "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$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "ok": {
                        "type": "boolean"
                      },
                      "email": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "grantedScopes": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "tokenExpiresAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "error": {
                        "$ref": "#/$defs/ShortText"
                      }
                    },
                    "required": [
                      "ok"
                    ],
                    "patternProperties": {
                      "^(?!(?:ok|email|grantedScopes|tokenExpiresAt|error)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "ok",
                        "email",
                        "grantedScopes",
                        "tokenExpiresAt",
                        "error"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "connectionId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "inboxId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "google_workspace",
                          "microsoft_365",
                          "imap_smtp"
                        ]
                      },
                      "emailAddress": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "connected",
                          "needs_reauthorization",
                          "quarantined",
                          "alert",
                          "disconnected"
                        ]
                      },
                      "grantedScopes": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/ShortText"
                        }
                      },
                      "tokenExpiresAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "watchExpiresAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "credentialRefId": {
                        "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"
                          }
                        ]
                      },
                      "lastSyncAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "connectionId",
                      "inboxId",
                      "provider",
                      "emailAddress",
                      "state",
                      "tokenExpiresAt",
                      "watchExpiresAt",
                      "credentialRefId",
                      "lastSyncAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:connectionId|inboxId|provider|emailAddress|state|grantedScopes|tokenExpiresAt|watchExpiresAt|credentialRefId|lastSyncAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "connectionId",
                        "inboxId",
                        "provider",
                        "emailAddress",
                        "state",
                        "grantedScopes",
                        "tokenExpiresAt",
                        "watchExpiresAt",
                        "credentialRefId",
                        "lastSyncAt"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "ok": {
                            "type": "boolean"
                          },
                          "email": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "grantedScopes": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "tokenExpiresAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "error": {
                            "$ref": "#/$defs/ShortText"
                          }
                        },
                        "required": [
                          "ok"
                        ],
                        "patternProperties": {
                          "^(?!(?:ok|email|grantedScopes|tokenExpiresAt|error)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "ok",
                            "email",
                            "grantedScopes",
                            "tokenExpiresAt",
                            "error"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "connectionId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "inboxId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "google_workspace",
                              "microsoft_365",
                              "imap_smtp"
                            ]
                          },
                          "emailAddress": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "connected",
                              "needs_reauthorization",
                              "quarantined",
                              "alert",
                              "disconnected"
                            ]
                          },
                          "grantedScopes": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/ShortText"
                            }
                          },
                          "tokenExpiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "watchExpiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "credentialRefId": {
                            "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"
                              }
                            ]
                          },
                          "lastSyncAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "connectionId",
                          "inboxId",
                          "provider",
                          "emailAddress",
                          "state",
                          "tokenExpiresAt",
                          "watchExpiresAt",
                          "credentialRefId",
                          "lastSyncAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:connectionId|inboxId|provider|emailAddress|state|grantedScopes|tokenExpiresAt|watchExpiresAt|credentialRefId|lastSyncAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "connectionId",
                            "inboxId",
                            "provider",
                            "emailAddress",
                            "state",
                            "grantedScopes",
                            "tokenExpiresAt",
                            "watchExpiresAt",
                            "credentialRefId",
                            "lastSyncAt"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "test_inbox_connection"
      },
      "scopes": [
        "inbox:read",
        "inbox:update"
      ],
      "bundles": [
        "inbox_connection_management"
      ],
      "risk": "read",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "inboxConnections.test",
        "inboxConnections.refreshGrant"
      ],
      "invocations": [
        {
          "operationId": "inboxConnections.test",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/test",
          "workspaceScoped": false
        },
        {
          "operationId": "inboxConnections.refreshGrant",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/inboxes/:inboxId/refresh",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
          }
        },
        "required": [
          "workspaceId"
        ],
        "anyOf": [
          {
            "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"
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
                  "test"
                ]
              }
            },
            "required": [
              "workspaceId",
              "inboxId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|inboxId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "inboxId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          },
          {
            "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"
              },
              "inboxId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
                  "refresh"
                ]
              }
            },
            "required": [
              "workspaceId",
              "inboxId",
              "action"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:workspaceId|inboxId|action)$)[\\s\\S]*$)": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "inboxId",
                    "action"
                  ]
                },
                {
                  "enum": [
                    "workspaceId"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "feature": "commerce",
      "name": "transfer_domains",
      "description": "Push a domain to another account at the same registrar and check the progress of an outbound transfer.\n\nUse when a person explicitly wants a domain moved off Scheduler Zero to their own registrar account.\n\nA push is instant and the domain leaves the workspace; the EPP code for other registrars is only given to a person in the web app.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "domainId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "push"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "targetAccountName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "targetAccountName"
                    ],
                    "patternProperties": {
                      "^(?!(?:targetAccountName)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "targetAccountName"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "status"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "domainId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|domainId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "domainId",
            "action"
          ]
        }
      },
      "outputSchema": {
        "$defs": {
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "ok": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    },
                    "required": [
                      "ok"
                    ],
                    "patternProperties": {
                      "^(?!(?:ok)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ok"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "registering",
                          "renew_option_pending",
                          "active",
                          "renewal_due",
                          "transfer_pending",
                          "transferred_out",
                          "expired",
                          "failed"
                        ]
                      },
                      "rawStatus": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "changed": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "status",
                      "rawStatus",
                      "changed"
                    ],
                    "patternProperties": {
                      "^(?!(?:status|rawStatus|changed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "status",
                        "rawStatus",
                        "changed"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "ok": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        },
                        "required": [
                          "ok"
                        ],
                        "patternProperties": {
                          "^(?!(?:ok)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "ok"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "registering",
                              "renew_option_pending",
                              "active",
                              "renewal_due",
                              "transfer_pending",
                              "transferred_out",
                              "expired",
                              "failed"
                            ]
                          },
                          "rawStatus": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "status",
                          "rawStatus",
                          "changed"
                        ],
                        "patternProperties": {
                          "^(?!(?:status|rawStatus|changed)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "status",
                            "rawStatus",
                            "changed"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "transfer_domains"
      },
      "scopes": [
        "domain:transfer",
        "domain:read"
      ],
      "bundles": [
        "domain_manager"
      ],
      "risk": "destructive",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "domains.requestPush",
        "domains.transferStatus"
      ],
      "invocations": [
        {
          "operationId": "domains.requestPush",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/domains/:domainId/push",
          "workspaceScoped": false
        },
        {
          "operationId": "domains.transferStatus",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/domains/:domainId/transfer-status",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "domainId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "push"
                    ]
                  },
                  "request": {
                    "type": "object",
                    "properties": {
                      "targetAccountName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "targetAccountName"
                    ],
                    "patternProperties": {
                      "^(?!(?:targetAccountName)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "targetAccountName"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "kind",
                  "request"
                ],
                "patternProperties": {
                  "^(?!(?:kind|request)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "kind",
                    "request"
                  ]
                }
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "status"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "patternProperties": {
                  "^(?!(?:kind)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "kind"
                      ]
                    }
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "domainId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|domainId|action)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "domainId",
            "action"
          ]
        }
      }
    },
    {
      "feature": "unibox",
      "name": "triage_unibox_threads",
      "description": "Organize conversations: star, mark read, archive, unarchive, restore, relabel, and flag a message — singly or for up to a hundred threads at once. Select an explicit action and provide the identifiers and values it needs.\n\nUse to work an inbox down. Every action is reversible and setting a state a thread already holds succeeds, so a retry is safe.\n\nNone of this touches the mailbox at the provider: archiving here does not archive in Gmail. Applying a reply label can start label-driven automation, so it is not a neutral annotation.",
      "inputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "set_state"
                    ]
                  }
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              },
              "starred": {
                "type": "boolean"
              },
              "read": {
                "type": "boolean"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds|starred|read)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds",
                "starred",
                "read"
              ]
            }
          },
          {
            "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": [
                  "archive",
                  "unarchive",
                  "restore"
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "set_labels"
                    ]
                  }
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 1
              },
              "labels": {
                "type": "object",
                "properties": {
                  "add": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ThreadLabelId"
                    },
                    "maxItems": 20
                  },
                  "remove": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ThreadLabelId"
                    },
                    "maxItems": 20
                  }
                },
                "required": [
                  "add",
                  "remove"
                ],
                "patternProperties": {
                  "^(?!(?:add|remove)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "add",
                    "remove"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds",
              "labels"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds|labels)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds",
                "labels"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "flag_message"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "flagged": {
                "type": "boolean"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId",
              "flagged"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId|flagged)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId",
                "flagged"
              ]
            }
          }
        ],
        "$defs": {
          "ThreadLabelId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ThreadLabelId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "AttachmentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "inboxId": {
                        "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"
                          }
                        ]
                      },
                      "organizationId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "subject": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "snippet": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contact": {
                        "type": "object",
                        "properties": {
                          "emailAddress": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "name": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "leadId": {
                            "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"
                              }
                            ]
                          }
                        },
                        "required": [
                          "emailAddress",
                          "name",
                          "leadId"
                        ],
                        "patternProperties": {
                          "^(?!(?:emailAddress|name|leadId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "emailAddress",
                            "name",
                            "leadId"
                          ]
                        }
                      },
                      "providerThreadId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "google_workspace",
                          "microsoft_365",
                          "other"
                        ]
                      },
                      "lastMessageAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "messageCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "labels": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/ThreadLabelId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "hexColor": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "sentiment": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "positive",
                                    "negative",
                                    "neutral"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "custom",
                                "default"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "hexColor",
                            "sentiment",
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "hexColor",
                              "sentiment",
                              "type"
                            ]
                          }
                        }
                      },
                      "assignees": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "userId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "$ref": "#/$defs/EmailAddress"
                            },
                            "image": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/HttpUrl"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isFormerMember": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "userId",
                            "name",
                            "email",
                            "image",
                            "isFormerMember"
                          ],
                          "patternProperties": {
                            "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "userId",
                              "name",
                              "email",
                              "image",
                              "isFormerMember"
                            ]
                          }
                        }
                      },
                      "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"
                          }
                        ]
                      },
                      "campaignContactId": {
                        "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"
                          }
                        ]
                      },
                      "isRead": {
                        "type": "boolean"
                      },
                      "starredAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "archivedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deletedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "folders": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "inbox",
                            "sent",
                            "archived",
                            "starred",
                            "warmup",
                            "trash"
                          ]
                        }
                      },
                      "recentMessages": {
                        "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"
                            },
                            "providerInternalMessageId": {
                              "$ref": "#/$defs/OpaqueId"
                            },
                            "from": {
                              "$ref": "#/$defs/NonEmptyString"
                            },
                            "to": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "cc": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "snippet": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/LeadStoredText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "receivedAt": {
                              "$ref": "#/$defs/UtcDateTimeEncoded"
                            },
                            "isRead": {
                              "type": "boolean"
                            },
                            "isFromInboxSender": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "providerInternalMessageId",
                            "from",
                            "to",
                            "cc",
                            "subject",
                            "snippet",
                            "receivedAt",
                            "isRead",
                            "isFromInboxSender"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|providerInternalMessageId|from|to|cc|subject|snippet|receivedAt|isRead|isFromInboxSender)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "providerInternalMessageId",
                              "from",
                              "to",
                              "cc",
                              "subject",
                              "snippet",
                              "receivedAt",
                              "isRead",
                              "isFromInboxSender"
                            ]
                          }
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "id",
                      "inboxId",
                      "organizationId",
                      "subject",
                      "snippet",
                      "contact",
                      "providerThreadId",
                      "provider",
                      "lastMessageAt",
                      "messageCount",
                      "labels",
                      "assignees",
                      "campaignId",
                      "campaignContactId",
                      "isRead",
                      "starredAt",
                      "archivedAt",
                      "deletedAt",
                      "folders"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|inboxId|organizationId|subject|snippet|contact|providerThreadId|provider|lastMessageAt|messageCount|labels|assignees|campaignId|campaignContactId|isRead|starredAt|archivedAt|deletedAt|folders|recentMessages)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "inboxId",
                        "organizationId",
                        "subject",
                        "snippet",
                        "contact",
                        "providerThreadId",
                        "provider",
                        "lastMessageAt",
                        "messageCount",
                        "labels",
                        "assignees",
                        "campaignId",
                        "campaignContactId",
                        "isRead",
                        "starredAt",
                        "archivedAt",
                        "deletedAt",
                        "folders",
                        "recentMessages"
                      ]
                    }
                  },
                  {
                    "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"
                      },
                      "threadId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "inboxId": {
                        "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"
                          }
                        ]
                      },
                      "organizationId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "providerInternalMessageId": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "rfc2822MessageId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "google_workspace",
                          "microsoft_365",
                          "other"
                        ]
                      },
                      "from": {
                        "$ref": "#/$defs/NonEmptyString"
                      },
                      "to": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "cc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "bcc": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        }
                      },
                      "subject": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "snippet": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "receivedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "direction": {
                        "type": "string",
                        "enum": [
                          "inbound",
                          "outbound"
                        ]
                      },
                      "isFromInboxSender": {
                        "type": "boolean"
                      },
                      "sentFromUnibox": {
                        "type": "boolean"
                      },
                      "attachments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/AttachmentId"
                            },
                            "filename": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "contentType": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "size": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "inline": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "filename",
                            "contentType",
                            "size",
                            "inline"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "filename",
                              "contentType",
                              "size",
                              "inline"
                            ]
                          }
                        }
                      },
                      "bodyState": {
                        "type": "string",
                        "enum": [
                          "available",
                          "pending"
                        ]
                      },
                      "isRead": {
                        "type": "boolean"
                      },
                      "flaggedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deletedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "headers": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string",
                          "maxLength": 16384
                        }
                      },
                      "authoredByWorkflowRunId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "threadId",
                      "inboxId",
                      "organizationId",
                      "providerInternalMessageId",
                      "rfc2822MessageId",
                      "provider",
                      "from",
                      "to",
                      "cc",
                      "bcc",
                      "subject",
                      "snippet",
                      "receivedAt",
                      "direction",
                      "isFromInboxSender",
                      "sentFromUnibox",
                      "attachments",
                      "bodyState",
                      "isRead",
                      "flaggedAt",
                      "deletedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|threadId|inboxId|organizationId|providerInternalMessageId|rfc2822MessageId|provider|from|to|cc|bcc|subject|snippet|receivedAt|direction|isFromInboxSender|sentFromUnibox|attachments|bodyState|isRead|flaggedAt|deletedAt|headers|authoredByWorkflowRunId)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "threadId",
                        "inboxId",
                        "organizationId",
                        "providerInternalMessageId",
                        "rfc2822MessageId",
                        "provider",
                        "from",
                        "to",
                        "cc",
                        "bcc",
                        "subject",
                        "snippet",
                        "receivedAt",
                        "direction",
                        "isFromInboxSender",
                        "sentFromUnibox",
                        "attachments",
                        "bodyState",
                        "isRead",
                        "flaggedAt",
                        "deletedAt",
                        "headers",
                        "authoredByWorkflowRunId"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "threadId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "labels": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/$defs/ThreadLabelId"
                            },
                            "name": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "hexColor": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "sentiment": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "positive",
                                    "negative",
                                    "neutral"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "custom",
                                "default"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "hexColor",
                            "sentiment",
                            "type"
                          ],
                          "patternProperties": {
                            "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "id",
                              "name",
                              "hexColor",
                              "sentiment",
                              "type"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "threadId",
                      "labels"
                    ],
                    "patternProperties": {
                      "^(?!(?:threadId|labels)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "threadId",
                        "labels"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "threadId": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "ok": {
                              "type": "boolean"
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "threadId",
                            "ok",
                            "error"
                          ],
                          "patternProperties": {
                            "^(?!(?:threadId|ok|error)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "threadId",
                              "ok",
                              "error"
                            ]
                          }
                        },
                        "maxItems": 100
                      },
                      "succeeded": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "failed": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "items",
                      "succeeded",
                      "failed"
                    ],
                    "patternProperties": {
                      "^(?!(?:items|succeeded|failed)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "items",
                        "succeeded",
                        "failed"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "inboxId": {
                            "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"
                              }
                            ]
                          },
                          "organizationId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "snippet": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contact": {
                            "type": "object",
                            "properties": {
                              "emailAddress": {
                                "$ref": "#/$defs/EmailAddress"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "leadId": {
                                "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"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "emailAddress",
                              "name",
                              "leadId"
                            ],
                            "patternProperties": {
                              "^(?!(?:emailAddress|name|leadId)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "emailAddress",
                                "name",
                                "leadId"
                              ]
                            }
                          },
                          "providerThreadId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "google_workspace",
                              "microsoft_365",
                              "other"
                            ]
                          },
                          "lastMessageAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "messageCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/ThreadLabelId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "hexColor": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "sentiment": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "positive",
                                        "negative",
                                        "neutral"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "custom",
                                    "default"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "hexColor",
                                "sentiment",
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "hexColor",
                                  "sentiment",
                                  "type"
                                ]
                              }
                            }
                          },
                          "assignees": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "userId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "$ref": "#/$defs/EmailAddress"
                                },
                                "image": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/HttpUrl"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isFormerMember": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "userId",
                                "name",
                                "email",
                                "image",
                                "isFormerMember"
                              ],
                              "patternProperties": {
                                "^(?!(?:userId|name|email|image|isFormerMember)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "userId",
                                  "name",
                                  "email",
                                  "image",
                                  "isFormerMember"
                                ]
                              }
                            }
                          },
                          "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"
                              }
                            ]
                          },
                          "campaignContactId": {
                            "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"
                              }
                            ]
                          },
                          "isRead": {
                            "type": "boolean"
                          },
                          "starredAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "deletedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "folders": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "inbox",
                                "sent",
                                "archived",
                                "starred",
                                "warmup",
                                "trash"
                              ]
                            }
                          },
                          "recentMessages": {
                            "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"
                                },
                                "providerInternalMessageId": {
                                  "$ref": "#/$defs/OpaqueId"
                                },
                                "from": {
                                  "$ref": "#/$defs/NonEmptyString"
                                },
                                "to": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "cc": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "subject": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "snippet": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/LeadStoredText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "receivedAt": {
                                  "$ref": "#/$defs/UtcDateTimeEncoded"
                                },
                                "isRead": {
                                  "type": "boolean"
                                },
                                "isFromInboxSender": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "providerInternalMessageId",
                                "from",
                                "to",
                                "cc",
                                "subject",
                                "snippet",
                                "receivedAt",
                                "isRead",
                                "isFromInboxSender"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|providerInternalMessageId|from|to|cc|subject|snippet|receivedAt|isRead|isFromInboxSender)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "providerInternalMessageId",
                                  "from",
                                  "to",
                                  "cc",
                                  "subject",
                                  "snippet",
                                  "receivedAt",
                                  "isRead",
                                  "isFromInboxSender"
                                ]
                              }
                            },
                            "maxItems": 20
                          }
                        },
                        "required": [
                          "id",
                          "inboxId",
                          "organizationId",
                          "subject",
                          "snippet",
                          "contact",
                          "providerThreadId",
                          "provider",
                          "lastMessageAt",
                          "messageCount",
                          "labels",
                          "assignees",
                          "campaignId",
                          "campaignContactId",
                          "isRead",
                          "starredAt",
                          "archivedAt",
                          "deletedAt",
                          "folders"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|inboxId|organizationId|subject|snippet|contact|providerThreadId|provider|lastMessageAt|messageCount|labels|assignees|campaignId|campaignContactId|isRead|starredAt|archivedAt|deletedAt|folders|recentMessages)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "inboxId",
                            "organizationId",
                            "subject",
                            "snippet",
                            "contact",
                            "providerThreadId",
                            "provider",
                            "lastMessageAt",
                            "messageCount",
                            "labels",
                            "assignees",
                            "campaignId",
                            "campaignContactId",
                            "isRead",
                            "starredAt",
                            "archivedAt",
                            "deletedAt",
                            "folders",
                            "recentMessages"
                          ]
                        }
                      },
                      {
                        "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"
                          },
                          "threadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "inboxId": {
                            "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"
                              }
                            ]
                          },
                          "organizationId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "providerInternalMessageId": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "rfc2822MessageId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "google_workspace",
                              "microsoft_365",
                              "other"
                            ]
                          },
                          "from": {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          "to": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "cc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "bcc": {
                            "type": "array",
                            "items": {
                              "$ref": "#/$defs/NonEmptyString"
                            }
                          },
                          "subject": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "snippet": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "receivedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "inbound",
                              "outbound"
                            ]
                          },
                          "isFromInboxSender": {
                            "type": "boolean"
                          },
                          "sentFromUnibox": {
                            "type": "boolean"
                          },
                          "attachments": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/AttachmentId"
                                },
                                "filename": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "contentType": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "inline": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "filename",
                                "contentType",
                                "size",
                                "inline"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|filename|contentType|size|inline)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "filename",
                                  "contentType",
                                  "size",
                                  "inline"
                                ]
                              }
                            }
                          },
                          "bodyState": {
                            "type": "string",
                            "enum": [
                              "available",
                              "pending"
                            ]
                          },
                          "isRead": {
                            "type": "boolean"
                          },
                          "flaggedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "deletedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "headers": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string",
                              "maxLength": 16384
                            }
                          },
                          "authoredByWorkflowRunId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/OpaqueId"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "threadId",
                          "inboxId",
                          "organizationId",
                          "providerInternalMessageId",
                          "rfc2822MessageId",
                          "provider",
                          "from",
                          "to",
                          "cc",
                          "bcc",
                          "subject",
                          "snippet",
                          "receivedAt",
                          "direction",
                          "isFromInboxSender",
                          "sentFromUnibox",
                          "attachments",
                          "bodyState",
                          "isRead",
                          "flaggedAt",
                          "deletedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|threadId|inboxId|organizationId|providerInternalMessageId|rfc2822MessageId|provider|from|to|cc|bcc|subject|snippet|receivedAt|direction|isFromInboxSender|sentFromUnibox|attachments|bodyState|isRead|flaggedAt|deletedAt|headers|authoredByWorkflowRunId)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "threadId",
                            "inboxId",
                            "organizationId",
                            "providerInternalMessageId",
                            "rfc2822MessageId",
                            "provider",
                            "from",
                            "to",
                            "cc",
                            "bcc",
                            "subject",
                            "snippet",
                            "receivedAt",
                            "direction",
                            "isFromInboxSender",
                            "sentFromUnibox",
                            "attachments",
                            "bodyState",
                            "isRead",
                            "flaggedAt",
                            "deletedAt",
                            "headers",
                            "authoredByWorkflowRunId"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "threadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/$defs/ThreadLabelId"
                                },
                                "name": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "hexColor": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "sentiment": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "positive",
                                        "negative",
                                        "neutral"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "custom",
                                    "default"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "hexColor",
                                "sentiment",
                                "type"
                              ],
                              "patternProperties": {
                                "^(?!(?:id|name|hexColor|sentiment|type)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "id",
                                  "name",
                                  "hexColor",
                                  "sentiment",
                                  "type"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "threadId",
                          "labels"
                        ],
                        "patternProperties": {
                          "^(?!(?:threadId|labels)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "threadId",
                            "labels"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "threadId": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "ok": {
                                  "type": "boolean"
                                },
                                "error": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "threadId",
                                "ok",
                                "error"
                              ],
                              "patternProperties": {
                                "^(?!(?:threadId|ok|error)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "threadId",
                                  "ok",
                                  "error"
                                ]
                              }
                            },
                            "maxItems": 100
                          },
                          "succeeded": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "failed": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "items",
                          "succeeded",
                          "failed"
                        ],
                        "patternProperties": {
                          "^(?!(?:items|succeeded|failed)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "items",
                            "succeeded",
                            "failed"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "triage_unibox_threads"
      },
      "scopes": [
        "unibox:read",
        "unibox:archive",
        "unibox:label"
      ],
      "bundles": [
        "unibox_triage"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "uniboxThreads.update",
        "uniboxThreads.archive",
        "uniboxThreads.unarchive",
        "uniboxThreads.restore",
        "uniboxThreads.setLabels",
        "uniboxThreads.batchStar",
        "uniboxThreads.batchArchive",
        "uniboxThreads.batchMarkRead",
        "uniboxThreads.batchRestore",
        "uniboxMessages.update"
      ],
      "invocations": [
        {
          "operationId": "uniboxThreads.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.archive",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId/archive",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.unarchive",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId/unarchive",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.restore",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId/restore",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.setLabels",
          "method": "PUT",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/:threadId/labels",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.batchStar",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/batch/star",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.batchArchive",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/batch/archive",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.batchMarkRead",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/batch/read",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxThreads.batchRestore",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/unibox/threads/batch/restore",
          "workspaceScoped": false
        },
        {
          "operationId": "uniboxMessages.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/unibox/messages/:messageId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "type": "object",
        "anyOf": [
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "set_state"
                    ]
                  }
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              },
              "starred": {
                "type": "boolean"
              },
              "read": {
                "type": "boolean"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds|starred|read)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds",
                "starred",
                "read"
              ]
            }
          },
          {
            "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": [
                  "archive",
                  "unarchive",
                  "restore"
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "set_labels"
                    ]
                  }
                ]
              },
              "threadIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "minItems": 1,
                "maxItems": 1
              },
              "labels": {
                "type": "object",
                "properties": {
                  "add": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ThreadLabelId"
                    },
                    "maxItems": 20
                  },
                  "remove": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ThreadLabelId"
                    },
                    "maxItems": 20
                  }
                },
                "required": [
                  "add",
                  "remove"
                ],
                "patternProperties": {
                  "^(?!(?:add|remove)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "add",
                    "remove"
                  ]
                }
              }
            },
            "required": [
              "workspaceId",
              "action",
              "threadIds",
              "labels"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|threadIds|labels)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "threadIds",
                "labels"
              ]
            }
          },
          {
            "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": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "flag_message"
                    ]
                  }
                ]
              },
              "messageId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "flagged": {
                "type": "boolean"
              }
            },
            "required": [
              "workspaceId",
              "action",
              "messageId",
              "flagged"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|action|messageId|flagged)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "action",
                "messageId",
                "flagged"
              ]
            }
          }
        ],
        "$defs": {
          "ThreadLabelId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        }
      }
    },
    {
      "feature": "integrations",
      "name": "update_integration_share",
      "description": "Add workspaces to an existing share, or change whether workspaces created later join it.\n\nUse on the source workspace of a share. Detached workspaces are not re-added; their admins re-attach themselves.\n\nUse detach_integration_share or revoke_integration_share to narrow a share.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "addWorkspaceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 500
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId|addWorkspaceIds|includeFutureWorkspaces)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId",
            "addWorkspaceIds",
            "includeFutureWorkspaces"
          ]
        }
      },
      "outputSchema": {
        "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"
          },
          "adapter": {
            "$ref": "#/$defs/IntegrationShareAdapter"
          },
          "provider": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "displayName": {
            "$ref": "#/$defs/ShortText"
          },
          "role": {
            "type": "string",
            "enum": [
              "source",
              "target"
            ]
          },
          "sourceWorkspaceId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceWorkspaceName": {
            "anyOf": [
              {
                "$ref": "#/$defs/ShortText"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceConnectionId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "sourceConnected": {
            "type": "boolean"
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "revokedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "targets": {
            "type": "array",
            "items": {
              "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"
                },
                "workspaceName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "attaching",
                    "attached",
                    "detached",
                    "failed"
                  ]
                },
                "connectionId": {
                  "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"
                    }
                  ]
                },
                "failureReason": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "attachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "detachedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "workspaceId",
                "workspaceName",
                "state",
                "connectionId",
                "failureReason",
                "attachedAt",
                "detachedAt"
              ],
              "patternProperties": {
                "^(?!(?:workspaceId|workspaceName|state|connectionId|failureReason|attachedAt|detachedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "workspaceId",
                  "workspaceName",
                  "state",
                  "connectionId",
                  "failureReason",
                  "attachedAt",
                  "detachedAt"
                ]
              }
            },
            "maxItems": 500
          }
        },
        "required": [
          "id",
          "adapter",
          "provider",
          "displayName",
          "role",
          "sourceWorkspaceId",
          "sourceWorkspaceName",
          "sourceConnectionId",
          "sourceConnected",
          "includeFutureWorkspaces",
          "createdAt",
          "revokedAt",
          "targets"
        ],
        "patternProperties": {
          "^(?!(?:id|adapter|provider|displayName|role|sourceWorkspaceId|sourceWorkspaceName|sourceConnectionId|sourceConnected|includeFutureWorkspaces|createdAt|revokedAt|targets)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "adapter",
            "provider",
            "displayName",
            "role",
            "sourceWorkspaceId",
            "sourceWorkspaceName",
            "sourceConnectionId",
            "sourceConnected",
            "includeFutureWorkspaces",
            "createdAt",
            "revokedAt",
            "targets"
          ]
        },
        "$defs": {
          "IntegrationShareAdapter": {
            "type": "string",
            "enum": [
              "apollo",
              "prospeo",
              "conductor",
              "mxtoolbox",
              "clay",
              "floqer",
              "heyreach",
              "getleads",
              "plusvibe",
              "calendly",
              "cal_com",
              "attio",
              "email_verifier",
              "phone_verifier",
              "warmup_provider",
              "mcp_server",
              "app_connection"
            ]
          },
          "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$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "update_integration_share"
      },
      "scopes": [
        "integration:create"
      ],
      "bundles": [
        "integration_sharing"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "integrationShares.update"
      ],
      "invocations": [
        {
          "operationId": "integrationShares.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/integration-shares/:shareId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "shareId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "addWorkspaceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 500
          },
          "includeFutureWorkspaces": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "shareId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|shareId|addWorkspaceIds|includeFutureWorkspaces)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "shareId",
            "addWorkspaceIds",
            "includeFutureWorkspaces"
          ]
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "update_lead_details",
      "description": "Patch descriptive lead fields, add an email contact point, or add/remove notes; action selects patch, add_email, add_note, or remove_note.\n\nUse for descriptive updates and notes; identity fields change only through the contact-point lane.\n\naddEmail conflicts when another lead owns the address; same-lead re-adds keep bad state.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "patch",
              "add_email",
              "add_note",
              "remove_note"
            ]
          },
          "patch": {
            "type": "object",
            "properties": {
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyWebsiteUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jobTitle": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "locality": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "region": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "timezone": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "personalLinkedInUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyLinkedInUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:firstName|lastName|companyName|companyWebsiteUrl|jobTitle|locality|region|country|timezone|personalLinkedInUrl|companyLinkedInUrl)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "firstName",
                "lastName",
                "companyName",
                "companyWebsiteUrl",
                "jobTitle",
                "locality",
                "region",
                "country",
                "timezone",
                "personalLinkedInUrl",
                "companyLinkedInUrl"
              ]
            },
            "minProperties": 1,
            "maxProperties": 11
          },
          "email": {
            "$ref": "#/$defs/EmailAddress"
          },
          "noteId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "body": {
            "type": "string"
          }
        },
        "required": [
          "workspaceId",
          "leadId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|leadId|action|patch|email|noteId|body)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "leadId",
            "action",
            "patch",
            "email",
            "noteId",
            "body"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "LeadStoredText": {
            "type": "string",
            "maxLength": 65536
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Union_": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Union_"
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/$defs/Union_"
                }
              }
            ]
          },
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "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"
                      },
                      "organizationId": {
                        "type": "string"
                      },
                      "emailAddress": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phoneNumber": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phoneBase": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phoneExtension": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "firstName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lastName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "companyName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "companyWebsiteUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "jobTitle": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "locality": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "region": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "country": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "timezone": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "personalLinkedInUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "companyLinkedInUrl": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/LeadStoredText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "customFieldValues": {
                        "anyOf": [
                          {
                            "type": "object",
                            "additionalProperties": true
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "organizationId",
                      "emailAddress",
                      "phoneNumber",
                      "phoneBase",
                      "phoneExtension",
                      "firstName",
                      "lastName",
                      "companyName",
                      "companyWebsiteUrl",
                      "jobTitle",
                      "locality",
                      "region",
                      "country",
                      "timezone",
                      "personalLinkedInUrl",
                      "companyLinkedInUrl",
                      "source",
                      "customFieldValues",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|organizationId|emailAddress|phoneNumber|phoneBase|phoneExtension|firstName|lastName|companyName|companyWebsiteUrl|jobTitle|locality|region|country|timezone|personalLinkedInUrl|companyLinkedInUrl|source|customFieldValues|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "organizationId",
                        "emailAddress",
                        "phoneNumber",
                        "phoneBase",
                        "phoneExtension",
                        "firstName",
                        "lastName",
                        "companyName",
                        "companyWebsiteUrl",
                        "jobTitle",
                        "locality",
                        "region",
                        "country",
                        "timezone",
                        "personalLinkedInUrl",
                        "companyLinkedInUrl",
                        "source",
                        "customFieldValues",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "success": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "success"
                    ],
                    "patternProperties": {
                      "^(?!(?:success)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "success"
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "note": {
                        "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"
                          },
                          "leadId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "body": {
                            "type": "string"
                          },
                          "authorUserId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "authorName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "leadId",
                          "body",
                          "authorUserId",
                          "authorName",
                          "createdAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|leadId|body|authorUserId|authorName|createdAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "leadId",
                            "body",
                            "authorUserId",
                            "authorName",
                            "createdAt"
                          ]
                        }
                      }
                    },
                    "required": [
                      "note"
                    ],
                    "patternProperties": {
                      "^(?!(?:note)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "note"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "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"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "emailAddress": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phoneNumber": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phoneBase": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phoneExtension": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "firstName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "companyName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "companyWebsiteUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "jobTitle": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "locality": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "region": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "country": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "timezone": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "personalLinkedInUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "companyLinkedInUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "source": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/LeadStoredText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "customFieldValues": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "emailAddress",
                          "phoneNumber",
                          "phoneBase",
                          "phoneExtension",
                          "firstName",
                          "lastName",
                          "companyName",
                          "companyWebsiteUrl",
                          "jobTitle",
                          "locality",
                          "region",
                          "country",
                          "timezone",
                          "personalLinkedInUrl",
                          "companyLinkedInUrl",
                          "source",
                          "customFieldValues",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|organizationId|emailAddress|phoneNumber|phoneBase|phoneExtension|firstName|lastName|companyName|companyWebsiteUrl|jobTitle|locality|region|country|timezone|personalLinkedInUrl|companyLinkedInUrl|source|customFieldValues|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "organizationId",
                            "emailAddress",
                            "phoneNumber",
                            "phoneBase",
                            "phoneExtension",
                            "firstName",
                            "lastName",
                            "companyName",
                            "companyWebsiteUrl",
                            "jobTitle",
                            "locality",
                            "region",
                            "country",
                            "timezone",
                            "personalLinkedInUrl",
                            "companyLinkedInUrl",
                            "source",
                            "customFieldValues",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "success": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "success"
                        ],
                        "patternProperties": {
                          "^(?!(?:success)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "success"
                              ]
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "note": {
                            "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"
                              },
                              "leadId": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "body": {
                                "type": "string"
                              },
                              "authorUserId": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "authorName": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/LeadStoredText"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              }
                            },
                            "required": [
                              "id",
                              "leadId",
                              "body",
                              "authorUserId",
                              "authorName",
                              "createdAt"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|leadId|body|authorUserId|authorName|createdAt)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "leadId",
                                "body",
                                "authorUserId",
                                "authorName",
                                "createdAt"
                              ]
                            }
                          }
                        },
                        "required": [
                          "note"
                        ],
                        "patternProperties": {
                          "^(?!(?:note)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "note"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "update_lead_details"
      },
      "scopes": [
        "lead:update"
      ],
      "bundles": [
        "lead_management"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "inline",
      "underlyingOperations": [
        "leads.update",
        "leads.addEmail",
        "leads.notes.add",
        "leads.notes.remove"
      ],
      "invocations": [
        {
          "operationId": "leads.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.addEmail",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId/emails",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.notes.add",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId/notes",
          "workspaceScoped": false
        },
        {
          "operationId": "leads.notes.remove",
          "method": "DELETE",
          "path": "/v1/workspaces/:workspaceId/leads/:leadId/notes/:noteId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "leadId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": [
              "patch",
              "add_email",
              "add_note",
              "remove_note"
            ]
          },
          "patch": {
            "type": "object",
            "properties": {
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyWebsiteUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jobTitle": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "locality": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "region": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "timezone": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "personalLinkedInUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyLinkedInUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "patternProperties": {
              "^(?!(?:firstName|lastName|companyName|companyWebsiteUrl|jobTitle|locality|region|country|timezone|personalLinkedInUrl|companyLinkedInUrl)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "firstName",
                "lastName",
                "companyName",
                "companyWebsiteUrl",
                "jobTitle",
                "locality",
                "region",
                "country",
                "timezone",
                "personalLinkedInUrl",
                "companyLinkedInUrl"
              ]
            },
            "minProperties": 1,
            "maxProperties": 11
          },
          "email": {
            "$ref": "#/$defs/EmailAddress"
          },
          "noteId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "body": {
            "type": "string"
          }
        },
        "required": [
          "workspaceId",
          "leadId",
          "action"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|leadId|action|patch|email|noteId|body)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "leadId",
            "action",
            "patch",
            "email",
            "noteId",
            "body"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      }
    },
    {
      "feature": "leads-work",
      "name": "update_task",
      "description": "Update a task's mutable fields.\n\nUse to change title, description, due date, or lead link.\n\nThe human request on a workflow task can never be edited; use the respond flow instead.",
      "inputSchema": {
        "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"
          },
          "taskId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "dueDate": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "leadId": {
            "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"
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "taskId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|taskId|title|description|dueDate|leadId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "taskId",
            "title",
            "description",
            "dueDate",
            "leadId"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      },
      "outputSchema": {
        "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"
          },
          "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"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "dueDate": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedBy": {
            "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"
              }
            ]
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "no_luck",
                  "responded",
                  "bad_info"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "leadId": {
            "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"
              }
            ]
          },
          "campaignContactId": {
            "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"
              }
            ]
          },
          "campaignStepId": {
            "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"
              }
            ]
          },
          "workflowRunId": {
            "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"
              }
            ]
          },
          "workflow": {
            "anyOf": [
              {
                "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": {
                    "$ref": "#/$defs/ShortText"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "patternProperties": {
                  "^(?!(?:id|name)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "humanRequest": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "approval",
                          "text"
                        ]
                      },
                      "question": {
                        "$ref": "#/$defs/Description"
                      }
                    },
                    "required": [
                      "type",
                      "question"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|question)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "question"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "choice"
                            ]
                          }
                        ]
                      },
                      "question": {
                        "$ref": "#/$defs/Description"
                      },
                      "options": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        "maxItems": 20
                      }
                    },
                    "required": [
                      "type",
                      "question",
                      "options"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|question|options)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "question",
                        "options"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "humanResponse": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "approval"
                            ]
                          }
                        ]
                      },
                      "approved": {
                        "type": "boolean"
                      },
                      "comment": {
                        "$ref": "#/$defs/ShortText"
                      }
                    },
                    "required": [
                      "type",
                      "approved"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|approved|comment)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "approved",
                        "comment"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "text"
                            ]
                          }
                        ]
                      },
                      "text": {
                        "$ref": "#/$defs/Description"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|text)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "text"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "choice"
                            ]
                          }
                        ]
                      },
                      "choice": {
                        "$ref": "#/$defs/NonEmptyString"
                      }
                    },
                    "required": [
                      "type",
                      "choice"
                    ],
                    "patternProperties": {
                      "^(?!(?:type|choice)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "type",
                        "choice"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "requestState": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "pending",
                  "answered",
                  "expired",
                  "cancelled"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "responseExpiresAt": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "requestedByAgentRegistrationId": {
            "anyOf": [
              {
                "$ref": "#/$defs/OpaqueId"
              },
              {
                "type": "null"
              }
            ]
          },
          "operationId": {
            "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"
              }
            ]
          },
          "assignees": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                  "$ref": "#/$defs/ShortText"
                },
                "email": {
                  "$ref": "#/$defs/EmailAddress"
                },
                "image": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "inOrg": {
                  "type": "boolean"
                }
              },
              "required": [
                "userId",
                "name",
                "email",
                "image",
                "inOrg"
              ],
              "patternProperties": {
                "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ]
              }
            }
          },
          "createdBy": {
            "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"
              }
            ]
          },
          "createdByUser": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inOrg": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "inOrg"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "completedByUser": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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": {
                    "$ref": "#/$defs/ShortText"
                  },
                  "email": {
                    "$ref": "#/$defs/EmailAddress"
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inOrg": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId",
                  "name",
                  "email",
                  "image",
                  "inOrg"
                ],
                "patternProperties": {
                  "^(?!(?:userId|name|email|image|inOrg)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "userId",
                    "name",
                    "email",
                    "image",
                    "inOrg"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "lead": {
            "anyOf": [
              {
                "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"
                  },
                  "firstName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "lastName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "companyName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "emailAddress": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phoneNumber": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "firstName",
                  "lastName",
                  "companyName",
                  "emailAddress",
                  "phoneNumber"
                ],
                "patternProperties": {
                  "^(?!(?:id|firstName|lastName|companyName|emailAddress|phoneNumber)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "id",
                    "firstName",
                    "lastName",
                    "companyName",
                    "emailAddress",
                    "phoneNumber"
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "outcomeDetail": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "phoneOutcomes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "leadPhoneId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_luck",
                            "responded",
                            "bad_info"
                          ]
                        }
                      },
                      "required": [
                        "leadPhoneId",
                        "outcome"
                      ],
                      "patternProperties": {
                        "^(?!(?:leadPhoneId|outcome)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "leadPhoneId",
                          "outcome"
                        ]
                      }
                    },
                    "maxItems": 50
                  }
                },
                "required": [
                  "phoneOutcomes"
                ],
                "patternProperties": {
                  "^(?!(?:phoneOutcomes)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "phoneOutcomes"
                      ]
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "updatedAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "title",
          "description",
          "dueDate",
          "completedAt",
          "completedBy",
          "outcome",
          "leadId",
          "campaignContactId",
          "campaignStepId",
          "workflowRunId",
          "workflow",
          "humanRequest",
          "humanResponse",
          "requestState",
          "responseExpiresAt",
          "requestedByAgentRegistrationId",
          "operationId",
          "assignees",
          "createdBy",
          "createdAt",
          "updatedAt"
        ],
        "patternProperties": {
          "^(?!(?:id|workspaceId|title|description|dueDate|completedAt|completedBy|outcome|leadId|campaignContactId|campaignStepId|workflowRunId|workflow|humanRequest|humanResponse|requestState|responseExpiresAt|requestedByAgentRegistrationId|operationId|assignees|createdBy|createdByUser|completedByUser|lead|outcomeDetail|createdAt|updatedAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "workspaceId",
            "title",
            "description",
            "dueDate",
            "completedAt",
            "completedBy",
            "outcome",
            "leadId",
            "campaignContactId",
            "campaignStepId",
            "workflowRunId",
            "workflow",
            "humanRequest",
            "humanResponse",
            "requestState",
            "responseExpiresAt",
            "requestedByAgentRegistrationId",
            "operationId",
            "assignees",
            "createdBy",
            "createdByUser",
            "completedByUser",
            "lead",
            "outcomeDetail",
            "createdAt",
            "updatedAt"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "OpaqueId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "update_task"
      },
      "scopes": [
        "task:update"
      ],
      "bundles": [
        "tasks"
      ],
      "risk": "write",
      "idempotency": "supported",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "tasks.update"
      ],
      "invocations": [
        {
          "operationId": "tasks.update",
          "method": "PATCH",
          "path": "/v1/workspaces/:workspaceId/tasks/:taskId",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "taskId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "dueDate": {
            "anyOf": [
              {
                "$ref": "#/$defs/UtcDateTimeEncoded"
              },
              {
                "type": "null"
              }
            ]
          },
          "leadId": {
            "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"
              }
            ]
          }
        },
        "required": [
          "workspaceId",
          "taskId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|taskId|title|description|dueDate|leadId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "taskId",
            "title",
            "description",
            "dueDate",
            "leadId"
          ]
        },
        "$defs": {
          "UtcDateTimeEncoded": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        }
      }
    },
    {
      "feature": "campaigns",
      "name": "validate_campaign",
      "description": "Run the launch prerequisite checks and return a structured report.\n\nUse before launch_campaign to see which prerequisites are missing without changing state.\n\nValidation never mutates the campaign; use preview_launch to bind a version.",
      "inputSchema": {
        "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "campaignId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|campaignId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "campaignId"
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "ok": {
            "type": "boolean"
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "ok": {
                  "type": "boolean"
                },
                "detail": {
                  "$ref": "#/$defs/ShortText"
                }
              },
              "required": [
                "name",
                "ok"
              ],
              "patternProperties": {
                "^(?!(?:name|ok|detail)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "name",
                  "ok",
                  "detail"
                ]
              }
            }
          },
          "missing": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ShortText"
            }
          }
        },
        "required": [
          "campaignId",
          "ok",
          "checks",
          "missing"
        ],
        "patternProperties": {
          "^(?!(?:campaignId|ok|checks|missing)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "campaignId",
            "ok",
            "checks",
            "missing"
          ]
        },
        "$defs": {
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "kind": "direct_tool",
      "mapping": {
        "kind": "direct_tool",
        "toolName": "validate_campaign"
      },
      "scopes": [
        "campaign:read"
      ],
      "bundles": [
        "campaigns"
      ],
      "risk": "read",
      "idempotency": "none",
      "confirmation": "none",
      "resultMode": "inline",
      "underlyingOperations": [
        "campaigns.validate"
      ],
      "invocations": [
        {
          "operationId": "campaigns.validate",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/campaigns/:campaignId/validate",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "campaignId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "workspaceId",
          "campaignId"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|campaignId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "campaignId"
          ]
        }
      }
    },
    {
      "feature": "verification-warmup",
      "name": "verify_contacts",
      "description": "Verify email addresses or phone numbers through the workspace's connected verifier waterfall; single calls confirm inline, bulk calls enqueue a durable run.\n\nUse when asked to check whether an email or phone is valid before sending; bulk accepts explicit lists or a campaign scope and returns an operation handle.\n\nNever verify without a connected workspace verifier key; the run bills the workspace's own provider account, so confirm spend before bulk submission.\n\nObtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.",
      "inputSchema": {
        "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"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "single",
              "bulk"
            ]
          },
          "email": {
            "$ref": "#/$defs/EmailAddress"
          },
          "phone": {
            "$ref": "#/$defs/PhoneNumberInput"
          },
          "emails": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/EmailAddress"
            },
            "maxItems": 10000
          },
          "phones": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/PhoneNumberInput"
            },
            "maxItems": 10000
          },
          "scope": {
            "type": "object",
            "properties": {
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
              },
              "assigneeUserIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                }
              }
            },
            "required": [
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:campaignId|search|assigneeUserIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "campaignId",
                "search",
                "assigneeUserIds"
              ]
            }
          },
          "forceRecheck": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "channel",
          "mode"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|channel|mode|email|phone|emails|phones|scope|forceRecheck)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "channel",
            "mode",
            "email",
            "phone",
            "emails",
            "phones",
            "scope",
            "forceRecheck"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "PhoneNumberInput": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      },
      "outputSchema": {
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "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$"
          },
          "HttpUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
          },
          "HttpResourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^\\/[A-Za-z0-9._~!$&'()*+,;=:@/%-]*$"
          },
          "NonEmptyString": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        },
        "type": "object",
        "anyOf": [
          {
            "allOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "email": {
                        "$ref": "#/$defs/EmailAddress"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "valid",
                          "invalid",
                          "catch-all",
                          "unknown",
                          "disposable",
                          "role",
                          "spamtrap"
                        ]
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "cache",
                          "dns",
                          "provider"
                        ]
                      },
                      "provider": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "confidence": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "flags": {
                        "type": "object",
                        "properties": {
                          "role": {
                            "type": "boolean"
                          },
                          "disposable": {
                            "type": "boolean"
                          },
                          "spamtrap": {
                            "type": "boolean"
                          },
                          "freeProvider": {
                            "type": "boolean"
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:role|disposable|spamtrap|freeProvider)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "role",
                            "disposable",
                            "spamtrap",
                            "freeProvider"
                          ]
                        }
                      },
                      "verifiedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fromCache": {
                        "type": "boolean"
                      },
                      "attempts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "providerId": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "catch-all",
                                "unknown",
                                "disposable",
                                "role",
                                "spamtrap"
                              ]
                            },
                            "rawStatus": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confidence": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "resolved": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "providerId",
                            "status",
                            "rawStatus",
                            "confidence",
                            "resolved"
                          ],
                          "patternProperties": {
                            "^(?!(?:providerId|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "providerId",
                              "status",
                              "rawStatus",
                              "confidence",
                              "resolved"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "email",
                      "status",
                      "source",
                      "provider",
                      "confidence",
                      "verifiedAt",
                      "fromCache",
                      "attempts"
                    ],
                    "patternProperties": {
                      "^(?!(?:email|status|source|provider|confidence|flags|verifiedAt|fromCache|attempts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "email",
                        "status",
                        "source",
                        "provider",
                        "confidence",
                        "flags",
                        "verifiedAt",
                        "fromCache",
                        "attempts"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "phone": {
                        "$ref": "#/$defs/ShortText"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "valid",
                          "invalid",
                          "unknown"
                        ]
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "cache",
                          "format",
                          "provider"
                        ]
                      },
                      "provider": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "confidence": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "flags": {
                        "type": "object",
                        "properties": {
                          "lineType": {
                            "type": "string",
                            "enum": [
                              "mobile",
                              "landline",
                              "voip",
                              "toll_free",
                              "premium",
                              "unknown"
                            ]
                          },
                          "carrier": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "isPrepaid": {
                            "type": "boolean"
                          },
                          "activityScore": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "isLitigatorRisk": {
                            "type": "boolean"
                          },
                          "countryCode": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "e164Format": {
                            "$ref": "#/$defs/ShortText"
                          }
                        },
                        "patternProperties": {
                          "^(?!(?:lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|countryCode|e164Format)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "lineType",
                            "carrier",
                            "isPrepaid",
                            "activityScore",
                            "isLitigatorRisk",
                            "countryCode",
                            "e164Format"
                          ]
                        }
                      },
                      "verifiedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fromCache": {
                        "type": "boolean"
                      },
                      "attempts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "providerId": {
                              "$ref": "#/$defs/ShortText"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "valid",
                                "invalid",
                                "catch-all",
                                "unknown",
                                "disposable",
                                "role",
                                "spamtrap"
                              ]
                            },
                            "rawStatus": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/ShortText"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confidence": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "resolved": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "providerId",
                            "status",
                            "rawStatus",
                            "confidence",
                            "resolved"
                          ],
                          "patternProperties": {
                            "^(?!(?:providerId|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "providerId",
                              "status",
                              "rawStatus",
                              "confidence",
                              "resolved"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "phone",
                      "status",
                      "source",
                      "provider",
                      "confidence",
                      "verifiedAt",
                      "fromCache",
                      "attempts"
                    ],
                    "patternProperties": {
                      "^(?!(?:phone|status|source|provider|confidence|flags|verifiedAt|fromCache|attempts)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "phone",
                        "status",
                        "source",
                        "provider",
                        "confidence",
                        "flags",
                        "verifiedAt",
                        "fromCache",
                        "attempts"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "queued": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "capped": {
                        "type": "boolean"
                      },
                      "cap": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "operation": {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    },
                    "required": [
                      "runId",
                      "queued",
                      "capped",
                      "cap",
                      "operation"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|queued|capped|cap|operation)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "queued",
                        "capped",
                        "cap",
                        "operation"
                      ]
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "runId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "operation": {
                        "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"
                          },
                          "statusUrl": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/HttpUrl"
                              },
                              {
                                "$ref": "#/$defs/HttpResourcePath"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "waiting_for_user",
                              "succeeded",
                              "partially_succeeded",
                              "failed",
                              "canceled",
                              "canceling"
                            ]
                          },
                          "acceptedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "completed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "message": {
                                "$ref": "#/$defs/NonEmptyString"
                              }
                            },
                            "required": [
                              "completed"
                            ],
                            "patternProperties": {
                              "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "completed",
                                "total",
                                "message"
                              ]
                            }
                          },
                          "canCancel": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "statusUrl",
                          "state",
                          "acceptedAt",
                          "canCancel"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "statusUrl",
                            "state",
                            "acceptedAt",
                            "progress",
                            "canCancel"
                          ]
                        }
                      }
                    },
                    "required": [
                      "runId",
                      "operation"
                    ],
                    "patternProperties": {
                      "^(?!(?:runId|operation)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "runId",
                        "operation"
                      ]
                    }
                  }
                ]
              },
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "email": {
                            "$ref": "#/$defs/EmailAddress"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "valid",
                              "invalid",
                              "catch-all",
                              "unknown",
                              "disposable",
                              "role",
                              "spamtrap"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "cache",
                              "dns",
                              "provider"
                            ]
                          },
                          "provider": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "flags": {
                            "type": "object",
                            "properties": {
                              "role": {
                                "type": "boolean"
                              },
                              "disposable": {
                                "type": "boolean"
                              },
                              "spamtrap": {
                                "type": "boolean"
                              },
                              "freeProvider": {
                                "type": "boolean"
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:role|disposable|spamtrap|freeProvider)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "role",
                                "disposable",
                                "spamtrap",
                                "freeProvider"
                              ]
                            }
                          },
                          "verifiedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "fromCache": {
                            "type": "boolean"
                          },
                          "attempts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "providerId": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "catch-all",
                                    "unknown",
                                    "disposable",
                                    "role",
                                    "spamtrap"
                                  ]
                                },
                                "rawStatus": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "confidence": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "resolved": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "providerId",
                                "status",
                                "rawStatus",
                                "confidence",
                                "resolved"
                              ],
                              "patternProperties": {
                                "^(?!(?:providerId|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "providerId",
                                  "status",
                                  "rawStatus",
                                  "confidence",
                                  "resolved"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "email",
                          "status",
                          "source",
                          "provider",
                          "confidence",
                          "verifiedAt",
                          "fromCache",
                          "attempts"
                        ],
                        "patternProperties": {
                          "^(?!(?:email|status|source|provider|confidence|flags|verifiedAt|fromCache|attempts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "email",
                            "status",
                            "source",
                            "provider",
                            "confidence",
                            "flags",
                            "verifiedAt",
                            "fromCache",
                            "attempts"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "phone": {
                            "$ref": "#/$defs/ShortText"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "valid",
                              "invalid",
                              "unknown"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "cache",
                              "format",
                              "provider"
                            ]
                          },
                          "provider": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "flags": {
                            "type": "object",
                            "properties": {
                              "lineType": {
                                "type": "string",
                                "enum": [
                                  "mobile",
                                  "landline",
                                  "voip",
                                  "toll_free",
                                  "premium",
                                  "unknown"
                                ]
                              },
                              "carrier": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "isPrepaid": {
                                "type": "boolean"
                              },
                              "activityScore": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "isLitigatorRisk": {
                                "type": "boolean"
                              },
                              "countryCode": {
                                "$ref": "#/$defs/ShortText"
                              },
                              "e164Format": {
                                "$ref": "#/$defs/ShortText"
                              }
                            },
                            "patternProperties": {
                              "^(?!(?:lineType|carrier|isPrepaid|activityScore|isLitigatorRisk|countryCode|e164Format)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "lineType",
                                "carrier",
                                "isPrepaid",
                                "activityScore",
                                "isLitigatorRisk",
                                "countryCode",
                                "e164Format"
                              ]
                            }
                          },
                          "verifiedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "fromCache": {
                            "type": "boolean"
                          },
                          "attempts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "providerId": {
                                  "$ref": "#/$defs/ShortText"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "catch-all",
                                    "unknown",
                                    "disposable",
                                    "role",
                                    "spamtrap"
                                  ]
                                },
                                "rawStatus": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/ShortText"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "confidence": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "resolved": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "providerId",
                                "status",
                                "rawStatus",
                                "confidence",
                                "resolved"
                              ],
                              "patternProperties": {
                                "^(?!(?:providerId|status|rawStatus|confidence|resolved)$)[\\s\\S]*$": false
                              },
                              "additionalProperties": true,
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "providerId",
                                  "status",
                                  "rawStatus",
                                  "confidence",
                                  "resolved"
                                ]
                              }
                            }
                          }
                        },
                        "required": [
                          "phone",
                          "status",
                          "source",
                          "provider",
                          "confidence",
                          "verifiedAt",
                          "fromCache",
                          "attempts"
                        ],
                        "patternProperties": {
                          "^(?!(?:phone|status|source|provider|confidence|flags|verifiedAt|fromCache|attempts)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "phone",
                            "status",
                            "source",
                            "provider",
                            "confidence",
                            "flags",
                            "verifiedAt",
                            "fromCache",
                            "attempts"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "queued": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "capped": {
                            "type": "boolean"
                          },
                          "cap": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "operation": {
                            "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"
                              },
                              "statusUrl": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HttpUrl"
                                  },
                                  {
                                    "$ref": "#/$defs/HttpResourcePath"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "waiting_for_user",
                                  "succeeded",
                                  "partially_succeeded",
                                  "failed",
                                  "canceled",
                                  "canceling"
                                ]
                              },
                              "acceptedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "progress": {
                                "type": "object",
                                "properties": {
                                  "completed": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "message": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "required": [
                                  "completed"
                                ],
                                "patternProperties": {
                                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "completed",
                                    "total",
                                    "message"
                                  ]
                                }
                              },
                              "canCancel": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "statusUrl",
                              "state",
                              "acceptedAt",
                              "canCancel"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "statusUrl",
                                "state",
                                "acceptedAt",
                                "progress",
                                "canCancel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "runId",
                          "queued",
                          "capped",
                          "cap",
                          "operation"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|queued|capped|cap|operation)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "queued",
                            "capped",
                            "cap",
                            "operation"
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "properties": {
                          "runId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "operation": {
                            "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"
                              },
                              "statusUrl": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/HttpUrl"
                                  },
                                  {
                                    "$ref": "#/$defs/HttpResourcePath"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "waiting_for_user",
                                  "succeeded",
                                  "partially_succeeded",
                                  "failed",
                                  "canceled",
                                  "canceling"
                                ]
                              },
                              "acceptedAt": {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              "progress": {
                                "type": "object",
                                "properties": {
                                  "completed": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "total": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "message": {
                                    "$ref": "#/$defs/NonEmptyString"
                                  }
                                },
                                "required": [
                                  "completed"
                                ],
                                "patternProperties": {
                                  "^(?!(?:completed|total|message)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "completed",
                                    "total",
                                    "message"
                                  ]
                                }
                              },
                              "canCancel": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "statusUrl",
                              "state",
                              "acceptedAt",
                              "canCancel"
                            ],
                            "patternProperties": {
                              "^(?!(?:id|statusUrl|state|acceptedAt|progress|canCancel)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "id",
                                "statusUrl",
                                "state",
                                "acceptedAt",
                                "progress",
                                "canCancel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "runId",
                          "operation"
                        ],
                        "patternProperties": {
                          "^(?!(?:runId|operation)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "runId",
                            "operation"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "not": {
                      "type": "object"
                    }
                  }
                ]
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "kind": "async_operation",
      "mapping": {
        "kind": "async_operation",
        "handleOperationId": "emailVerification.status"
      },
      "scopes": [
        "emailVerification:verify",
        "phoneVerification:verify",
        "emailVerification:read",
        "phoneVerification:read"
      ],
      "bundles": [
        "lead_hygiene"
      ],
      "risk": "costly",
      "idempotency": "supported",
      "confirmation": "explicit",
      "resultMode": "operation_handle",
      "underlyingOperations": [
        "emailVerification.single",
        "emailVerification.bulk",
        "emailVerification.status",
        "phoneVerification.single",
        "phoneVerification.bulk",
        "phoneVerification.status"
      ],
      "invocations": [
        {
          "operationId": "emailVerification.single",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/verification/verify",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.bulk",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/verification/verify/bulk",
          "workspaceScoped": false
        },
        {
          "operationId": "emailVerification.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/verification/runs/:runId/status",
          "workspaceScoped": false
        },
        {
          "operationId": "phoneVerification.single",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/phone-verification/verify",
          "workspaceScoped": false
        },
        {
          "operationId": "phoneVerification.bulk",
          "method": "POST",
          "path": "/v1/workspaces/:workspaceId/phone-verification/verify/bulk",
          "workspaceScoped": false
        },
        {
          "operationId": "phoneVerification.status",
          "method": "GET",
          "path": "/v1/workspaces/:workspaceId/phone-verification/runs/:runId/status",
          "workspaceScoped": false
        }
      ],
      "agentInputSchema": {
        "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"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "single",
              "bulk"
            ]
          },
          "email": {
            "$ref": "#/$defs/EmailAddress"
          },
          "phone": {
            "$ref": "#/$defs/PhoneNumberInput"
          },
          "emails": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/EmailAddress"
            },
            "maxItems": 10000
          },
          "phones": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/PhoneNumberInput"
            },
            "maxItems": 10000
          },
          "scope": {
            "type": "object",
            "properties": {
              "campaignId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-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"
              },
              "assigneeUserIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                }
              }
            },
            "required": [
              "campaignId"
            ],
            "patternProperties": {
              "^(?!(?:campaignId|search|assigneeUserIds)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "campaignId",
                "search",
                "assigneeUserIds"
              ]
            }
          },
          "forceRecheck": {
            "type": "boolean"
          }
        },
        "required": [
          "workspaceId",
          "channel",
          "mode"
        ],
        "patternProperties": {
          "^(?!(?:workspaceId|channel|mode|email|phone|emails|phones|scope|forceRecheck)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "workspaceId",
            "channel",
            "mode",
            "email",
            "phone",
            "emails",
            "phones",
            "scope",
            "forceRecheck"
          ]
        },
        "$defs": {
          "EmailAddress": {
            "type": "string",
            "minLength": 3,
            "maxLength": 320,
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
          },
          "PhoneNumberInput": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "ShortText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        }
      }
    }
  ],
  "resources": [
    {
      "name": "observe_human_request",
      "feature": "agent-platform",
      "kind": "mcp_resource",
      "mapping": {
        "kind": "mcp_resource",
        "uriTemplate": "sz://agent/human-requests/{taskId}"
      },
      "purpose": "Read the safe projection of a human-input request raised during a workflow run.",
      "whenToUse": "Subscribe or read when an operation enters waiting_for_user and the agent needs the question and assignees.",
      "whenNotToUse": "Observation is read-only; it never reveals responder answers before they are recorded.",
      "input": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          }
        },
        "required": [
          "taskId"
        ],
        "patternProperties": {
          "^(?!(?:taskId)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "taskId"
              ]
            }
          ]
        }
      },
      "output": {
        "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"
          },
          "type": {
            "type": "string",
            "enum": [
              "approval",
              "text",
              "choice"
            ]
          },
          "question": {
            "$ref": "#/$defs/Description"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/NonEmptyString"
            },
            "maxItems": 20
          },
          "assigneeUserIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "maxItems": 20
          },
          "expiresAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          },
          "operationId": {
            "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"
              }
            ]
          },
          "workflowRunId": {
            "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"
              }
            ]
          },
          "requestedByAgentRegistrationId": {
            "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"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/$defs/UtcDateTimeEncoded"
          }
        },
        "required": [
          "id",
          "type",
          "question",
          "assigneeUserIds",
          "expiresAt",
          "operationId",
          "workflowRunId",
          "requestedByAgentRegistrationId",
          "createdAt"
        ],
        "patternProperties": {
          "^(?!(?:id|type|question|options|assigneeUserIds|expiresAt|operationId|workflowRunId|requestedByAgentRegistrationId|createdAt)$)[\\s\\S]*$": false
        },
        "additionalProperties": true,
        "propertyNames": {
          "type": "string",
          "enum": [
            "id",
            "type",
            "question",
            "options",
            "assigneeUserIds",
            "expiresAt",
            "operationId",
            "workflowRunId",
            "requestedByAgentRegistrationId",
            "createdAt"
          ]
        },
        "$defs": {
          "Description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "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$"
          }
        }
      },
      "errors": [
        {
          "$ref": "#/$defs/UnauthenticatedEncoded",
          "$defs": {
            "NonEmptyString": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "UnauthenticatedEncoded": {
              "type": "object",
              "properties": {
                "_tag": {
                  "type": "string",
                  "enum": [
                    "Unauthenticated"
                  ]
                },
                "message": {
                  "$ref": "#/$defs/NonEmptyString"
                }
              },
              "required": [
                "_tag",
                "message"
              ],
              "additionalProperties": true
            }
          }
        },
        {
          "$ref": "#/$defs/PermissionDeniedEncoded",
          "$defs": {
            "NonEmptyString": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "PermissionDeniedEncoded": {
              "type": "object",
              "properties": {
                "_tag": {
                  "type": "string",
                  "enum": [
                    "PermissionDenied"
                  ]
                },
                "message": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "requiredPermission": {
                  "type": "string",
                  "enum": [
                    "agent:capabilities",
                    "agent:identity",
                    "agent:operations:cancel",
                    "agent:operations:read",
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "audit:read",
                    "billing:manage",
                    "billing:read",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "org:delete",
                    "orgAnalytics:read",
                    "orgAnalytics:manage",
                    "org:read",
                    "org:update",
                    "orgApiKey:manage",
                    "orgMember:invite",
                    "orgMember:read",
                    "orgMember:remove",
                    "orgMember:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "platform:operate",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "role:manage",
                    "role:read",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "usage:read",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:create",
                    "workspace:delete",
                    "workspace:read",
                    "workspace:transfer",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "required": [
                "_tag",
                "message"
              ],
              "additionalProperties": true
            }
          }
        },
        {
          "$ref": "#/$defs/AgentScopeDeniedEncoded",
          "$defs": {
            "NonEmptyString": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "AgentScopeDeniedEncoded": {
              "type": "object",
              "properties": {
                "_tag": {
                  "type": "string",
                  "enum": [
                    "AgentScopeDenied"
                  ]
                },
                "message": {
                  "$ref": "#/$defs/NonEmptyString"
                }
              },
              "required": [
                "_tag",
                "message"
              ],
              "additionalProperties": true
            }
          }
        },
        {
          "$ref": "#/$defs/RateLimitedEncoded",
          "$defs": {
            "NonEmptyString": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "RateLimitedEncoded": {
              "type": "object",
              "properties": {
                "_tag": {
                  "type": "string",
                  "enum": [
                    "RateLimited"
                  ]
                },
                "message": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "retryAfterSeconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "_tag",
                "message"
              ],
              "additionalProperties": true
            }
          }
        },
        {
          "$ref": "#/$defs/ProviderUnavailableEncoded",
          "$defs": {
            "NonEmptyString": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "ProviderUnavailableEncoded": {
              "type": "object",
              "properties": {
                "_tag": {
                  "type": "string",
                  "enum": [
                    "ProviderUnavailable"
                  ]
                },
                "message": {
                  "$ref": "#/$defs/NonEmptyString"
                }
              },
              "required": [
                "_tag",
                "message"
              ],
              "additionalProperties": true
            }
          }
        },
        {
          "$ref": "#/$defs/InternalErrorEncoded",
          "$defs": {
            "NonEmptyString": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "OpaqueId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "InternalErrorEncoded": {
              "type": "object",
              "properties": {
                "_tag": {
                  "type": "string",
                  "enum": [
                    "InternalError"
                  ]
                },
                "message": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "correlationId": {
                  "$ref": "#/$defs/OpaqueId"
                }
              },
              "required": [
                "_tag",
                "message",
                "correlationId"
              ],
              "additionalProperties": true
            }
          }
        },
        {
          "$ref": "#/$defs/NotFoundEncoded",
          "$defs": {
            "NonEmptyString": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "NotFoundEncoded": {
              "type": "object",
              "properties": {
                "_tag": {
                  "type": "string",
                  "enum": [
                    "NotFound"
                  ]
                },
                "message": {
                  "$ref": "#/$defs/NonEmptyString"
                }
              },
              "required": [
                "_tag",
                "message"
              ],
              "additionalProperties": true
            }
          }
        }
      ],
      "scopes": [
        "agent:operations:read"
      ],
      "risk": "read",
      "confirmation": "none",
      "idempotency": "none",
      "resultMode": "inline",
      "outputBounds": {
        "maxItems": 1,
        "maxBytes": 32768
      },
      "dataClassification": "workspace",
      "underlyingOperations": [
        "agent.getOperation"
      ],
      "bundles": [
        "human_requests"
      ]
    }
  ],
  "bundles": [
    {
      "id": "account_basics",
      "title": "Account basics",
      "capabilities": [
        "accept_invitation",
        "manage_own_profile",
        "read_own_identity",
        "select_workspace"
      ]
    },
    {
      "id": "account_preferences",
      "title": "Own-account preferences and push devices",
      "capabilities": [
        "get_my_developer_mode",
        "manage_my_devices",
        "manage_my_preferences",
        "set_my_developer_mode"
      ]
    },
    {
      "id": "account_security",
      "title": "Account security",
      "capabilities": [
        "complete_account_security",
        "manage_account_security",
        "read_account_security"
      ]
    },
    {
      "id": "attio_crm",
      "title": "Attio CRM browsing, imports, and outbound sync",
      "capabilities": [
        "import_attio_list",
        "import_attio_person",
        "manage_attio_mappings",
        "manage_attio_outbound",
        "push_lead_to_attio",
        "read_attio_records"
      ]
    },
    {
      "id": "billing_manager",
      "title": "Billing (hosted purchase flows)",
      "capabilities": [
        "inspect_billing",
        "manage_subscription"
      ]
    },
    {
      "id": "billing_reader",
      "title": "Billing (read)",
      "capabilities": [
        "inspect_billing"
      ]
    },
    {
      "id": "booking",
      "title": "Calendar booking",
      "capabilities": [
        "connect_calendly",
        "disconnect_booking_connection",
        "get_booking_availability",
        "get_booking_connection_status",
        "list_booking_event_types",
        "set_booking_default_event_type",
        "test_booking_connection"
      ]
    },
    {
      "id": "campaign_analytics",
      "title": "Campaign performance and shared snapshots",
      "capabilities": [
        "manage_analytics_shares",
        "read_campaign_analytics"
      ]
    },
    {
      "id": "campaign_audience",
      "title": "Campaign audience and sequence authoring",
      "capabilities": [
        "edit_campaign_sequence",
        "enroll_campaign_audience",
        "read_campaign_audience",
        "resolve_external_steps"
      ]
    },
    {
      "id": "campaign_authoring",
      "title": "Campaign setup and organization",
      "capabilities": [
        "manage_campaign_notes",
        "manage_campaign_schedule",
        "manage_campaigns",
        "organize_campaign_folders",
        "read_campaign_setup",
        "test_campaign"
      ]
    },
    {
      "id": "campaign_delivery",
      "title": "Campaign delivery monitoring",
      "capabilities": [
        "export_campaign_delivery",
        "inspect_campaign_delivery",
        "manage_campaign_delivery"
      ]
    },
    {
      "id": "campaigns",
      "title": "Campaign lifecycle",
      "capabilities": [
        "inspect_campaign",
        "launch_campaign",
        "validate_campaign"
      ]
    },
    {
      "id": "content_authoring",
      "title": "Sequence templates",
      "capabilities": [
        "manage_sequence_templates",
        "read_sequence_templates"
      ]
    },
    {
      "id": "dialer_media_operations",
      "title": "Call lists, recordings, voicemail greetings, and SMS",
      "capabilities": [
        "manage_call_lists",
        "manage_recording_consent_policy",
        "manage_sms_conversations",
        "manage_voicemail_greetings",
        "read_call_recordings",
        "share_call_recordings"
      ]
    },
    {
      "id": "dialer_operations",
      "title": "Dialer numbers, seats, history, and billing",
      "capabilities": [
        "cancel_dialer_addon",
        "manage_dialer_billing",
        "manage_dialer_numbers",
        "manage_dialer_seats",
        "provision_dialer_numbers",
        "read_dialer_history"
      ]
    },
    {
      "id": "dialer_retention_reader",
      "title": "Dialer retention eligibility",
      "capabilities": [
        "inspect_dialer_retention_eligibility"
      ]
    },
    {
      "id": "domain_manager",
      "title": "Manage existing domains",
      "capabilities": [
        "manage_domain_dns",
        "manage_domain_nameservers",
        "manage_website_routes",
        "read_domains",
        "set_domain_auto_renew",
        "transfer_domains"
      ]
    },
    {
      "id": "domain_reader",
      "title": "Read existing domains",
      "capabilities": [
        "read_domains"
      ]
    },
    {
      "id": "getleads",
      "title": "GetLeads enrichment",
      "capabilities": [
        "configure_getleads_rate_limit",
        "disconnect_getleads",
        "get_getleads_status",
        "get_getleads_usage",
        "run_getleads_request"
      ]
    },
    {
      "id": "heyreach",
      "title": "HeyReach LinkedIn automation",
      "capabilities": [
        "add_heyreach_leads",
        "enrich_heyreach_email",
        "manage_heyreach_accounts",
        "manage_heyreach_campaigns",
        "manage_heyreach_connection",
        "message_heyreach",
        "read_heyreach"
      ]
    },
    {
      "id": "human_requests",
      "title": "Human requests",
      "capabilities": [
        "answer_human_request",
        "observe_human_request",
        "request_human_input"
      ]
    },
    {
      "id": "inbox_connection_management",
      "title": "Inbox connection management",
      "capabilities": [
        "adopt_gmail_warmup_label",
        "connect_google_inbox",
        "connect_microsoft_inbox",
        "disconnect_inbox",
        "manage_independent_inbox_oauth_batch",
        "reconnect_google_inbox",
        "request_gmail_connect_links",
        "test_inbox_connection"
      ]
    },
    {
      "id": "inbox_operations",
      "title": "Inbox operations",
      "capabilities": [
        "delete_inboxes",
        "manage_inbox_settings",
        "manage_warmup",
        "read_inbox_health",
        "run_inbox_diagnostics",
        "send_test_email",
        "sync_inboxes"
      ]
    },
    {
      "id": "integration_directory",
      "title": "Integration directory",
      "capabilities": [
        "list_integration_connections",
        "request_integration"
      ]
    },
    {
      "id": "integration_sharing",
      "title": "Integration sharing across workspaces",
      "capabilities": [
        "detach_integration_share",
        "get_integration_share_options",
        "list_integration_shares",
        "preview_integration_share_detach",
        "reattach_integration_share",
        "revoke_integration_share",
        "share_integration_connection",
        "update_integration_share"
      ]
    },
    {
      "id": "integrations",
      "title": "Provider connections",
      "capabilities": [
        "connect_attio",
        "disconnect_attio",
        "get_attio_status"
      ]
    },
    {
      "id": "lead_hygiene",
      "title": "Verify leads and inspect verification results",
      "capabilities": [
        "read_verification_results",
        "verify_contacts"
      ]
    },
    {
      "id": "lead_management",
      "title": "Leads, lists, and assignments",
      "capabilities": [
        "assign_leads",
        "import_leads",
        "manage_lead_contact_points",
        "manage_lead_lists",
        "read_leads",
        "update_lead_details"
      ]
    },
    {
      "id": "mailbox_provider_imports",
      "title": "Mailbox provider imports",
      "capabilities": [
        "connect_mailbox_provider",
        "disconnect_mailbox_provider",
        "manage_mailbox_provider_import"
      ]
    },
    {
      "id": "operations",
      "title": "Durable operations",
      "capabilities": [
        "cancel_operation",
        "get_operation"
      ]
    },
    {
      "id": "organization_administration",
      "title": "Organization administration",
      "capabilities": [
        "create_organization",
        "create_workspace",
        "manage_organization",
        "manage_organization_members",
        "manage_organization_roles",
        "read_organization_audit_log",
        "read_organizations"
      ]
    },
    {
      "id": "organization_sql",
      "title": "Organization SQL, dashboards and saved queries",
      "capabilities": [
        "delete_organization_dashboard",
        "get_organization_dashboard",
        "list_organization_dashboards",
        "run_organization_sql",
        "save_organization_dashboard"
      ]
    },
    {
      "id": "partner_catalog",
      "title": "Partner offers",
      "capabilities": [
        "browse_partnerships"
      ]
    },
    {
      "id": "permission_requests",
      "title": "Permission requests",
      "capabilities": [
        "approve_permission_request",
        "cancel_permission_request",
        "deny_permission_request",
        "get_permission_request",
        "list_permission_requests",
        "request_permissions",
        "set_permission_request_policy"
      ]
    },
    {
      "id": "platform",
      "title": "Platform identity and discovery",
      "capabilities": [
        "get_capability",
        "get_identity",
        "list_capabilities",
        "list_capability_bundles",
        "list_workspaces",
        "prepare_confirmation",
        "resolve_workspace"
      ]
    },
    {
      "id": "plusvibe",
      "title": "PlusVibe connection",
      "capabilities": [
        "browse_plusvibe_targets",
        "disconnect_plusvibe",
        "get_plusvibe_status",
        "reconcile_plusvibe"
      ]
    },
    {
      "id": "reminders",
      "title": "Thread reminders",
      "capabilities": [
        "cancel_reminder",
        "create_reminder",
        "get_thread_reminder",
        "list_reminders"
      ]
    },
    {
      "id": "scheduler_retention_reader",
      "title": "Scheduler retention eligibility",
      "capabilities": [
        "inspect_scheduler_retention_eligibility"
      ]
    },
    {
      "id": "security_administration",
      "title": "Credential and security administration",
      "capabilities": [
        "block_organization_api_key",
        "issue_api_key_secret",
        "manage_agent_credentials",
        "manage_api_key_grants",
        "read_api_key_issuance",
        "read_api_keys",
        "read_organization_api_key_access",
        "revoke_api_key",
        "rotate_webhook_secret"
      ]
    },
    {
      "id": "support",
      "title": "Support cases and attachments",
      "capabilities": [
        "create_support_attachment_upload",
        "finalize_support_attachment",
        "submit_support_feedback"
      ]
    },
    {
      "id": "support_access",
      "title": "Support access",
      "capabilities": [
        "grant_support_access",
        "list_support_access",
        "revoke_support_access"
      ]
    },
    {
      "id": "tasks",
      "title": "Tasks and assignments",
      "capabilities": [
        "assign_task",
        "complete_task",
        "create_task",
        "delete_task",
        "list_task_assignable_members",
        "list_tasks",
        "update_task"
      ]
    },
    {
      "id": "unibox_admin",
      "title": "Backfill and mailbox history",
      "capabilities": [
        "sync_unibox_history"
      ]
    },
    {
      "id": "unibox_lead_capture",
      "title": "Capture contact details offered in replies",
      "capabilities": [
        "browse_unibox_threads",
        "review_contact_suggestions"
      ]
    },
    {
      "id": "unibox_reply_flow",
      "title": "Read a conversation and reply to it",
      "capabilities": [
        "browse_unibox_threads",
        "list_thread_label_history",
        "list_unibox_threads",
        "preview_unibox_reply",
        "read_unibox_message_body",
        "send_unibox_reply"
      ]
    },
    {
      "id": "unibox_triage",
      "title": "Work the shared inbox down",
      "capabilities": [
        "browse_unibox_threads",
        "delete_unibox_threads",
        "download_unibox_attachment",
        "list_thread_label_history",
        "list_unibox_threads",
        "read_unibox_message_body",
        "triage_unibox_threads"
      ]
    },
    {
      "id": "verification_admin",
      "title": "Verifier keys, sharing posture, and credits",
      "capabilities": [
        "manage_verification_credits",
        "manage_verification_preferences",
        "manage_verifier_keys"
      ]
    },
    {
      "id": "warmup",
      "title": "Warmup providers and placement statistics",
      "capabilities": [
        "manage_warmup_providers",
        "read_warmup_stats"
      ]
    },
    {
      "id": "workflow_automation",
      "title": "Workflow definitions, runs, and builder options",
      "capabilities": [
        "manage_workflows",
        "read_workflows",
        "run_workflows"
      ]
    },
    {
      "id": "workflow_connectors",
      "title": "Workflow connectors, app connections, and job progress",
      "capabilities": [
        "connect_workflow_integration",
        "manage_workflow_connectors",
        "monitor_job_progress",
        "read_workflow_connectors"
      ]
    },
    {
      "id": "workflow_lead_enrollment",
      "title": "Workflow lead enrollment",
      "capabilities": [
        "enroll_leads_in_workflow"
      ]
    },
    {
      "id": "workspace_administration",
      "title": "Workspace administration",
      "capabilities": [
        "invite_members",
        "manage_workspace_branding",
        "manage_workspace_lifecycle"
      ]
    },
    {
      "id": "workspace_infrastructure",
      "title": "Workspace infrastructure investigation",
      "capabilities": [
        "inspect_domain_nameservers",
        "inspect_infrastructure"
      ]
    },
    {
      "id": "workspace_insights",
      "title": "Workspace insights",
      "capabilities": [
        "read_cross_workspace_analytics",
        "read_workspace_usage",
        "report_onboarding"
      ]
    },
    {
      "id": "workspace_settings",
      "title": "Workspace settings and catalogs",
      "capabilities": [
        "delete_webhook",
        "manage_blocklist",
        "manage_custom_fields",
        "manage_inbox_tags",
        "manage_reply_labels",
        "manage_webhooks",
        "manage_workspace_settings",
        "manage_workspace_variables",
        "read_workspace_settings"
      ]
    },
    {
      "id": "workspace_sql",
      "title": "Workspace SQL, dashboards and saved queries",
      "capabilities": [
        "delete_dashboard",
        "get_dashboard",
        "list_dashboards",
        "run_workspace_sql",
        "save_dashboard"
      ]
    }
  ]
}
